Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. 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))
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
68 | |
60 | |
51 | |
36 | |
36 |
User | Count |
---|---|
84 | |
72 | |
58 | |
45 | |
44 |