Creating a new column with a hyperlink using another column based on grouping

Hi everyone, sorry if the title isn’t very helpful. I’ll describe my problem in depth here.


On the image above, you can see 4 columns: country, id (feedback id), order id, adminLink.
I’ve created the adminLink calculated field that takes the first half of the url from the admin portal and the second half with the order id, which links to the specific order in the admin portal. I’ve done it in this way:
ifelse(country='c1', concat('https://admin.store.com/order/', orderId), country='c2', concat('https://admin.store.c2/order/', orderId), concat('https://admin.store.com.c3/order/', orderId))

Here’s where my complication starts: Under this feedback, I have three countries. All 3 countries use different URL’s for their admin site. In the interactions section for my visual on QS, I’m aware that I can add URLs but those don’t change based on the country. How do I solve this issue? I’m aware that the easier solution is to simply create 3 visuals for all 3 countries but I’d like to have all in one visual as it makes my life easier.

Thanks a lot!

Hello rohit_SB!
It seems that your problem could be solved with the use of Quicksight’s parameters.
Here’s the documentation with all the steps on how to set up one: Setting up parameters in Amazon QuickSight - Amazon QuickSight

Please let me know if this helps you resolve the issue :slight_smile:

this may work if I understand your usecase correctly

Hi @EJRD and @mzerilli , i found the solution and it was much simpler than expected. Due to the condition I have where each country has a different admin store link, @EJRD 's solution didn’t work. However, as I already created a calculated field with the different admin links, all I had to do was to style the field differently:
image image
Works well and it’s much simpler than creating a calculated field. Thanks a lot guys!