Daniel Wakefield
04/07/2023, 10:23 PMFrancisco Antunes
04/10/2023, 9:01 AMSELECT IFNULL (COUNT (order_id), 0) + 0
And then you can add it in the Analytic Designer, slicing it by the Product_ID. This will display all products and the count of their order IDs; when this count is Null, it will display a 0.
The next step would be to filter out values that aren’t 0. You can easily do that on the Insight itself, by adding a filter for the metric and setting it to only show when the metric = 0 (see my screenshot).
I’d also recommend taking a look at the community article https://community.gooddata.com/data-models-kb-articles-46/how-to-display-null-or-missing-values-98 for some additional insight.Daniel Wakefield
04/10/2023, 3:02 PM+0
at the end?Francisco Antunes
04/10/2023, 3:22 PM*1
at the end, too. Some IFNULL metrics will work without it, but it’s good practice to add the +0
anyway, to ensure it works.