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
bremnnat
Frequent Visitor

Dynamic Rows based on Column Slicer Selection

Hello,

 

I'm attempting to recreate a report that was once created in Tableau. This report has a table with columns "A, B, C, D, E, etc." and I want to be able to dynamically switch between these columns on the rows of my matrix using a slicer or filter like I see on tableau. The formula used in tableau looks like this:

 

CASE [Group by]
WHEN 'A' THEN [A]
WHEN 'B' THEN [B]
WHEN 'C' THEN [C]
WHEN 'D' THEN [D]
WHEN 'E' THEN [E]
WHEN 'F' THEN [F]
WHEN 'G' THEN [G]
ELSE ''
END

The reference column is then put into a slicer/filter and by selecting each value it would return the designated column from the main table. Is there any way to replicate this in Power BI? I was able to recreate something very similar for the measures of my table which works very well, however since I want this to be on the rows for the matrix I, unfortunately, cannot add a measure to that field. It also will not work for calculated tables and columns and returns with an error message of "A table of multiple values was supplied where a single value was expected."

Any help would be very much appreciated because this feature is very important for my report as it is used more as a tool rather than a report.

 

Best,

Nathan

3 REPLIES 3
v-chuncz-msft
Community Support
Community Support

@bremnnat,

 

You may select Unpivot Columns in the Query Editor, then drag Attribute to Field for Slicer and Value to Rows for Matrix.

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

@v-chuncz-msft I believe that I need to make a connection to my original data source somehow, but I do not know the best way to go about doing that. I do not have any columns that are similar between the two.

@bremnnat,

 

Your new requirement is not very clear to me. More detailed information are expected.

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

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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