Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hey!
I'm looking for a DAX that could show values by month but each month has to be a sum of previous month and filtered month:
Month | Values | Sum |
1 | 1 | 1 |
2 | 1 | 1+1 |
3 | 1 | 1+1+1 |
So, instead of 3 as a total, it should show 6 as a total.
Hello @Monika_85,
Can you please try this:
Running Total =
VAR CurrentMonth = MAX('Table'[Month])
VAR FilteredTable = FILTER('Table', 'Table'[Month] <= CurrentMonth)
RETURN SUMX(FilteredTable, 'Table'[Values])
Let me know if you might require further assistance.
Hey @Sahir_Maharaj
Thanks for helping me. Unfortunately, this DAX doesn't help me as I wish. Using it, I receive sum by month and I'd like to have sthg like that:
January = sum of January values
February = sum of January + February values
March = sum of January + February + March values
etc.
User | Count |
---|---|
22 | |
14 | |
11 | |
7 | |
5 |
User | Count |
---|---|
24 | |
22 | |
20 | |
15 | |
10 |