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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now

Reply
punnas1
Helper II
Helper II

Dynamic column

Hi, I have multiple Text columns in multiple tables. I want to create table with some of column header names, when I select any text in slicer those text column to be shown in the matrix table.
1 ACCEPTED SOLUTION

Hi @punnas1 

 

1. Please unpivot the Product and Category columns:

= Table.UnpivotOtherColumns(#"Removed Bottom Rows", {"Amount"}, "Attribute", "Value")

001.PNG 

2. Manage the relationship between them:

002.PNG

3. Final results:

003.PNG004.PNG

Pbix attached.

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.

View solution in original post

7 REPLIES 7
v-diye-msft
Community Support
Community Support

Hi @punnas1 

 

You might consider creating pbix file that will contain some sample data (remove the confidential info), upload the pbix to onedrive or dropbox and share the link to the file. Please do not forget to describe the expected results based on this sample data.

 

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.

Hi @v-diye-msft 

 

I'd upload pbix file in following link.

 

Pls help, Thank in advance.

 

https://drive.google.com/open?id=14459Ykmh3B2LSEjiKaRkZ1906PZhei5f

Hi @punnas1 

 

1. Please unpivot the Product and Category columns:

= Table.UnpivotOtherColumns(#"Removed Bottom Rows", {"Amount"}, "Attribute", "Value")

001.PNG 

2. Manage the relationship between them:

002.PNG

3. Final results:

003.PNG004.PNG

Pbix attached.

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.

Hi @v-diye-msft ,

 

If we have data in one table we can unpivot columns, but columns in multiple tables how to unpivot the data.?

 

is it possible to create measure like this ( measure =

                                                        if (selected values = "product", Table [Product],

                                                        if (selected value = "Category", Table [Category])))

Thanks in advance.

Hi @punnas1 

 

I have a sample could be your reference, please see attached.

 

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.

dear ,

 

Can we swith dimention columns based on slicer seletion.

My requirement has mention in File.

thea 

Greg_Deckler
Community Champion
Community Champion

Not sure you can get what you want. But can't be sure, Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.