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 All ,
Iam trying to get a cumulative running sum for the column 'SWAP Values' based on the Date column "SWAP Rate Date" . The running sum calculation should start from 'May 01 2020' till latest (today) date .
I tried to achieve this by creating measures as below :
Attempt 1 :
Attempt 2 :
As can be seen from the image My both attempts did not give the desired result of achieving running sum of SWAP Values based on SWAP Rate Date .
Note : I also tested if my filters are causing any issue and as shown in image I completely filteres only the data that is needed .
Please suggest on where Iam going wrong .
Tagging @Greg_Deckler , @PowerQueryFTW Help needed with dax measure to calculate runningsum value against a time based value Cumulative Total as I have seen some posts where help is provided on cumlative sum calculation .
Thanks in advance for the help .
Hi, @neeharikathota
According to your picture, I found that your data column [SWAP Rate Date] is not correctly sorted, which leads to you can’t achieve the cumulative sum. You can follow my steps:
Cumulative Sum =
CALCULATE(
SUM(Append2[SWAP Values]),
FILTER(ALLSELECTED('Append2'),Append2[Index]<=MAX('Append2'[Index])))
And you can get what you want.
If this result is not what you want, you can post some sample data(without sensitive data) and your expected result.
How to Get Your Question Answered Quickly
Best Regards,
Community Support Team _Robert Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi Robert ,
Thanks for your suggestions before , that helped a lot .
Iam trying to achieve cumulative sum based on Period date thats is repeating . So my cumulative sum should be grouped based on repeating Period dates . Can you help me achieve the 'Cumulative Expected Return expected result ' . As highlightes in red .. 35499=5559+5559+24381 for 01/05/2020 .
Hi, @neeharikathota
According to your requirement, you can try this measure:
Cumulative Return expected result =
CALCULATE(
SUM('Table'[Return]),
FILTER(ALLSELECTED('Table'),'Table'[Period Date]<=MAX('Table'[Period Date])))
And this is my test pbix file:
Best Regards,
Community Support Team _Robert Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
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 |
---|---|
102 | |
53 | |
21 | |
12 | |
12 |