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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply

HTML Visual

Hi Power BI Community,

 

I am trying to create a table visual to show updates of the changes I have introduced in my report. The table containing the updates also includes a columns for "updateLink" in which a link to an online video may be present. I would like to create a visual that has a dynamic field containing "View video guide" as the link text and a link to the relevant video guide of the update.

 

I saw I can use the HTML visual but it does not let me include more than one column in the Value section. I check with Copilot and Chat GPT, they both suggested some measures to generate the HTML code to be used in the Value section of the HTML visual, however, Power BI keeps displaying errors for all measures suggested by the AIs.

 

Is anyone able to advise me on how to create such a table in Power BI? Be advised that my Updates table contains the following columns:


updateID which contains a unique ID for each recorded update
updateDate which contains a date when the update was recorded
updateDescription which contains the full description of the update in detail
updateLink which may contain a video link to a guide that discusses of shows the specific change

The following are examples of the measures suggested by Copilot and the errors they both display:

MEASURE
Measure_HTMLTable =
CONCATENATEX (
Updates,
"<tr><td>" & FORMAT(Updates[updateID], "0") & "</td><td>" & FORMAT(Updates[updateDate], "yyyy-mm-dd") & "</td><td>" & Updates[updateDescription] & "</td><td>" & IF(ISBLANK(Updates[updateLink]), "", "<a href='" & Updates[updateLink] & "' target='_blank'>View video guide</a>") & "</td></tr>",
"<br>"
)

ERROR:
The syntax for 'Updates' is incorrect. (DAX(CONCATENATEX (Updates,"<tr><td>" & FORMAT(Updates[updateID], "0") & "</td><td>" & FORMAT(Updates[updateDate], "yyyy-mm-dd") & "</td><td>" & Updates[updateDescription] & "</td><td>" & IF(ISBLANK(Updates[updateLink]), "", "<a href='" & Updates[updateLink] & "' target='_blank'>View video guide</a>") & "</td></tr>","<br>"))).

OR

Measure_HTMLTable =
VAR UpdateRows =
ADDCOLUMNS (
Updates,
"LinkText",
IF ( ISBLANK ( Updates[updateLink] ), "", "View video guide" )
)
VAR TableRows =
CONCATENATEX (
UpdateRows,
"<tr><td>" & FORMAT(Updates[updateID], "0") & "</td><td>" & FORMAT(Updates[updateDate], "yyyy-mm-dd") & "</td><td>" & Updates[updateDescription] & "</td><td>" & IF(ISBLANK(Updates[updateLink]), "", "<a href='" & Updates[updateLink] & "' target='_blank'>" & Updates[LinkText] & "</a>") & "</td></tr>",
"<br>"
)
RETURN
"<table border='1'><thead><tr><th>Update ID</th><th>Date</th><th>Description</th><th>Link</th></tr></thead><tbody>" & TableRows & "</tbody></table>"

ERROR:
The syntax for 'Updates' is incorrect. (DAX(VAR UpdateRows =ADDCOLUMNS (Updates,"LinkText",IF ( ISBLANK ( Updates[updateLink] ), "", "View video guide" ))VAR TableRows =CONCATENATEX (UpdateRows,"<tr><td>" & FORMAT(Updates[updateID], "0") & "</td><td>" & FORMAT(Updates[updateDate], "yyyy-mm-dd") & "</td><td>" & Updates[updateDescription] & "</td><td>" & IF(ISBLANK(Updates[updateLink]), "", "<a href='" & Updates[updateLink] & "' target='_blank'>" & Updates[LinkText] & "</a>") & "</td></tr>","<br>")RETURN"<table border='1'><thead><tr><th>Update ID</th><th>Date</th><th>Description</th><th>Link</th></tr></thead><tbody>" & TableRows & "</tbody></table>")).

In this second error, [LinkText] in the CONCATENATEX formula is specifically highlighted. When I hover on it, I see a message that says "Cannot find name '[LinkText]'"

Thanks in advance to whoever can provide me with some guidance.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @iammrishoabeid 

 

From the second measure, LinkText is a column in the virtual table you created. The virtual table is named UpdateRows. However, you used the Updates table in subsequent formulas. Please change the table name to UpdateRows and try again.

vxuxinyimsft_0-1722325361147.png

 

vxuxinyimsft_1-1722325492917.png

 

Best Regards,
Yulia Xu

 

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

1 REPLY 1
Anonymous
Not applicable

Hi @iammrishoabeid 

 

From the second measure, LinkText is a column in the virtual table you created. The virtual table is named UpdateRows. However, you used the Updates table in subsequent formulas. Please change the table name to UpdateRows and try again.

vxuxinyimsft_0-1722325361147.png

 

vxuxinyimsft_1-1722325492917.png

 

Best Regards,
Yulia Xu

 

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

Helpful resources

Announcements
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 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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