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! Request now

Reply
arimoldi
Resolver II
Resolver II

From Dataset to Matrix with Group By Columns

Hi,

 

I have a dataset like this:

 

yearunituserskillresult
2021AAppleX1
2021AAppleY3
2021ABrownX2
2021ABrownY3
2021BNickX2
2021BNickY3
2021BJoeX3
2021BJoeY3
2022AAppleX1
2022AAppleY3
2022AMattX1
2022AMattY2
2022ALuckyX1
2022ALuckyY1
2022CPhilX2
2022CPhilY3
2022CHallyX4
2022CHallyY1

 

and I want to get a matrix like this:

 

    20212021202120212022202220222022
unitcount unit 2021count unit 2022skill12341234
A23X11  3   
Y  2 111    
B20X 11     
Y  2        
C02X     1 1
Y    1 1    

 

Which is the most efficient and smart way to do it?

 

Thanks,

Andrea

 

1 REPLY 1
lbendlin
Super User
Super User

The most efficient way is to use two separate matrix visuals.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

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!

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
Top Kudoed Authors