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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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