Reply
avatar user
Anonymous
Not applicable
Partially syndicated - Outbound

Percentage of Category displayed on Bar graph.

Hello,

 

I would like to create a graph like this:

percentage.PNG

The percentage is the precent "yes" from the seperate categories.

 

However, on power BI I can only show the percent of grand total or count. For example I only want the "yes" area on this bar chart shown AND it must maintatin the same percentage.

exmaple.PNG

 

Any ideas would be lovely.

 

Here is some example data:

 

IDIn the last 12 months, was there something that prevented you from getting the medical care you needed?Does every member in your household currently have health insurance?On an average day, how many servings of fruit and vegetables do you eat?On average, how many days per week do you exercise 30 minutes or more?In the last two weeks, how many days have you felt sad or depressed?In the last two weeks, how many days have you felt sad or depressed?Income
3NoYes33-47-9NoMore than $25,000
4NoYes45 or moreNoneNoMore than $25,000
5NoYes5 or moreNoneAlmost everydayNoMore than $25,000
6NoYes32-3NoneNoMore than $25,000
7NoYes12-3NoneNoMore than $25,000
8NoYes21-2NoneNoMore than $25,000
9NoYes2None1-2NoLess than $25,000
10NoYes35 or more3-5NoLess than $25,000
11NoYes35 or moreNoneNoLess than $25,000
12NoYes35 or moreNoneNoLess than $25,000
        
1 ACCEPTED SOLUTION
avatar user
Anonymous
Not applicable

Syndicated - Outbound

@ryan_mayu I added a table to the original post! I figure it out though. I manipulated the ledgend a bit and made a measure. 

View solution in original post

6 REPLIES 6
geichenbaum
New Member

Syndicated - Outbound

where can i see the solution you post?

 

ryan_mayu
Super User
Super User

Syndicated - Outbound

have you tried to use DAX to acheive that? 

could you pls provide the sample data ?





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




avatar user
Anonymous
Not applicable

Syndicated - Outbound

@ryan_mayu I have yet to try DAX because I am not sure how to show a measure in this way. I will add example data to the originalpost! Sorry for forgetting to do that. I am looking for the precent of "More than $25,000" and "Less than $25,000". Thank you.

 

Syndicated - Outbound

@Anonymous 

pls see if this is what you want





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Syndicated - Outbound

could you pls provide some sample data?





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




avatar user
Anonymous
Not applicable

Syndicated - Outbound

@ryan_mayu I added a table to the original post! I figure it out though. I manipulated the ledgend a bit and made a measure. 

avatar user

Helpful resources

Announcements
March PBI video - carousel

Power BI Monthly Update - March 2025

Check out the March 2025 Power BI update to learn about new features.

March2025 Carousel

Fabric Community Update - March 2025

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

Top Solution Authors (Last Month)
Top Kudoed Authors (Last Month)