Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

How to Create a Power BI Table Hyperlink

· 6 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

To create a hyperlink in a Power BI table, you must change the Data Category of your URL column to 'Web URL' within the Data view or the Model view. This tells Power BI to treat the text string as a clickable link rather than plain text, allowing users to navigate directly to websites, internal documents, or other web-based resources from your report visuals.

What You'll Need

  • Power BI Desktop installed on your computer.
  • A dataset containing a column of text strings that are valid URLs (e.g., starting with http:// or https://).
  • A Table or Matrix visual added to your report canvas.

Step-by-Step

  1. Prepare your data source: Ensure your underlying data (whether from Excel, SQL, or a web source) contains a column specifically for links. Each row must have a complete, valid URL. If your URLs are incomplete (e.g., they only contain the domain name without the protocol), you will need to create a calculated column to prepend 'https://' to the text.
  2. Load the data into Power BI: Open your Power BI Desktop file and ensure the table containing your URLs is loaded into the Fields pane on the right side of the screen.
  3. Select the URL column: In the Fields pane, click on the specific column name that contains the web addresses. Do not click the checkbox next to it; click the actual name of the field to highlight it.
  4. Navigate to Column Tools: Once the column is selected, look at the top ribbon menu. A contextual tab labeled 'Column tools' should appear. Click on this tab. Note that menu labels may vary slightly depending on your specific version of Power BI Desktop.
  5. Change the Data Category: Within the 'Column tools' tab, locate the 'Properties' group. You will see a dropdown menu labeled 'Data Category', which defaults to 'Uncategorized'. Click this dropdown and select 'Web URL' from the list.
  6. Verify the change in Data View: To confirm it worked, switch to the 'Data view' (the table icon on the left-hand sidebar). The text in that column should now appear as blue, underlined clickable text.
  7. Add the column to your visual: Go back to the 'Report view' (the bar chart icon on the left). Select your Table or Matrix visual on the canvas. Drag your newly categorized 'Web URL' column into the 'Columns' or 'Values' bucket in the Visualizations pane.
  8. (Optional) Use an Icon instead of a long URL: If the long URL makes your table look cluttered, you can replace the text with a small web icon. With the Table visual selected, go to the 'Format' pane (the paintbrush icon). Navigate to 'Visual' > 'URL icon' and toggle the switch to 'On'. This will replace the long text string with a clean hyperlink icon.

Common Mistakes

One of the most frequent errors is attempting to make a hyperlink work without changing the Data Category. If you leave the category as 'Uncategorized', Power BI treats the URL as a standard text string. You will see the address, but clicking it will do nothing. Always verify that 'Web URL' is selected in the Column Tools ribbon.

Another common mistake involves malformed URLs. For a link to function, it must include the protocol (http:// or https://). If your data contains 'www.google.com' instead of 'https://www.google.com', the browser may fail to resolve the link correctly when clicked from within the Power BI service or desktop app. If your data is missing these prefixes, use a DAX calculated column to fix it: LinkColumn = "https://" & 'TableName'[RawURLColumn].

Users often try to apply hyperlinks to columns that contain non-URL text, such as product names or employee IDs. You cannot turn a standard text column into a hyperlink unless that text is a valid web address. If you want a product name to act as a link, you must create a relationship between the product name and a URL column, or use a DAX measure to concatenate the product name with a base URL string.

Tips

To keep your reports professional and readable, use the 'URL icon' feature mentioned in the steps above. Long, complex URLs can take up significant horizontal space in a table, forcing users to scroll excessively. Switching to an icon keeps the table compact and visually appealing.

If you need to link to internal company resources, ensure that the users viewing the Power BI report have the necessary permissions to access those internal sites. A hyperlink in Power BI is simply a pointer; it does not bypass security protocols. If a user clicks a link to a SharePoint folder they don't have access to, they will receive an 'Access Denied' error from SharePoint, not from Power BI.

For advanced users, consider using the 'Conditional Formatting' feature to change the color of your links based on certain criteria. While the 'Web URL' category handles the clickability, you can still use the 'Font color' settings in the Format pane to make certain links stand out (for example, making 'Urgent' links red).

Troubleshooting

If your hyperlinks are not working, follow these steps in order:

  1. Check the Data Category: This is the cause of 90% of issues. Re-select the column and ensure 'Web URL' is selected in the Column Tools tab.
  2. Verify the URL structure: Copy the text from one of your cells and paste it directly into a web browser. If the browser cannot open it, the issue is with your source data, not Power BI. Ensure the 'https://' prefix is present.
  3. Check for hidden spaces: Sometimes data imported from Excel or CSV files contains leading or trailing spaces (e.g., " https://google.com"). These spaces can break the URL. Use the 'Trim' function in Power Query to clean your URL columns.
  4. Refresh the dataset: If you recently changed the data category, sometimes the visual needs a manual refresh or a restart of Power BI Desktop to render the clickable element correctly.
  5. Check Power BI Service settings: If the links work in Power BI Desktop but not in the web browser (Power BI Service), check if your organization has implemented security policies that block certain domains or prevent pop-ups.

Frequently Asked Questions

Can I make an image clickable as a hyperlink?

Yes, but it requires a different approach. You cannot simply set an image's category to Web URL. Instead, you must use the 'Image URL' data category for the image itself, and then use a workaround involving a button or a specific DAX measure to trigger the navigation, or use the 'Web URL' icon setting if the visual supports it.

Why does my URL show up as text even after I changed the category?

Ensure you have actually added the column to the visual. If you changed the category in the Data view but haven't updated the visual in the Report view, or if you are looking at a different version of the column, the change might not be visible. Also, ensure you are not using a 'Measure' that returns text; measures must be specifically formatted to support URL behavior.

How do I link to another page within the same Power BI report?

This is called 'Page Navigation'. You do not use the 'Web URL' data category for this. Instead, you use a Button or a Navigator visual and set the 'Action' type to 'Page navigation'. This allows you to select a specific destination page within your report file.

Can I use hyperlinks in a Card visual?

Standard Card visuals in Power BI do not support clickable hyperlinks. They are designed to show a single aggregate value as text. To have a clickable link, you should use a Table, Matrix, or a Button visual instead.

Does the hyperlink work on the Power BI Mobile app?

Yes, once the column is categorized as a 'Web URL', users on the Power BI mobile app can tap the link, and it will open in the mobile device's default web browser.