Dynamic images depending the filtered value

Hello,

I am wondering if is it posiible in Quicksight to change dynamically the images. For example, I have data of 5 countries and when I choose Ecuador, I want the flag of this country, then if I filter Colombia, I need the flag of this country, and so on.

Please, I hope you can guide me. Thank you very much

Hi @Castro and welcome to the Quick Sight community!
Yes, this would be possible depending on your dataset and how you have it structured.

The best way to achieve this would be the following:

  • Start by creating a public folder in S3 that can store the picture files while creating a public link that can be utilized to access the picture(s).
  • Once completed, take the link for each picture, add a new column to your dataset and add each link to the respected country row. (or create a second dataset with a common field that would allow you to join the datasets).
  • Then, once your dataset is updated with the picture links. Create a table visual, add the logo field (links), then you can hide things like the title, head columns, ‘country’ field row, etc. so that only the value showing is the flag link. In format visuals, you can select ‘show hyperlink as image’ which will convert the link over to your image.

Let me know if this works for your case or if you have any additional questions.

Thank you very much. That was the solution

1 Like