Willie Doyle
10/17/2023, 2:26 PMIvana Gasparekova
10/17/2023, 2:57 PMIvana Gasparekova
10/17/2023, 2:59 PMMichal Hauzírek
10/17/2023, 6:30 PMSELECT SUM(total spend) WHERE IFNULL(actual collections,-1)<>-1
to get SUM of total spend of those budgets that do have actual collections filled in.
Sadly I don’t think there is any IS NULL operator for facts in GoodData so you can either use this workaround with IFNULL or add some boolean attribute “collections_loaded” and filter with that one (this second option will perform faster if the transactions table is very large, since facts are usually not indexed).Willie Doyle
10/17/2023, 9:52 PM