Forum Discussion
Anonymous
3 years agoNot applicable
Excluding some data after a certain date from dashboard
Let's say I want to exclude countries a, b, and c, after 01-01-2023 on a dashboard. so, data before that time appears for countries a, b, and c but after that time those countries show blank. One ...
Anonymous
3 years agoNot applicable
and if the user chooses 2022-01-01 until 2024-12-31, it has to show the data until 2023-01-01 and the rest blank.
JirkaZ
Solution Specialist
3 years agoI think something like this could work:
My Measure :=
SUMX('DimLocation',
IF('DimLocation'[Country] in ("Country 1", "Country 2"),
CALCULATE(SUM('FactTable'[SalesAmount]), DimDate[Date] < DATE(2023, 1, 1)),
SUM('FactTable'[SalesAmount])
)