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,
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
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 |
---|---|
47 | |
23 | |
20 | |
15 | |
13 |
User | Count |
---|---|
51 | |
42 | |
39 | |
19 | |
19 |