I have a self hosted instance of Redash (Version: 8.0.0+b32245) and I’m trying to setup a link in the table visualization.
This table is based on a query with rollup function, so as a result I have some empty cells in my table:
The link column type always shows something. You could change the Text Template to a less distracting value like “Click Here”. But it would still appear even when the link is “dead”.
AFAIK the only way to hide a missing link is to encode the link in your SQL:
SELECT
CASE WHEN MerchantLocation IS NULL THEN ''
ELSE '<a href="http://192.168.56.101:5000/dashboard/' || table.Field || '">' || MerchantLocation || '</a>' END as MerchantLocation
FROM ...
Then check Allow HTML Content on that column of the table visualization.
You can do this with an HTML link! Just add target="_blank" to the tag. Updating the code example from before:
SELECT
CASE WHEN MerchantLocation IS NULL THEN ''
ELSE '<a target="_blank" href="http://192.168.56.101:5000/dashboard/' || table.Field || '">' || MerchantLocation || '</a>' END as MerchantLocation
FROM ...