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

July 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is 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
Fabric Community Sticker Design Challenge Barcelona Carousel

Fabric Community Sticker Challenge - Barcelona 2026

If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!

July Power BI Update Carousel

Power BI Monthly Update - July 2026

Check out the July 2026 Power BI update to learn about new features.

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.

Top Solution Authors