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
xierwee
Helper I
Helper I

Treemap and Card

Hi, I have a question regarding Treemap and Card when they are connnected. 

 

when I click one block in the Treemap, a corresponding value will be displayed in the Card. When nothing in the Treemap is selected, it will show the sum of the values in the Card data. But I'd like to show another value in the Card data when nothing is selected in the Treemap.

 

Thank you in advance. 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

You can use isfiltered or hasonevalue. or isinscope depend on your formula need what you want to display

Please refer.

https://powerpivotpro.com/2013/03/hasonevalue-vs-isfiltered-vs-hasonefilter/

 

Provide more information, to help further.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

3 REPLIES 3
Sabeeluzzama
Regular Visitor

PLease try to use HASONEFILTER or ISFILTERED in the measure you are using in the card.

 

it should work 🙂

 

xierwee
Helper I
Helper I

thank you!

amitchandak
Super User
Super User

You can use isfiltered or hasonevalue. or isinscope depend on your formula need what you want to display

Please refer.

https://powerpivotpro.com/2013/03/hasonevalue-vs-isfiltered-vs-hasonefilter/

 

Provide more information, to help further.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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.