Emir
05/21/2025, 6:30 PM/edit
in the analyze view with /debug
to see the generated SQL from GoodData, and in the broken metric, the visualization filter is not applied in the SQL, whereas in the above-mentioned similar working metric it does append the filter at the end of the SQL. Could someone take a look and explain why GoodData generates different SQLs for two metrics that are pretty much similar in definition? I can share the metric definitions and the generated SQLs over DMMoises Morales
05/21/2025, 6:43 PMMoises Morales
05/22/2025, 6:29 PMHAVING {metric/your_metric} <> NULL
Another approach could be to apply constants only to rows that contain data. Instead of using a constant directly in the THEN
clause, you might try something like:
SIGN({metric/utilized_-_spark_case_notes}) * 0
If you wish to make the filtering work without using the feature and removing the empty columns, then you would need to revisit your LDM to ensure that the connections between the attributes and facts used in the insight are optimal.