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.
Hi,
I need help to write my cumulative total measure.
I have the column [Beloeb] for my financial items i want to sum from the start date 12-31-2015 and to a given month. The start date must in every situatio be 12-31-2015. The end date should in every situation be the last day of a given month. So if I want to see the total amount for April 2021 the period will be from 12-31-2015 to 04-30-2021.
I have so far tried this, but it does not work:
I hope someone can help me, as i really need help to write this function. 🙂
Best regards
Line
Solved! Go to Solution.
Hi!
Add a calendar table with a relationship between your finansposter date column and the calendar table date column. Then try the following measure:
Total_beloeb =
VAR Mdate = MAX('Calendar'[Date])
Return
CALCULATE(
SUM('dm fct_Finansposter'[Beloeb]),
ALL('Calendar'),
'Calendar'[Date]>=DATE(2015,12,31),
'Calendar'[Date]<=mDate
)
Hi!
Add a calendar table with a relationship between your finansposter date column and the calendar table date column. Then try the following measure:
Total_beloeb =
VAR Mdate = MAX('Calendar'[Date])
Return
CALCULATE(
SUM('dm fct_Finansposter'[Beloeb]),
ALL('Calendar'),
'Calendar'[Date]>=DATE(2015,12,31),
'Calendar'[Date]<=mDate
)
Thank you for your help, it worked!
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 |
---|---|
112 | |
99 | |
73 | |
72 | |
49 |
User | Count |
---|---|
145 | |
109 | |
108 | |
90 | |
64 |