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

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. 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 Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

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