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

Dynamically change images in Qlik Sense

Hi,

I have a certain regions which has list of countries and their respective flag. Upon changing the region from the filter pane the list of countries and the flags should change.

Eg of data:-

Region Country Flag

Asia India (icon for flag)

Asia Japan (icon for flag)

........

Any help would be highly appreciated.

Thanks,

Swati

1 Reply
Patricia_Silva
Specialist II
Specialist II

Hello @swati I am not 100% sure of what you need to achieve but if you mean change the flag icon based on X selection (country name for example) then you can do it maybe with the following Qlik Extension: https://developer.qlik.com/garden/57a0b25204177e48f38a8031 and once you install this extension, in "MedioBox" select "Image from Url" URL" and paste for example, let's say we have the following link

https://ak-static.cms.nba.com/wp-content/uploads/headshots/nba/1610612757/2020/260x190/203081.png

Where you can see the number 203081 which is the ID for this specific player. So then the URL you should use in your case if you wanted to change the player based on PLAYER_ID selection, then the URL should look like this (where '&PLAYER_ID&' is going to be dynamically changed based on player ID number)

='https://ak-static.cms.nba.com/wp-content/uploads/headshots/nba/latest/260x190/'&PLAYER_ID&'.png'

So taking this example maybe you can apply it to any web site like the onle below:

https://www.countryflags.com/icons-overview/

Thanks 🙂 Hope this can help you 😊

 

Help users find answers! Don't forget to mark a correct resolution 🙂