Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi Team,
I'm new to PowerBI and experimenting with PowerBI to gain some useful insights into the data that we have.
So far with the Map visualization, I have been able to gain good insights, but it isn't quite helpful when presenting the data.
So what I currently have is a column consisting of the country name where the sale was performed, now what I want to do is it displays the country name and the number of times a sale has been done in that country, now I can see it with tooltip without any issue but isn't something that I can take a screenshot and put it into powerpoint.
What I would like to achieve is to display the number of times the country value appears, so was thinking if there is a way that I can create a new column to count the number of times the value appears in the country column incrementally and then concatenate the country and count and display on the map visualization.
Any help or insights that you would be able to provide is greatly appreciated.
Regards,
Arun
Solved! Go to Solution.
Hi @Anonymous,
Yes, it is possible. I create sample table. You can create a calculated column using the formula as follows.
CountryName-Number = CONCATENATE ( Countries[CountryName] & "-", COUNTX ( FILTER ( Countries, [CountryName] = EARLIER ( Countries[CountryName] ) ), [CountryName] ) )
Or add space between Country name and count.
CountryName Number = CONCATENATE ( Countries[CountryName] & " ", COUNTX ( FILTER ( Countries, [CountryName] = EARLIER ( Countries[CountryName] ) ), [CountryName] ) )
Best Regards,
Angelia
It could theoretically be done, just create a column like:
Country&Number = CONCATENATE([Country],COUNTX(FILTER('Countries',[Country]=EARLIER([Country])),[Country]))
But my bet is that is going to screw up Bing maps from geocoding it properly.
Hi smoupre,
Thank you for the below, is it possible to add a "-" in between the concatenation or Space as currently what I'm getting is a CountryName1234.
Once I get the above in order I will try to see if I can get the Bing Maps to be going okay.
The Map visualization requires an added functionality of call outs.
Regards,
Arun
Hi @Anonymous,
Yes, it is possible. I create sample table. You can create a calculated column using the formula as follows.
CountryName-Number = CONCATENATE ( Countries[CountryName] & "-", COUNTX ( FILTER ( Countries, [CountryName] = EARLIER ( Countries[CountryName] ) ), [CountryName] ) )
Or add space between Country name and count.
CountryName Number = CONCATENATE ( Countries[CountryName] & " ", COUNTX ( FILTER ( Countries, [CountryName] = EARLIER ( Countries[CountryName] ) ), [CountryName] ) )
Best Regards,
Angelia
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
72 | |
71 | |
57 | |
38 | |
36 |
User | Count |
---|---|
82 | |
67 | |
61 | |
46 | |
45 |