
Creating Data Stories with Tableau Public
By :

URL actions are useful when you wish to connect users to external and auxiliary data, whether it's from a public interest website or to a related dashboard. In the next example, you will create a URL action that allows users to view the World Bank's website for each country.
The URL action that you will build will append the name of each country as a variable to the root URL for the World Bank's well-organized websites.
The root URL is http://www.worldbank.org/en/country, and in order to get to a specific country, such as South Africa, you need to add the country name so that it looks like http://www.worldbank.org/en/country/southafrica.
There is one issue—there are no spaces in the country names in the URL and yet, there are spaces in the country names in the data source.
So first, create a Calculated field that removes the space in each Country name so that we can append it as a token to the URL.
To remove and append the Country name with a URL, perform the following steps:
Go to...
Change the font size
Change margin width
Change background colour