0
0
Tableaubi_tool

URL actions in Tableau - Cell-by-Cell Formula Trace

Choose your learning style9 modes available
Concept Flow
Product Table
+----------+-----------+
| Product  | ProductID |
+----------+-----------+
| Laptop   | 101       |
| Tablet   | 102       |
| Smartphone | 103      |
+----------+-----------+

URL Template
+-----------------------------------------+
| https://example.com/product?id=          |
+-----------------------------------------+

URL Action Formula:
URL = [URL Template] + STR([ProductID])

This creates a clickable link for each product by combining the base URL with the product's ID.
We start with a product list and a URL template. The URL action formula combines the URL template string with the product ID converted to text. This creates a unique URL for each product that can be used as a clickable link in Tableau dashboards.
Formula
URL = [URL Template] + STR([ProductID])

This formula concatenates the URL template string with the ProductID converted to a string, producing a full URL for each product.

Step-by-Step Trace
ProductProductIDURL TemplateURL
Laptop101https://example.com/product?id=https://example.com/product?id=101
Tablet102https://example.com/product?id=https://example.com/product?id=102
Smartphone103https://example.com/product?id=https://example.com/product?id=103
The URL column shows the final clickable URL created by combining the URL template and the ProductID for each product.
Variable Tracker
StepExpressionEvaluates ToExplanation
1[URL Template] for Laptop"https://example.com/product?id="The URL template is a fixed string for all products.
2STR([ProductID]) for Laptop"101"ProductID 101 is converted to text to concatenate with the URL template.
3"https://example.com/product?id=" + "101""https://example.com/product?id=101"Concatenate the URL template with the ProductID string to form the full URL.
4Repeat steps 1-3 for Tablet"https://example.com/product?id=102"Same process for product Tablet with ProductID 102.
5Repeat steps 1-3 for Smartphone"https://example.com/product?id=103"Same process for product Smartphone with ProductID 103.
Key Moments
What does the formula URL = [URL Template] + STR([ProductID]) do?
Why is STR([ProductID]) used in the formula?
What is the final URL for ProductID 103?
Sheet Trace Quiz - 1 Questions
Test your understanding
What does the formula URL = [URL Template] + STR([ProductID]) do?
ACreates a clickable link by combining a base URL and product ID
BCalculates the sum of ProductID numbers
CFilters products by ProductID
DConverts the URL Template to a number
Key Result
URL actions in Tableau combine a fixed URL template string with a dynamic field converted to text, creating clickable links for each data row.
Transcript
We have a product list with IDs and a URL template. The formula concatenates the URL template with the ProductID converted to text. This creates a unique URL for each product. For example, Laptop with ProductID 101 becomes https://example.com/product?id=101. This URL can be used as a clickable link in Tableau dashboards to navigate to product pages.