cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Regular Visitor

Rendering a measure as HTML

I have created a PBI measure that dynamically generates a 'mailto:' link based on the selections and results on a given report page. However, I can't find a way to render the measure as html on a report page. My goal is to have a link that the user can click in the Power BI service that auto-populates an email.

 

Has anyone found a way of doing this? It doesn't look like the HTML Viewer visual in the AppSource supports measures. I can drop the measure on a card or any other single-valued visual and SEE the raw html <a> that I've generated. I just need it rendered.

 

Any suggestions appreciated.

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Microsoft
Microsoft

Re: Rendering a measure as HTML

Hi @StevenB,

 

You can do it simply like this. No HTML tags are needed. Reference: power-bi-hyperlinks-in-tables.

Measure = "mailto:" & SELECTEDVALUE(Table1[Column1])

Rendering-a-measure-as-HTML

 

Best Regards,
Dale

Community Support Team _ Dale
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

3 REPLIES 3
Highlighted
Microsoft
Microsoft

Re: Rendering a measure as HTML

Hi @StevenB,

 

You can do it simply like this. No HTML tags are needed. Reference: power-bi-hyperlinks-in-tables.

Measure = "mailto:" & SELECTEDVALUE(Table1[Column1])

Rendering-a-measure-as-HTML

 

Best Regards,
Dale

Community Support Team _ Dale
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

Highlighted
Regular Visitor

Re: Rendering a measure as HTML

Thanks for this. I understand how to make a hyperlink work in a table, and have used it successfully elsewhere.

 

What I am trying to solve is when you have a single PowerBI Measure that you want to display as a hyperlink. Given the lack of documentation, I'm guessing no-one has tried to use PBI in this way.

Highlighted
Regular Visitor

Re: Rendering a measure as HTML

Ok...it looks like tables / matrices are the only visuals that support hyperlinks. I've updated the measure to function in a table context, and it's now working. It'd be nice if Card / MultiRow Card also supported hyperlinks. Sometimes you just want a single hyperlink (vs. one per row).

Helpful resources

Announcements
Community Blog

Community Blog

Visit our Community Blog for articles, guides, and information created by fellow community members.

Using the Community

Using the Community

Need help with the Power BI Community? Our 'Using the Community' support articles are a great place to start.

Community Summit North America

Community Summit North America

Innovate, Collaborate, Grow. The top training and networking event across the globe for Microsoft Business Applications

Power Platform 2020 release wave 2 plan

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors