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.
Hello Community,
Can you please help me finding cumulative total for same period last from fiscal year: I donot have date table in my model so I have use depart date as reference date.
I have created this measure to calculate the cumulative total :
Depart Date | Depart Month Year | Total Emission | Forecast(Y/N) | Fiscal Year | Expected Result |
2021-11-17 | Nov-21 | 40 | N | 2022 | |
2021-12-01 | Dec-21 | 30 | N | 2022 | |
2022-01-10 | Jan-22 | 50 | N | 2022 | |
2022-02-12 | Feb-22 | 30 | N | 2022 | |
2022-03-15 | Mar-22 | 81 | N | 2022 | |
2022-04-18 | Apr-22 | 20 | N | 2022 | |
2022-05-20 | May-22 | 13 | N | 2022 | |
2022-06-21 | Jun-22 | 70 | N | 2022 | |
2022-07-16 | Jul-22 | 50 | N | 2022 | |
2022-08-12 | Aug-22 | 20 | N | 2022 | |
2022-09-20 | Sep-22 | 10 | N | 2022 | |
2022-10-10 | Oct-22 | 45 | N | 2022 | |
2022-11-17 | Nov-22 | 50 | N | 2023 | 40 |
2022-12-01 | Dec-22 | 30 | N | 2023 | 70 |
2023-01-15 | Jan-23 | 55 | N | 2023 | 120 |
2023-02-12 | Feb-23 | 66 | Y | 2023 | 150 |
2023-03-15 | Mar-23 | 78 | Y | 2023 | 231 |
2023-04-19 | Apr-23 | 29 | Y | 2023 | 251 |
2023-05-01 | May-23 | 50 | Y | 2023 | 264 |
2023-06-11 | Jun-23 | 25 | Y | 2023 | 334 |
2023-07-19 | Jul-23 | 27 | Y | 2023 | 384 |
2023-08-11 | Aug-23 | 66 | Y | 2023 | 404 |
2023-09-27 | Sep-23 | 20 | Y | 2023 | 414 |
Solved! Go to Solution.
@sam_hoccane , Try a measure like
Cumm Sales = CALCULATE(SUM(Sales[Sales Amount]),filter(allselected(date),date[date] <=maxx(date,dateadd(date[date]),-1,year)))
@sam_hoccane , Try a measure like
Cumm Sales = CALCULATE(SUM(Sales[Sales Amount]),filter(allselected(date),date[date] <=maxx(date,dateadd(date[date]),-1,year)))
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 |
---|---|
43 | |
20 | |
18 | |
16 | |
15 |
User | Count |
---|---|
49 | |
26 | |
22 | |
17 | |
16 |