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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Sept PBI Carousel

Power BI Monthly Update - September 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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

Top Solution Authors
Top Kudoed Authors