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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

Dynamically switch columns on matrix based on the slicer value selection

Hi All,

I have a requirement to dynamicaly change columns on my matrix visual based on the value selected in column slicer. I have tried different suggestions in DAX expressions using SELECTEDVALUE() function, but it doesn't give the output as expected. Please help with your inputs or alternative suggestions. Below is the sample data and requirement details.

Sample data:

Sm95_0-1676280326739.png

Scenario :

  1. I have a slicer named Group. Requirement is that if I select any "Group" column value in slicer, then the matrix must display values grouped by its respective region. 
  2. If I select any "Region" in Group slicer like APJ/EMEA, then the matrix must display values grouped by its respective country.

Below are expected outputs for both above scenarios. 

Expected Output 1:

Sm95_2-1676281182609.png

Expected Output 2:

Sm95_3-1676281278601.png

Thanks!

 

2 REPLIES 2
Idrissshatila
Super User
Super User

Hello @Anonymous ,

 

check if field parameters will work for your case https://learn.microsoft.com/en-us/power-bi/create-reports/power-bi-field-parameters

 

If I answered your question, please mark my post as solution so it would appeare to others, Appreciate your Kudos 👍

 

Follow me on Linkedin



Did I answer your question? Mark my post as a solution! Appreciate your Kudos
Follow me on LinkedIn linkedIn
Vote for my Community Mobile App Idea

Proud to be a Super User!




Anonymous
Not applicable

Hi @Idrissshatila,

Thanks for the suggestion. But field parameters won't work for my requirement. If possible, do suggest if there is any solution with my current slicer structure as shown in the image.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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.