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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
Anonymous
Not applicable

show country average in mapview tooltips

I have a filled map visual

 

Picture1.png

 

And can calculate the score of the counts in a country.

 

I want to calculate the % of scores that were a 2.

ie. I have 5 scores in India: 1,2,3,2,0. I want a tooltip to show 40% (40% of the scores were ==2), not 2.00

 

Is this possible to do in a tooltip?

1 ACCEPTED SOLUTION
Anonymous
Not applicable

I ended up doing this in a two stage process.

 

First, created an aggregated table based on country name:

 

Scores of 2 = SUMMARIZE('Latest Airport Score','Latest Airport Score'[Country],"%2's",ROUND(100*COUNTROWS(filter('Latest Airport Score','Latest Airport Score'[Score]=2))/COUNT('Latest Airport Score'[Country]),1))

 

Next, created a link in the main table by using the related function:

 

% of 2's = RELATED('Scores of 2'[Column])

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

I forgot to add extra important information:

 

I have 60 countries, so making cards is not possible.

 

 

Anonymous
Not applicable

I ended up doing this in a two stage process.

 

First, created an aggregated table based on country name:

 

Scores of 2 = SUMMARIZE('Latest Airport Score','Latest Airport Score'[Country],"%2's",ROUND(100*COUNTROWS(filter('Latest Airport Score','Latest Airport Score'[Score]=2))/COUNT('Latest Airport Score'[Country]),1))

 

Next, created a link in the main table by using the related function:

 

% of 2's = RELATED('Scores of 2'[Column])

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

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.

Top Solution Authors
Top Kudoed Authors