In Clarity, the "Number Display" View Option honors columns where the data type is Numeric and the extended data type is Double. Clarity derives this extended data type based on the scale defined at the database level; if the scale is greater than 0, it is evaluated as a Double.
When using the COALESCE function within SQL columns in a PostgreSQL Data Provider Query (e.g., COALESCE(numeric_column, 0)), the database may return a scale of 0. Consequently, Clarity evaluates the column as a standard Number rather than a Double, causing the Number display options (decimal precision) to fail
Clarity 16.4.1,16.4.2 and higher
COALESCE(coalesce(inv.r_tot_cst_i, 0) / nullif(inv.r_beac_tot, 0), 0) pct_spent_ttl-- Using ::float
COALESCE (coalesce (inv.r_tot_cst_i, 0) / nullif (inv.r_beac_tot, 0), 0)::float pct_spent_ttl
-- Using ::float8
COALESCE (coalesce (inv.r_tot_cst_i, 0) / nullif (inv.r_beac_tot, 0), 0)::float8 pct_spent_ttl
-- Using ::numeric(32, 6)
COALESCE (coalesce (inv.r_tot_cst_i, 0) / nullif (inv.r_beac_tot, 0), 0)::numeric(32,6) pct_spent_ttl
Workaround: Data Provider Query for numeric values to honor the decimal precision in View Options. Select appropriate format in the view option