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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
Anonymous
Not applicable

Card Measure as Tree Map Values Field

Hi,

 

I'm trying to build a visual that uses four cards for a top row of a dashboard with different measures ($ sales, % sales, year over year, and year to date). Below the line of four cards will be a line graph and a tree map. I'd like the end user to click on the card (say $ sales), then the line chart and tree map use the $ sales measure as the value. Then if the end user clicks on % sales, the line graphs and tree maps redraw using % sales as the value. Help is greatly appreciated. 

 

Thank you.

 

Owen

2 ACCEPTED SOLUTIONS
danextian
Super User
Super User

Hi @Anonymous ,

 

I would use bookmarks and field parameters for this use case.  I'd overlay a no fill shape on every measure. Each shape is assigned a bookmark view (wherein an item in the field parameter  is selected). Here's a sample pbix - https://drive.google.com/file/d/1KvFIhKEZrxbL_MKOcYDbKD09_sJwJdQP/view?usp=sharing 

Demo on youtube - https://youtu.be/fXuYtewItmw 





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

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


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

View solution in original post

Anonymous
Not applicable

Hi @Anonymous ,

 

As a workaround, we can use a slicer for different results of visuals.

Create a table by entering data.

vstephenmsft_0-1657787338270.png

Then create a measure like the following.

Measure =
SWITCH (
    SELECTEDVALUE ( 'Table (2)'[Type] ),
    "Sales($)", [MeasureSales($)],
    "Sales(%)", [MeasureSales(%)]
)

Put the measure into the Values of the visual.

When you filter the slicer, the result of the visual will change. 

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi @danextian, The solution looks great. Once I figured out how to turn on 'field parameters' in the preview features, your idea worked and was implemented. Thanks so much. 

Anonymous
Not applicable

Hi @Anonymous ,

 

As a workaround, we can use a slicer for different results of visuals.

Create a table by entering data.

vstephenmsft_0-1657787338270.png

Then create a measure like the following.

Measure =
SWITCH (
    SELECTEDVALUE ( 'Table (2)'[Type] ),
    "Sales($)", [MeasureSales($)],
    "Sales(%)", [MeasureSales(%)]
)

Put the measure into the Values of the visual.

When you filter the slicer, the result of the visual will change. 

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

danextian
Super User
Super User

Hi @Anonymous ,

 

I would use bookmarks and field parameters for this use case.  I'd overlay a no fill shape on every measure. Each shape is assigned a bookmark view (wherein an item in the field parameter  is selected). Here's a sample pbix - https://drive.google.com/file/d/1KvFIhKEZrxbL_MKOcYDbKD09_sJwJdQP/view?usp=sharing 

Demo on youtube - https://youtu.be/fXuYtewItmw 





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

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


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.

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.

March Power BI Update Carousel

Power BI Community Update - March 2026

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