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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
StuartSmith
Power Participant
Power Participant

Auto-select/Display Map Bubble Value in card when only one bubble on map.

I have a map that shows various data bubbles and if a bubble is selected, the data for the bubble is shown in a card. Is there a way that if the map is zoomed is so that there is only one data bubble showing, it is auto selected and the card value auto-populated as if the user had selected the bubble with the mouse?

 

1 ACCEPTED SOLUTION

I believe I may have found a way.  I created an IF Count measure for the address table to see if the count was 1, anything other than 1 would not populate the cards, but if the address table was 1, the cards were populated.  Seems to work, but need to test.

 

Here is the code, and checks various on slices and will only populate cards if a single value is selected.  Might not be the most efficient code, but it seems to meet my needs of only ever populating the cards if the address table has 1 row.

 

HRBusinessPartner.Title_Measure = IF(ISFILTERED('Location Overview'[Address]) && HASONEVALUE('Location Overview'[Address]) || ISFILTERED('Location Overview'[Country]) && HASONEVALUE('Location Overview'[Country]) || ISFILTERED('Location Overview'[City]) && HASONEVALUE('Location Overview'[City]) || ISFILTERED('Location Overview'[Building Code]) && HASONEVALUE('Location Overview'[Building Code]), IF(COUNT('Location Overview'[Address]) =1, LASTNONBLANK('Location Overview'[HRBusinessPartner.Title],""), ""), "")

View solution in original post

2 REPLIES 2
v-lili6-msft
Community Support
Community Support

hi, @StuartSmith

After my research, I'm afraid it couldn't achieve in Power BI for now.

For your requirement, you could post your new idea in Power BI ideas and make this feature coming sooner.

 

 

Best Regards,

Lin

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

I believe I may have found a way.  I created an IF Count measure for the address table to see if the count was 1, anything other than 1 would not populate the cards, but if the address table was 1, the cards were populated.  Seems to work, but need to test.

 

Here is the code, and checks various on slices and will only populate cards if a single value is selected.  Might not be the most efficient code, but it seems to meet my needs of only ever populating the cards if the address table has 1 row.

 

HRBusinessPartner.Title_Measure = IF(ISFILTERED('Location Overview'[Address]) && HASONEVALUE('Location Overview'[Address]) || ISFILTERED('Location Overview'[Country]) && HASONEVALUE('Location Overview'[Country]) || ISFILTERED('Location Overview'[City]) && HASONEVALUE('Location Overview'[City]) || ISFILTERED('Location Overview'[Building Code]) && HASONEVALUE('Location Overview'[Building Code]), IF(COUNT('Location Overview'[Address]) =1, LASTNONBLANK('Location Overview'[HRBusinessPartner.Title],""), ""), "")

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

Find out what's new and trending in the Fabric Community.

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

Check out the November 2024 Power BI update to learn about new features.