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

Group Columns in Stacked Column Chart

Hi,

Does anyone know how I can group the following columns?

If I look at the data in a table I see the same Year and Qtr the same Case Type and want to sum the cases.
But for some reason, I cannot see it is not combining the rows highlighted.

GRedhead_0-1651825684207.png

 

1 ACCEPTED SOLUTION
GRedhead
Helper I
Helper I

Hi, i think we have worked it out, it appears to be because of the sort on the Year & Qtr column, it was on the month sort order but when we switch it to itself the column displays as I expected, a bit weird.

View solution in original post

4 REPLIES 4
GRedhead
Helper I
Helper I

Hi, i think we have worked it out, it appears to be because of the sort on the Year & Qtr column, it was on the month sort order but when we switch it to itself the column displays as I expected, a bit weird.

sanalytics
Super User
Super User

@GRedhead 

 

You can grouped the data in Power Query.Below are the steps

let
Source = Source,
#"Grouped Rows" = Table.Group(Source, {"Year qtr", "CaseType"}, {{"Count", each List.Sum([Count]), type nullable number}})
in
#"Grouped Rows"

 

Hope this will help you

 

Regards

sanalytics

Shishir22
Solution Sage
Solution Sage

Hello @GRedhead ,


Can you please check data. There might be blanks or spaces or NULL or "" but all looks similar.

You can use Len(), ISBLANK() functions to rectify.

 

Please mark it as answer if it solves your issue. Kudos are also appreciated.

 

Cheers,

Shishir

Cheers,
Shishir

Sorry not sure I understand the above, all 3 lines have values please see my screenshot and the data on the left.

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.