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
Anonymous
Not applicable

how to switch two columns in matrix based on slicer value

here is sample data

dim1dim2_1dim2_2dim3_1dim3_2value
EarthEuroAsiaEuro1Asia1165
EarthEuroAsiaEuro2Asia254
EarthEuroAsiaEuro3Asia396
EarthEuroAsiaEuro1Asia4100
EarthEuroAsiaEuro2Asia1100
EarthEuroAsiaEuro3Asia2136
EarthEuroAsiaEuro1Asia391
EarthEuroAsiaEuro2Asia457
EarthEuroAsiaEuro3Asia1118
EarthEuroAsiaEuro1Asia2150
EarthEuroAsiaEuro2Asia3112
EarthEuroAsiaEuro3Asia4154

I want to create a matrix to put dim1 in column1, dim2_1 or dim2_2 in column 2, and dim3_1 or dim3_2 in column 3,

and it should be added a slicer that it's value is 11, 12, 21,22:

if slicer=11 then column2=dim2_1 and column3=dim3_1,

if slicer=21 then column2=dim2_2 and column3=dim3_1,

if slicer=12 then column2=dim2_1 and column3=dim3_2,

if slicer=22 then column2=dim2_2 and column3=dim3_2,

do you know how to make it? Thanks.

1 REPLY 1
olgad
Super User
Super User

Hi, check this article of mine on how to do measure groups/column groups.

https://www.linkedin.com/pulse/field-parameters-case-measure-groups-olga-dontsova/?trackingId=IX8BrZ...


DID I ANSWER YOUR QUESTION? PLEASE MARK MY POST AS A SOLUTION! APPRECIATE YOUR KUDO/LIKE!
PROUD TO BE A SUPER USER!
Best Stories, Interesting Cases: PowerBI Storytime Newsletter
Linkedin Profile: Linkedin
YouTube Channel: PowerBI Storytime

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.