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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors