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,
I have requirement. to calcualte cummalative % and to Show Total Liters in table chart. i tried using dax measure but it is not giving correct result. Please help
i need calculate % Running total - Example IT60 - it should give 18%
US 21 - 18%+13% = 31%
PE10 = 18%+13%+10%= 41% and so on
i have tried by using Quick Measure - Running total as below screenshot and it is not giving Proper result
Note - Total Liters is sorted as Descending order
Thanks
From which table is "receiving plant"? I think this is the problem. please share the underlaying datamodel and tables.
You also say now "Total litre measure". You do not mentioned it before that is is a measure. Please share the measure.
Proud to be a Super User!
Hi @andhiii079845
Total Liters and % are measures, and need to calculate Cummalative % (To show Total Liters as highest to lowest in table chart)
Total liters =
Thanks
Can you please give a full example of all involved tables, the relation and with some data examples. It is for me not clear in the moment where the problem is.
Proud to be a Super User!
Hi,
try this. Change the table name which I used.
running total % =
VAR _currentlilter = maxx(table2,table2[Total liters])
VAR _total = sumx(ALLSELECTED(table2),table2[Total liters])
VAR _currenttotal = sumx(FILTER(ALLSELECTED(table2),table2[Total liters]<=_currentlilter),table2[Total liters])
RETURN _currenttotal/_total
Mark my post as a solution if it was helpfull.
Proud to be a Super User!
Hi @andhiii079845
I have tried your solution in calculated column but it is giving result as 100% for all values. Please help on this
calculated column - running total % colum =
Thanks
User | Count |
---|---|
25 | |
12 | |
8 | |
6 | |
6 |
User | Count |
---|---|
26 | |
12 | |
11 | |
10 | |
6 |