Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreShape the future of the Fabric Community! Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions. Take survey.
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
User | Count |
---|---|
94 | |
92 | |
85 | |
83 | |
49 |
User | Count |
---|---|
150 | |
146 | |
112 | |
73 | |
56 |