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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
seanstead
Regular Visitor

Live news feed - rss or similar

Hi,

 

I need to include a live news feed from an online source (say latest oil industry news) - this could be a simple RSS.

 

How can I connect and display this in Power BI?

 

Thanks

1 ACCEPTED SOLUTION
mahoneypat
Employee
Employee

Is this what you mean?  This query connects to an Oil & Gas General Interest feed, using Web.Contents (wrapped in Xml.Tables).

 

let
Source = Xml.Tables(Web.Contents("https://feeds.feedburner.com/OilGasJournal-GeneralInterest")),
#"Changed Type" = Table.TransformColumnTypes(Source,{{"Attribute:version", Int64.Type}}),
#"Expanded channel" = Table.ExpandTableColumn(#"Changed Type", "channel", {"title", "link", "description", "http://www.w3.org/2005/Atom", "http://rssnamespace.org/feedburner/ext/1.0", "item"}, {"title", "link", "description", "http://www.w3.org/2005/Atom", "http://rssnamespace.org/feedburner/ext/1.0", "item"}),
#"Expanded item" = Table.ExpandTableColumn(#"Expanded channel", "item", {"title", "link", "description", "pubDate", "guid"}, {"title.1", "link.1", "description.1", "pubDate", "guid"})
in
#"Expanded item"

 

If this works for you, please mark this as the solution.  

Regards,

Pat

 





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


View solution in original post

2 REPLIES 2
mahoneypat
Employee
Employee

Is this what you mean?  This query connects to an Oil & Gas General Interest feed, using Web.Contents (wrapped in Xml.Tables).

 

let
Source = Xml.Tables(Web.Contents("https://feeds.feedburner.com/OilGasJournal-GeneralInterest")),
#"Changed Type" = Table.TransformColumnTypes(Source,{{"Attribute:version", Int64.Type}}),
#"Expanded channel" = Table.ExpandTableColumn(#"Changed Type", "channel", {"title", "link", "description", "http://www.w3.org/2005/Atom", "http://rssnamespace.org/feedburner/ext/1.0", "item"}, {"title", "link", "description", "http://www.w3.org/2005/Atom", "http://rssnamespace.org/feedburner/ext/1.0", "item"}),
#"Expanded item" = Table.ExpandTableColumn(#"Expanded channel", "item", {"title", "link", "description", "pubDate", "guid"}, {"title.1", "link.1", "description.1", "pubDate", "guid"})
in
#"Expanded item"

 

If this works for you, please mark this as the solution.  

Regards,

Pat

 





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


dax
Community Support
Community Support

Hi @seanstead , 

I am not clear  about your requirement, did you want to connect to web? If so, you could refer to desktop-connect-to-web  and desktop-connect-to-web-by-example  for details. If not, could you please inform me more detailed information(such as your expected output and your sample data (by OneDrive for Business))? Then I will help you more correctly.

Please do mask sensitive data before uploading.

Thanks for your understanding and support.
Best Regards,
Zoe Zhi

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

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors
Top Kudoed Authors