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
a_fman
Helper I
Helper I

Stacked Bar Chart to Count Groups of Column Values Instead of Total Count of all values?

Is there a way on a stacked bar chart to have it show multiple stacks with a count for each based on what I have in a single column of data.

 

In the below instance I have several different membership types sold on each date, but all it does is count the grand total. I need it to count totals for individual membership types sold and stack those.

 

The way I've done stacked charts in other areas for this is using a measure for each distinct type in a data column (such as calculate(sum(column) , type = type a) ), however the membership types here often change, so I'd rather have this be as dynamic as possible.

 

 

1 ACCEPTED SOLUTION
v-shex-msft
Community Support
Community Support

Hi @a_fman,

 

Based on my understanding, you can show the count of each type of items on a stacked bar chart, right?

It is impossible to do this on a stacked bar chart, you can try to use clustered bar chart to achieve your requirement.

 

Sample: modify the summary mode to "count", then drag the type to legend.

 

Capture.PNG

 

Regards,

Xiaoxin sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

1 REPLY 1
v-shex-msft
Community Support
Community Support

Hi @a_fman,

 

Based on my understanding, you can show the count of each type of items on a stacked bar chart, right?

It is impossible to do this on a stacked bar chart, you can try to use clustered bar chart to achieve your requirement.

 

Sample: modify the summary mode to "count", then drag the type to legend.

 

Capture.PNG

 

Regards,

Xiaoxin sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

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.

Top Solution Authors