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.
H there!
I am having an issue with one of my rolling calculations for the below table:
Number of Apples sold | YTD Apples sold (rolling) | Shop Sales | Apple + Shop Sales | YTD Apple + Shop Sales (Rolling)
(Calculating incorrectly) | Expected outcome | ||
2022 | January | 0 | 0 | 0 | 0 | 0 | 0 |
2022 | February | 0 | 0 | 0 | 0 | 0 | 0 |
2022 | March | 1800 | 1800 | 0 | 1800 | 0 | 1800 |
2022 | April | 0 | 1800 | 23000 | 25050 | 23000 | 26850 |
2022 | May | 81795 | 83845 | 0 | 83845 | 23000 | 110695 |
2022 | June | 0 | 83845 | 95000 | 179095 | 118250 | 289790 |
2022 | July | 4750 | 88845 | 0 | 88845 | 118250 | 378635 |
2022 | August | 0 | 88845 | 104550 | 193645 | 223050 | 572280 |
2022 | September | 0 | 88845 | 26900 | 115995 | 250200 | 688275 |
The current Dax for "YTD Apple + Shop Sales (Rolling)" is
Solved! Go to Solution.
Hi,
You can simplyfy the DAX a bit:
IF(
Proud to be a Super User!
Hi,
What kind of calculation are you using in your [Apple + Shop Sales]? The issue is with DATESYTD interaction with this measure so that dax should be revised.
Proud to be a Super User!
Hello!
Thank you for your response
Please see below:
Apple + Shop Sales = CALCULATE([YTD Apples sold (rolling)]+[Shop Sales])
And Shop sales are calculated by two measures:
Hi,
You can simplyfy the DAX a bit:
IF(
Proud to be a Super User!
Thank you!
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 |
---|---|
11 | |
11 | |
10 | |
9 | |
8 |
User | Count |
---|---|
17 | |
12 | |
11 | |
11 | |
10 |