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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

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
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 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.