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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
PBI_AMS
Helper I
Helper I

Creating a list of short blurbs with titles in PowerBI report

I know I can probably do this with Paginated Reports, but I'd really like to be able to do it within a Power BI report. Basically, I'm parsing several RSS feeds to produce short blurbs with titles and URLS for things that have been published across several websites.  These will update daily, but, on a monthly basis, when I issue my report to stakeholders, I want to include a nicely formatted list of articles with blurbs and where the titles are links to the URLS.  I can obviously create a table visual, but I'd REALLY like it to have a nicer format than that. Concatenating the Title and Blurb Text with some HTML is possible, but then I don't think I can create a hyperlink.  Anyone have suggestions or examples they could point to?  

1 ACCEPTED SOLUTION
OwenAuger
Super User
Super User

Hi @PBI_AMS 

A visual like HTML Content (lite) might be a nice solution.

 

See an example in the attached PBIX.

 

I have a table Articles:

OwenAuger_0-1712449987029.png

and a measure Articles Table HTML:

Articles Table HTML = 
VAR TableStyle =
"<head>
<style>
table {
  border-collapse: collapse;
  width: 100%;
}

th, td {
  padding: 8px;
  text-align: left;
  border-bottom: 1px solid #DDD;
}

tr:hover {background-color: #D6EEEE;}
</style>
</head>"
VAR TableHeaders =
    "<tr><th>Title</th><th>Blurb</th><th>Author</th><th>Date</th></tr>"

VAR TableRows =
    CONCATENATEX (
        Articles,
        "<tr>"
        & "<td><a href='" & Articles[URL] & "' style = 'color:blue'>" & Articles[Title] & "</a></td>"
        & "<td>" & Articles[Blurb] & "</td>"
        & "<td>" & Articles[Author] & "</td>"
        & "<td>" & FORMAT ( Articles[Date], "mmm d, yyyy" ) & "</td>",
        "",
        Articles[Date], DESC
    )
    
VAR Result =
    TableStyle
    & "<body><table style='width:100%'>"
    & TableHeaders
    & TableRows
    & "</table></body>"

RETURN
    Result

 

Then place this measure in the Values field well of the HTML Content (lite) visual, ensuring that Format > Content Formatting > Allow opening URLs is set to On.

OwenAuger_1-1712450121240.png

Do you think this method is workable for you?

 

Regards


Owen Auger
Did I answer your question? Mark my post as a solution!
Blog
Twitter
LinkedIn

View solution in original post

3 REPLIES 3
v-shex-msft
Community Support
Community Support

Hi @PBI_AMS ,

Did the above suggestions help with your scenario? if that is the case, you can consider Kudo or Accept the helpful suggestions to help others who faced similar requirements.

If these also don't help, please share more detailed information and description to help us clarify your scenario to test.

How to Get Your Question Answered Quickly 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
lbendlin
Super User
Super User

Have a look at the HTML5 and HTML5 lite visuals. They can render your RSS blurbs, even with clickable URLs.

 

Like this 🙂

 

lbendlin_1-1712451418796.png

 

 

OwenAuger
Super User
Super User

Hi @PBI_AMS 

A visual like HTML Content (lite) might be a nice solution.

 

See an example in the attached PBIX.

 

I have a table Articles:

OwenAuger_0-1712449987029.png

and a measure Articles Table HTML:

Articles Table HTML = 
VAR TableStyle =
"<head>
<style>
table {
  border-collapse: collapse;
  width: 100%;
}

th, td {
  padding: 8px;
  text-align: left;
  border-bottom: 1px solid #DDD;
}

tr:hover {background-color: #D6EEEE;}
</style>
</head>"
VAR TableHeaders =
    "<tr><th>Title</th><th>Blurb</th><th>Author</th><th>Date</th></tr>"

VAR TableRows =
    CONCATENATEX (
        Articles,
        "<tr>"
        & "<td><a href='" & Articles[URL] & "' style = 'color:blue'>" & Articles[Title] & "</a></td>"
        & "<td>" & Articles[Blurb] & "</td>"
        & "<td>" & Articles[Author] & "</td>"
        & "<td>" & FORMAT ( Articles[Date], "mmm d, yyyy" ) & "</td>",
        "",
        Articles[Date], DESC
    )
    
VAR Result =
    TableStyle
    & "<body><table style='width:100%'>"
    & TableHeaders
    & TableRows
    & "</table></body>"

RETURN
    Result

 

Then place this measure in the Values field well of the HTML Content (lite) visual, ensuring that Format > Content Formatting > Allow opening URLs is set to On.

OwenAuger_1-1712450121240.png

Do you think this method is workable for you?

 

Regards


Owen Auger
Did I answer your question? Mark my post as a solution!
Blog
Twitter
LinkedIn

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

Check out the November 2024 Power BI update to learn about new features.