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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
nemo
Helper I
Helper I

Dynamically change the field in a table based on filter selection

Hi All,

I have these 2 tables in my PBI model

 

Table 1    Table 2
booktopic 1topic 2topic 3 topic
book 1aaa 1bbb 1  topic 1
book 2aaa 2 ccc 2 topic 2
book 3 bbb 3ccc 3 topic 3
book 4aaa 4bbb 4   
book 5aaa 5 ccc 5  

 

Is it posisible to use the column topic of Table 2 as a filter and depending on its selection, a correspoding columns (topic 1, topic 2 or topic 3) would be displayed in a table like this?

nemo_0-1664599064603.png

That is, if I selected topic 3 in the filter, the visual would look like this? 

nemo_1-1664599209753.png

Thank you in advance.

1 ACCEPTED SOLUTION
ddpl
Solution Sage
Solution Sage

@nemo ,

 

First you need to unpivot Table 1,

bin01.png

bin02.png

 

After that you can create a matrix and you can slice it as you requested...

 

bin03.pngbin04.png

View solution in original post

1 REPLY 1
ddpl
Solution Sage
Solution Sage

@nemo ,

 

First you need to unpivot Table 1,

bin01.png

bin02.png

 

After that you can create a matrix and you can slice it as you requested...

 

bin03.pngbin04.png

Helpful resources

Announcements
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.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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