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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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

Top Solution Authors
Top Kudoed Authors