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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! 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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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