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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Dheeraj_Trek
New Member

Power Bi Treemap Visualization

Hi,

 

Is it possible to make the category field of treemap visualization to change based on the slicer?

I've created a DAX measure with the SWITCH function to toggle based on the slicer but the Category field of treemap visual is not accepting this DAX measure.

 

2 ACCEPTED SOLUTIONS
Jai-Rathinavel
Super User
Super User

@Dheeraj_Trek , You can create a Field Parameter and pull that into the category field of the Tree Map visual like below

1. Select the field parameter

JaiRathinavel_0-1732171939592.png

2. Drag the columns you want to switch between, in my case Country and Product and Click Create

JaiRathinavel_1-1732172034977.png

3. Map the Parameter to Category field of Treemap and use the slicer to switch between the fields.

JaiRathinavel_3-1732172210901.png

 

Did I answer your question? If yes, please mark my post as a solution.

 

Thanks,

Jai

 




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





View solution in original post

@Dheeraj_Trek yes possible, you can use the same field parameter for a table visualisation 




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





View solution in original post

4 REPLIES 4
Jai-Rathinavel
Super User
Super User

@Dheeraj_Trek , You can create a Field Parameter and pull that into the category field of the Tree Map visual like below

1. Select the field parameter

JaiRathinavel_0-1732171939592.png

2. Drag the columns you want to switch between, in my case Country and Product and Click Create

JaiRathinavel_1-1732172034977.png

3. Map the Parameter to Category field of Treemap and use the slicer to switch between the fields.

JaiRathinavel_3-1732172210901.png

 

Did I answer your question? If yes, please mark my post as a solution.

 

Thanks,

Jai

 




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Hi Jai,

 

Is it possible to link another table visualization with this same slicer created with the above field parameter?

@Dheeraj_Trek yes possible, you can use the same field parameter for a table visualisation 




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Thanks Jai!

It works perfectly as I expected.

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.