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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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