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

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.

Reply
Anonymous
Not applicable

Show categories with zero value on stacked bar chart

 

I created a conditional column that assigned  'Often', 'Sometimes', 'Rarely', or 'Never' depending on the # of times per week a person does an activity. For example, if '# Exercises per week' column = 7-10 , 'Frequency' = Often. Question: how do I create stacked bar charts that show all 4 categories in the order 'Often', 'Sometimes', 'Rarely', or 'Never' , regardless of how many people fell into each category. For example, in the 1st screenshot below, 0 people exercise 'Rarely' - how do I show that category on the graph?

2.JPG1.JPG

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Please accept the solution if you find the solution helpful.

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Please accept the solution if you find the solution helpful.

Anonymous
Not applicable

Create another table with frequency details. Use 'Sort By' column to sort the frequency by ID. Create a one-many relationship between parent table and frequency table:

 

sort by.JPG

 

 

relationship.JPG

 

 

1. Take [Frequency] from 'Frequency' table on Axis.

2. Count of ID from 'Frequency' table on Value.

3. Count of Frequency from 'Sheet1'/'Parent' table on Value.

 

 

data values.JPG

 

4. Turn off Legend, X-Axis, Tooltip.

5 Use 'White' data color for [Count of ID] and Blue\Green color for [Count of Frequency]

6 Turn on Data Labels, Turn on Customise series under that and turn off the 'show' button.

 

customseries.JPG

 

You will have the desired output.

 

frequency count.JPG 

Anonymous
Not applicable

 

 

This is a huge help!!! Thank you so much! 🙂

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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