Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
PSA
New Member

How to Render DAX Measure with Hyperlinks in Power BI Matrix Visual?

Hello Power BI community,

I am trying to create a DAX measure that combines multiple ISSUE_KEY values from Issues table into a string of clickable hyperlinks. The goal is to concatenate the values and display them as individual links in a Power BI Matrix visual.

I have the URL saved in Issues[ISSUE_URL] but the display text should be Issues[ISSUE_KEY]

Here is the DAX measure I’m using:

 

CombinedIssuesWithLinks = 
CONCATENATEX(
    Issues, 
   // Something like HYPERLINK(Issues[URL],Issues[ISSUE_KEY])
    "<a href='" & Issues[URL] & "' target='_blank'>" & Issues[ISSUE_KEY] & "</a>",
    UNICHAR(10)  // To add a line break between links
)

 

However, when I add this measure to my Matrix visual, Power BI does not render the hyperlinks but instead displays the raw text.

My questions are:

  1. Is it possible to render HTML or clickable hyperlinks in a Matrix or Table visual using DAX in Power BI?
  2. If not, are there any workarounds to display concatenated hyperlinks in a way that Power BI will recognize them as clickable links?
  3. Is there any way to create dynamic rows inside a matrix cell if more than one value exists? For example, if there are multiple ISSUE_KEY values, can I dynamically add separate rows within a single matrix cell?

I would appreciate any advice or solutions that can help me achieve clickable hyperlinks or similar dynamic row behavior within a matrix or table cell in Power BI.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @PSA ,

I'm afraid that's not possible.
After testing, multiple URL values in a cell in table visual and matrix visual will be rendered as an illegal and invalid URL.

vdengllimsft_1-1729844426136.png

vdengllimsft_0-1729844230244.png


You can only select a URL value to take effect with some settings (First/Last).

vdengllimsft_2-1729844768832.png

 

Best Regards,
Dengliang Li

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

Thanks for the reply from shafiz_p, please allow me to provide another insight.
Hi @PSA ,

Below is my sample data.

vdengllimsft_0-1729738385714.png


Create a measure.

CombinedIssuesWithLinks = SELECTEDVALUE(Issues[ISSUE_KEY])

 

Place the ISSUE_KEY field with the measure in the table visual.

Go to Table Visual Format->Visual->Cell Elements->For Apply settings to select the measure, find the Web URL and set it to On.
In the Web URL dialog box, select the ISSUE_URL field.

vdengllimsft_1-1729738599306.png

 

In this way, the measure becomes a clickable hyperlink text pointing to the corresponding link.

vdengllimsft_3-1729739167867.png

You can also refer to the following link for more information.

Add hyperlinks (URLs) to a table or matrix - Power BI | Microsoft Learn


Please see the attached pbix for reference.

Best Regards,
Dengliang Li

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi Dengliang, 

 

I have tried this method but it either takes the first or the last value. I have multiple values and i want to concatenate them to a single value with correct URL.

PSA_0-1729753065863.png

 

Anonymous
Not applicable

Hi @PSA ,

I'm afraid that's not possible.
After testing, multiple URL values in a cell in table visual and matrix visual will be rendered as an illegal and invalid URL.

vdengllimsft_1-1729844426136.png

vdengllimsft_0-1729844230244.png


You can only select a URL value to take effect with some settings (First/Last).

vdengllimsft_2-1729844768832.png

 

Best Regards,
Dengliang Li

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

shafiz_p
Super User
Super User

Hi @PSA  Rendering HTML or clickable hyperlinks directly in a Power BI Matrix or Table visual using DAX measure is not supported. However, you can achieve clickable hyperlinks by using calculated column and change the data category to Web URL. See image below:

shafiz_p_0-1729684727861.png

This is clickable. It will redirect to the website.

 

Hope this helps!!

If this solve your problem, please accept it as a solution!!

 

Best Regards,
Shahariar Hafiz

 

 

Hi Shafiz, 

Yes, i can display the whole URL directly. But what I want is to only display the Text.

Something like the following where Display text 1 and Display Text2 has got two diffent links.

PSA_0-1729686165846.png

 

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.