Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more
Hi,
I'm struggeling to create cumulated totals on customers. I've made the following in Excel to help show what columns i have and how i would like to see it:
Example
Dataset
Thank you in advance
Solved! Go to Solution.
Please try:
_percentage =
DIVIDE(SUM('Table'[Value]),CALCULATE(SUM('Table'[Value]),ALL('Table')))
cumulative =
var selected = MAX('Table'[#])
return CALCULATE([_percentage],FILTER(ALLSELECTED('Table'),'Table'[#]<=selected))
Please try:
_percentage =
DIVIDE(SUM('Table'[Value]),CALCULATE(SUM('Table'[Value]),ALL('Table')))
cumulative =
var selected = MAX('Table'[#])
return CALCULATE([_percentage],FILTER(ALLSELECTED('Table'),'Table'[#]<=selected))
@Pastrupgaard , Try a measure like
divide(calculate(sum(Table[Value]), filter(allselected(Table), Table[Customer]<=Max(Table[Customer]))),calculate(sum(Table[Value]), allselected(Table)))
Hi @amitchandak
I tried your formula and the this is the results - any suggestions for tweaks?
I can see it's sorting based on the name (A-Z) instead of the value
Br
Patrick
Check out the April 2025 Power BI update to learn about new features.
Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.
User | Count |
---|---|
93 | |
60 | |
47 | |
35 | |
34 |