Doug Creighton
02/18/2025, 3:05 PMMauricio Cabezas
02/18/2025, 5:30 PMSELECT
CASE WHEN ({metric/utilized_-_spark_case_notes}) >= 0.85
THEN 0.0000000000000001 ,
WHEN ({metric/utilized_-_spark_case_notes}) < 0.85 THEN
({metric/utilized_-_spark_case_notes})
ELSE 0 END
If you note the IFNULL seems is not needed, and I deleted the AND
in the second condition.
Please, can you confirm if is working as expected?Doug Creighton
02/18/2025, 5:32 PMMauricio Cabezas
02/18/2025, 5:50 PMELSE
, like in the 6th row. Note if you keep the AND > 0
, you still will see zeros.
I just took away the IFNULL, it is what you expect?
SELECT
CASE WHEN ({metric/utilized_-_spark_case_notes}) >= 0.85
THEN 0.0000000000000001 ,
WHEN ({metric/utilized_-_spark_case_notes}) < 0.85
and ({metric/utilized_-_spark_case_notes}) > 0 THEN
({metric/utilized_-_spark_case_notes})
ELSE 0 END
Doug Creighton
02/18/2025, 7:23 PMDoug Creighton
02/18/2025, 7:26 PMDoug Creighton
02/18/2025, 7:28 PMMauricio Cabezas
02/18/2025, 8:51 PMMauricio Cabezas
02/20/2025, 8:28 PMSupervisor Name
attribute, it behaves as expected (I can see that this option is now selected). Can I confirm that this is the expected behaviour for you?
In any case, we are consulting internally to our engineers to clarify whether "showing missing values" is effectively hiding the missing (blank) values, as this seems ambiguous. I will keep you updated once we receive more information from them.
Once more, thank you for your patience.Doug Creighton
02/20/2025, 8:29 PMMauricio Cabezas
02/20/2025, 8:31 PM