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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
Anonymous
Not applicable

Group by Column values (Count)

Hi , Please I have a Table in this format(FROM) and I will like to count it and group up in this format(TO), is this a

modelling issues . I tried to use a matrix but it will only work for a column. Thanks

image.png

2 ACCEPTED SOLUTIONS
Washivale
Resolver V
Resolver V

Hello @Anonymous ,

 

This would be easier if you can unpivot columns in edit query,

Select columns and click Unpivot Columns option under Transform menu in edit queries, this will change your dataset in preferred format for your visualization

 

Capture2.PNG

let me know if it helps.

 

Thank You,

Washivale

View solution in original post

jtownsend21
Responsive Resident
Responsive Resident

I believe what you need to do is unpivot your data. 

 

This can be achieved by using the query editor and selecting unpivot columns in the transform tab. (See below) 

Capture.PNG

 

After this you may need to rename some of the columns, but the when you have this done, You can throw the corresponding columns into a matrix. 

View solution in original post

3 REPLIES 3
jtownsend21
Responsive Resident
Responsive Resident

I believe what you need to do is unpivot your data. 

 

This can be achieved by using the query editor and selecting unpivot columns in the transform tab. (See below) 

Capture.PNG

 

After this you may need to rename some of the columns, but the when you have this done, You can throw the corresponding columns into a matrix. 

Washivale
Resolver V
Resolver V

Hello @Anonymous ,

 

This would be easier if you can unpivot columns in edit query,

Select columns and click Unpivot Columns option under Transform menu in edit queries, this will change your dataset in preferred format for your visualization

 

Capture2.PNG

let me know if it helps.

 

Thank You,

Washivale

Anonymous
Not applicable

Thanks

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

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.