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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 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.

Top Solution Authors