The URL action allows the dashboard to invoke a webpage, either using the user's default web browser or using a web page placeholder that exists in the dashboard. Adding a URL action can add a lot of value to a dashboard because it can allow additional information to be searched or fetched in addition to information the dashboard already offers. This can definitely engage the end users.
In this recipe, we will create a dashboard that uses a URL action to look up information about an NBA team from Wikipedia.
To follow this recipe, open B05527_04 – STARTER.twbx
. We will use the following worksheets:
The following are the steps to create the dashboard in this recipe:
Team and Players – Embed URL
.Check out the <Team> NBA.com home page
http://www.nba.com/<Team>/
Look for <Team> information on Wikipedia
http://www.nba.com/<Team>/
Filter dashboard for <Team>
The URL action allows us to specify a URL that our dashboard can navigate to. If there is a web page object in the dashboard, the URL action displays the web page in that object. If there is no web page object, the URL is opened in the default web browser.
As with the other actions, the URL action can be used with Select, Hover, or Menu. Menu is quite popular as this creates a hyperlink for each URL action, almost simulating a drop-down menu from a web page. The hyperlink can be customized, and can include values we have in the dashboard.
To feed values from our dashboard to the target URL, the target URL must be able to accept parameters at the URL string. These are called GET parameters.
The URL action opens up a world of possibilities. However, be wary that when websites are embedded, the behavior may change as the providers change their agreement, code, and so on. For example, a while back, it was pretty easy to embed YouTube videos into Tableau dashboards and play them on Tableau Desktop. However, this behavior has changed and the dashboard is now required to be published to Tableau Server/Online/Public before the video plays.
Another aspect to consider when embedding web pages in Tableau dashboards is using the mobile version of the page, when available. Otherwise, many web pages tend to show all the extraneous headers and footers, which may make the page look odd or out of place.
One current limitation is if you have multiple URLs and want to direct them to different web page objects in your dashboard, you cannot. You also cannot choose to open the web page in a new window if you have a web page object in your dashboard.
3.147.58.194