Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi Team,
Please help me on Running total calculation based on multiple columns as a slicers.
Please find the below data for your referance.
If I select HEAD as A, need output below.
If I select HEAD as A and YEAR as 2023, need output below.
If I select HEAD as A, Category as C1 and Org as HR then Expecting below out.
Thank you,
@amitchandak , @daXtreme @Greg_Deckler @Fowmy @tamerj1 @Jihwan_Kim
Solved! Go to Solution.
@Anonymous So you will never had a Value that is less than a "previous" row? If that is the case then you could do this:
Measure =
VAR __Value = MAX('Table'[Value])
VAR __Table = FILTER(ALLSELECTED('Table'),[Value] <= __Value)
RETURN
SUMX(__Table,[Value])
@Anonymous You are going to need an Index or Date column to allow you to define "before".
@Anonymous So you will never had a Value that is less than a "previous" row? If that is the case then you could do this:
Measure =
VAR __Value = MAX('Table'[Value])
VAR __Table = FILTER(ALLSELECTED('Table'),[Value] <= __Value)
RETURN
SUMX(__Table,[Value])
Thank you so much @Greg_Deckler for your support.
Logic is woking fine but, if previous row value currerent row value same then it is getting wrong running total number.
There is chanse previous row value currerent row value same
Please help me on this 🙂
@Anonymous
And, hence, why you need an Index or Date column. No way to solve it if values can be equal or a subsequent value is less than the current value. Just add an Index column in Power Query. Otherwise, you are stuck with a DAX index:
https://community.powerbi.com/t5/Quick-Measures-Gallery/The-Mythical-DAX-Index/m-p/1093214#M528
Thank you, I will create INDEX column. 🙂
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
63 | |
62 | |
52 | |
39 | |
24 |
User | Count |
---|---|
84 | |
57 | |
45 | |
43 | |
36 |