Forum Discussion
Veblengood
4 years agoHelper I
Calculate with all function, maintaining filters applied
I am trying to calculate the sum of revenue for 2022 of a all products given that they have sales in a given periode (after 30.06.2022). That is measure [Price 30.06] is not blank or 0. The ...
- 4 years ago
Apologies, part of my inital syntax was incorrect, what solved it was the following:
CALCULATE(Revenue ,Dates[Year]==2022, KEEPFILTERS(Products[Products_ID] <>BLANK()), FILTER(ALL(Products), 'Price analysis'[Price 30.06] <> BLANK())),0)
Veblengood
4 years agoHelper I
Apologies, part of my inital syntax was incorrect, what solved it was the following:
CALCULATE(Revenue ,Dates[Year]==2022, KEEPFILTERS(Products[Products_ID] <>BLANK()), FILTER(ALL(Products), 'Price analysis'[Price 30.06] <> BLANK())),0)