Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreGet 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
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?
Solved! Go to Solution.
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:
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.
Do you think this method is workable for you?
Regards
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
Have a look at the HTML5 and HTML5 lite visuals. They can render your RSS blurbs, even with clickable URLs.
Like this 🙂
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:
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.
Do you think this method is workable for you?
Regards
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
User | Count |
---|---|
93 | |
85 | |
83 | |
75 | |
49 |
User | Count |
---|---|
142 | |
141 | |
110 | |
69 | |
55 |