Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
I have a requirement from the firm, which is to create a cummalative sum of values based on a target year. So the financial year we are using as a base target is 2019 which goes from 2018/06- 2019/05. The calculation needs to look like this if i drop Month-Year into a table:
I have a requirement from the firm, which is to create a cummalative sum of values based on a target year. So the financial year we are using as a base target is 2019 which goes from 2018/06- 2019/05. The calculation needs to look like this if i drop Month-Year into a table:
Date | New Measure Month Value | Cummalative |
06- 2018 | 1000 | 1000 |
07 - 2018 | 150 | 1150 |
08 - 2018 | 125 | 1275 |
...... | .. | ... |
07 - 2021 | 150 (same as 2019 FY) | 100,000 |
08 - 2021 | 125 (same as 2019 FY) | 100,125 |
09 - 2021 | .... | ... |
My current working query looks like this:
@Anonymous , Try like this example
Cumm Sales = CALCULATE(SUM(Sales[Sales Amount]),filter(allselected(date),date[date] <=maxx(date,date[date]) && date[Year] = 2019))
or
Cumm Sales = CALCULATE(SUM(Sales[Sales Amount]),filter(allselected(date),date[date] <=maxx(date,date[date]) && year(date[Date]) = 2019))
Hi None of those measures worked. Thanks for trying.
Hi @Anonymous,
Can you please share some dummy data with a similar data structure then we can test to coding formula on it?
How to Get Your Question Answered Quickly
Regards,
Xiaoxin Sheng
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
108 | |
100 | |
78 | |
64 | |
58 |
User | Count |
---|---|
148 | |
111 | |
94 | |
84 | |
67 |