The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hi folks,
I'm running into issues displaying a % calculation for categories displayed in a bar chart. I need to figure a way to get a bar chart in POwer BI to show the categories in the y-axis, the x-axis needs to be capped at 100% and then the calculation needs to show the specific % for each category sorted by the highest % (its not cumulative so it doesnt need to be a grand total or a stacked 100% chart).
As an example, each category could be an exam and the % is the pass rate. How would I achieve that with the standard bar charts in Power BI? In my initial testing, simply putting the category column in the y-axis and the calculation in the x-axis results in each bar showing 100%.
Here's an example of what the calculation looks like in DAX:
Pass Rate = CALCULATE(COUNT('Table'[Student ID], 'Table'[Pass or Failed] = "Pass") / COUNT('Table'[Student ID])
Thank you!
Unfortunately, I am not able to hence why I am asking the question as generally as possible. Thank you!
Hi @pbrenneise I understand your "issue" is just" a % calculation for categories ", so calculation. please provide some sample data and expected output per category
Proud to be a Super User!
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
User | Count |
---|---|
21 | |
21 | |
18 | |
16 | |
13 |
User | Count |
---|---|
41 | |
38 | |
23 | |
21 | |
19 |