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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Switch Function for Column Titles/Contents

Hello,

 

I'm looking for a formula for a measure that will only display the column headers and once the column header is selected the contents of the column appear in another chart.

 

Example:

 

Creating a slicer that has "Brand", "Manufacturer", "Category" - Each of these are columns within the database

 

Let's Assume I select Brand - I would like my treemap visualization to show the different brands and if I selected manufactuer I would like my treemap to change to manufacturers

 

I have individual columns that all have contents (Brand A, Brand B, etc) and I also have a column that has all of the column headers (Brand, Category,etc) - something to reference too? 

 

I can make the treemap based off of Sales values.

 

This data set is very restrictive and I can only create measures - No tables,etc... I've used the VAR function and Switch function previously to reference different measures.

 

Any help would be greatly appreciated

2 REPLIES 2
Bian
Helper II
Helper II

Not really sure how your data ooks like from your description but have you tried using Selectedvalue() to filter your other chart?

https://docs.microsoft.com/en-us/dax/selectedvalue-function

Anonymous
Not applicable

Yes I'm not really sure how to get the treemap to dynamically change based off of that formula... Any examples or help you could provide would be greatly appreciated.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors