cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ggilmoreatu Regular Visitor
Regular Visitor

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 Regular Visitor
Regular Visitor

Re: Switch Function for Column Titles/Contents

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

Highlighted
ggilmoreatu Regular Visitor
Regular Visitor

Re: Switch Function for Column Titles/Contents

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
Ask Amir Anything

Exclusive LIVE Community Event No. 2 – Ask Amir Anything

Next in our Triple A series: Ask Amir Netz questions about the latest updates, features and future.

October 2019 Community Highlights

October 2019 Community Highlights

October was a busy month in the community. Read the recap article to learn about some of the events and content.

New Solution Badges

New Solution Badges

Two waves of brand new solution badges are coming! Read the article for more information on our new community badges.

Analytics in Azure virtual event

Analytics in Azure virtual event

Experience a limitless analytics service built to ingest, prep, manage, and serve data for immediate use in Power BI.

Users Online
Currently online: 6 members 1,198 guests
Please welcome our newest community members: