cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
KarthikMohan
Regular Visitor

change of country flag based on selection of country

Hi, 

 

i m new to power bi, i have some around 20 countries in the selection. if i selectin USA country, USA flag to be displayed , if i select UK,  country, UK flag to be displayed on the top of my visualization . same for other countries. that is based on country selection, flag needs to be changed?

 

Is there any way to do that. Thanks.!!!

 

Regards,

Karthik Mohan

2 ACCEPTED SOLUTIONS
KGrice
Solution Sage
Solution Sage

You could check out the Image Viewer custom visual. The description mentions using a slicer to determine which image is displayed. However, it's based on your image having a url, so you might have to arrange that for your data. There are several places online that you could probably use to pull your flag images, such as flags.NationMaster.com.

View solution in original post

@KarthikMohan if you're able to find url for all countries flags images online then you can use Image Viewer custom visual.

 

What you need to do is in your dataset against each country specify url to that countries flag image online. Make sure data category for the column is Image URL. Then simply use Image Viewer custom visual with the url field from dataset. When selection is made on slicer Image Viewer will be filtered with that country's flag image.

View solution in original post

3 REPLIES 3
KarthikMohan
Regular Visitor

Hi,

i m new to power bi, i have some around 20 countries in the selection. if i selectin USA country, USA flag to be displayed , if i select UK, country, UK flag to be displayed on the top of my visualization . same for other countries. that is based on country selection, flag needs to be changed?

Is there any way to do that. Thanks.!!!

Regards,
Karthik Mohan

 

@KarthikMohan if you're able to find url for all countries flags images online then you can use Image Viewer custom visual.

 

What you need to do is in your dataset against each country specify url to that countries flag image online. Make sure data category for the column is Image URL. Then simply use Image Viewer custom visual with the url field from dataset. When selection is made on slicer Image Viewer will be filtered with that country's flag image.

KGrice
Solution Sage
Solution Sage

You could check out the Image Viewer custom visual. The description mentions using a slicer to determine which image is displayed. However, it's based on your image having a url, so you might have to arrange that for your data. There are several places online that you could probably use to pull your flag images, such as flags.NationMaster.com.

Helpful resources

Announcements
PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

MPPC 2023 PBI Carousel

Power Platform Conference-Power BI and Fabric Sessions

Join us Oct 1 - 6 in Las Vegas for the Microsoft Power Platform Conference.

Top Solution Authors
Top Kudoed Authors