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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
kaguirre
Frequent Visitor

Trouble with Martix

Hi everyone,

I'm needing to create the following matrix:

kaguirre_0-1685646594412.png

[Current Year], [Prior Year], [# Difference] and [% Variation] are different measures already created

But I need it to be all in one measure to add the matrix in different rows

 

the Sales table has the following format:

 

YearMonthSales
2022180
2022290
20223100
20224110
20225120
20226130
20227140
20228150
20229160
202210170
202211180
202212190
20231100
20232120
20233140
20234150
20235170

 

Can you think of how I should do it?

 

PD: excuse my english, i speak spanish

Thanks!

1 ACCEPTED SOLUTION
Ritaf1983
Super User
Super User

Hi @kaguirre 
The easiest way to get a table like yours on the picture is,  to use all your measures and the option " switch values to rows on matrix"

Ritaf1983_0-1685850162214.pngRitaf1983_1-1685850302490.png

 

Link to a sample file 

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly.

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

View solution in original post

3 REPLIES 3
kaguirre
Frequent Visitor

Hi @Ritaf1983 

thank you so much!
I had forgotten about that option, it is super useful.

thanks again!

I was glad to help 🙂

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile
Ritaf1983
Super User
Super User

Hi @kaguirre 
The easiest way to get a table like yours on the picture is,  to use all your measures and the option " switch values to rows on matrix"

Ritaf1983_0-1685850162214.pngRitaf1983_1-1685850302490.png

 

Link to a sample file 

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly.

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

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