Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hi
i would like to show a cumulative value for 2020 only (01.01.20 - 31.01.2020) and a cumulative value starting from 2021 (into 2022 and ongoing)
I could calculate both, but in the visualization the 2020 value keeps going on. I could not find a way to make it end at 31.12.2020.
Solved! Go to Solution.
@Fabrizio Maybe:
Running Total 2020 =
VAR __Date = MAX('Date'[Date])
RETURN
IF(__Date > DATE(2020,12,31), BLANK(),CALCULATE([MEASURE],
FILTER(ALLSELECTED('Date'), 'Date'[Date] <= MAX('Date'[Date])), 'Date'[Year]=2020))
@Fabrizio Maybe:
Running Total 2020 =
VAR __Date = MAX('Date'[Date])
RETURN
IF(__Date > DATE(2020,12,31), BLANK(),CALCULATE([MEASURE],
FILTER(ALLSELECTED('Date'), 'Date'[Date] <= MAX('Date'[Date])), 'Date'[Year]=2020))
User | Count |
---|---|
84 | |
80 | |
69 | |
46 | |
46 |
User | Count |
---|---|
106 | |
50 | |
49 | |
40 | |
39 |