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 am creating a report for a school and will be including one pie chart of all the different registration codes used. I need to inlcude a measure which adds us all the attendance marks (nameed 'All Marks'), if include this measure then all codes %'s are worked out on the chart. I know I could do this with measures for each code but seen as it is only for this is for one visual I wasnt sure if there was an easier way of including the 'All Marks' measure, but hiding it from the pie chart.
Is this possible?
Thanks for your time
Helen
Hi, @hellyLoft
I am not very clear about your requirement I assume that you want to calculated the percentage for each code according to the visual interaction. I created data to reproduce your scenario.
Table:
You may create a measure as below.
Percentage =
DIVIDE(
SUM('Table'[Value]),
CALCULATE(
SUM('Table'[Value]),
ALLSELECTED('Table')
)
)
Result:
If i misunderstand your thoughts, please show us some sample data and expected result with OneDrive for business. Thanks.
Best Regards
Allan
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thank you for the reply. I will see if this works with what I was looking for.
@hellyLoft I guess you are saying if you filter All Marks , % of other categories (ids) are not calculated correctly? Correct? Can you share sample data and expected output?
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
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 |
---|---|
115 | |
100 | |
88 | |
68 | |
61 |
User | Count |
---|---|
152 | |
120 | |
102 | |
87 | |
68 |