Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
I have a filled map visual
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?
Solved! Go to Solution.
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])
I forgot to add extra important information:
I have 60 countries, so making cards is not possible.
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])
User | Count |
---|---|
76 | |
75 | |
46 | |
31 | |
28 |
User | Count |
---|---|
99 | |
91 | |
51 | |
49 | |
46 |