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'm trying to get percentafe of gran total in a matrix. In that matrix i've got normal values. How i can do that?
Solved! Go to Solution.
If you want to ignore the filter, you can replace ALLSELECTED with ALL().
Measure = CALCULATE(SUM(Table[Value]),ALL(Table))
Pct= SUM(Table[Value])/CALCULATE(SUM(Table[Value]),ALL(Table))
Regards,
You can create a measure with ALLSESLECTED to get the grand total within matrix.
Measure = CALCULATE(SUM(Table[Value]),ALLSELSECTED(Table))
Then you can have cell level field divided by above measure:
Pct= SUM(Table[Value])/CALCULATE(SUM(Table[Value]),ALLSELSECTED(Table))
Regards,
Hi Simon, first thanks for your reply.
It works nicely but, allselected keep the filters outside the query, is there any possible to avoid this?
When I agregate 2 dimensions in cascade the percentage doens't work, I thin might be beacuse of filters.
thanks in advance.
If you want to ignore the filter, you can replace ALLSELECTED with ALL().
Measure = CALCULATE(SUM(Table[Value]),ALL(Table))
Pct= SUM(Table[Value])/CALCULATE(SUM(Table[Value]),ALL(Table))
Regards,
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 |
---|---|
111 | |
100 | |
80 | |
64 | |
58 |
User | Count |
---|---|
146 | |
110 | |
93 | |
84 | |
67 |