March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
I am having issues creating a running total on the field "Count Charged off loans" with the output the way it is in the green column. (the running total resets when the tier field changes). Please i need help
Solved! Go to Solution.
use this measure
RT = CALCULATE( SUM( Table1[Count Charged off Loans] ),
FILTER( ALLEXCEPT( Table1, Table1[Tier] ), Table1[Loan Life] <= MAX( Table1[Loan Life] ) ))
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
@Anonymous,
You can also use the following DAX to calculate the measure.
Expected result = CALCULATE ( SUM ( Table1[Count Charged off Loans] ), FILTER ( ALL ( Table1 ), Table1[Loan Life] <=MAX(Table1[Loan Life]) ),VALUES(Table1[Tier]) )
Regards,
Lydia
Tier | Count Booked Loans | Loan Life | Count Charged off Loans | Expected Result |
6 | 23 | 0 | 0 | 0 |
6 | 23 | 9 | 1 | 1 |
6 | 23 | 17 | 2 | 3 |
6 | 23 | 19 | 1 | 4 |
6 | 23 | 20 | 1 | 5 |
6 | 23 | 21 | 1 | 6 |
6 | 23 | 22 | 4 | 10 |
6 | 23 | 25 | 2 | 12 |
8 | 23 | 0 | 0 | 0 |
8 | 23 | 2 | 1 | 1 |
8 | 23 | 16 | 3 | 4 |
8 | 23 | 22 | 6 | 10 |
I actually want it as a calculated measure
@Anonymous,
You can also use the following DAX to calculate the measure.
Expected result = CALCULATE ( SUM ( Table1[Count Charged off Loans] ), FILTER ( ALL ( Table1 ), Table1[Loan Life] <=MAX(Table1[Loan Life]) ),VALUES(Table1[Tier]) )
Regards,
Lydia
You can create a calculated column like this:
Count Charged off loans RT = VAR CurrentTier = Table[Tier] VAR CurrentLoanLife = Table[Loan Life] RETURN CALCULATE ( SUM ( Table[Count Charged off Loans] ), FILTER ( ALL ( Table ), Table[Tier] = CurrentTier && Table[Loan Life] <= CurrentLoanLife ) )
I would like it as a measure and not a calculated column cos the end game is to use it on a graph
use this measure
RT = CALCULATE( SUM( Table1[Count Charged off Loans] ),
FILTER( ALLEXCEPT( Table1, Table1[Tier] ), Table1[Loan Life] <= MAX( Table1[Loan Life] ) ))
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
Thanks for the response. This works, but the moment i drop a slicer on the report it works in a weird manner. Any suggestions please?
@Anonymous,
What field do you use to create a slicer? What result would you like to get by using slicer?
Regards,
Lydia
I fixed it already, Thank you so much
Hi @Anonymous
could you post a dataset which can be copied/pasted? Also do you want to do this in a measure or calculated column?
Did I answer your question correctly? Mark my answer as a solution!
Proud to be a Datanaut!
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
125 | |
85 | |
69 | |
54 | |
45 |
User | Count |
---|---|
204 | |
106 | |
98 | |
65 | |
54 |