Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
mbrierley
Advocate II
Advocate II

Trying to create bar chart with percentages

Capture.PNG

I'm trying to create a bar chart (similar that shown above) that shows the percentage for grades in my organisation. I then need each bar for each grade to be subdivided to show the results for religion. So for example, for EO grade, I need to see the percentages for 'christian', 'muslim', 'hindu' etc. But I also need to hide data from view, such as 'prefer not to say' without affecting the percentages. 

 

I'm stuggling to show this at the moment and was hoping someone could advise? I'm fairly new to Power BI so don't have a great knowledge of it

1 ACCEPTED SOLUTION
V-lianl-msft
Community Support
Community Support

 
First, you can create a calculated column to get the value of each grade.
Then use the if function to return the value of each religion and divide it by the calculated column.
percentage.PNG
 
Please refer to the pbix.
 
Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
V-lianl-msft
Community Support
Community Support

 
First, you can create a calculated column to get the value of each grade.
Then use the if function to return the value of each religion and divide it by the calculated column.
percentage.PNG
 
Please refer to the pbix.
 
Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

That's great! I had to do a little bit of custom editing of the forumulas but I got there in the end. I also found the link below pretty helpful too;

 

click here 

Tahreem24
Super User
Super User

Use clustered column chart from Visualization pane.

Please give Kudos and accept this as a solution if it helps you.
Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Please take a quick glance at newly created dashboards : Restaurant Management Dashboard , HR Analytics Report , Hotel Management Report, Sales Analysis Report , Fortune 500 Companies Analysis , Revenue Tracking Dashboard

I've tried this but I when I moved the field with the religion results into the value field, it doesn't split the data up. It just pulls back one block. Is there something obvious that I'm missing 😕

 

Also, the data field that I'm using is a text field and I can't seem to change to %. The axis is therefore still showing headcount

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric community.