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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Anonymous
Not applicable

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

View solution in original post

1 REPLY 1
Anonymous
Not applicable

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

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.