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
Anonymous
Not applicable

Not able to load all the rows from web to Query Editor

Hi,

 

I am trying to load historical stock data from Yahoo to power BI using web URL https://au.finance.yahoo.com/quote/%5EAXJO/history?period1=722476800&period2=1585353600&interval=1d&...

 

When I load the data to query editor, it loads only first 100 rows even though it has more than 5000 records. 

 

1.PNG

 

Can anyone help me with the hack to load all the records from that URL?

 

My final goal is to get dynamic stock data into Power BI. 

 

Thank you

7 REPLIES 7
Greg_Deckler
Super User
Super User

I think @ImkeF has tricks for getting data off of web pages via query string. Also @edhans might be able to help.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

I'm kinda stumped. As you scroll that page, the browser is making additional calls to the site, which is returning more data and returning more advertising. It seems to be limiting it intentionally.

 

One thing you could do is download the CSV file and use that as one table, then download these 100 records as the most recent, then combine into one table and eliminate those in the CSV via an anti-merge, but you'd have to redownload the CSV file every 100 business days or so to keep it going. Not at all ideal....



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting
Anonymous
Not applicable

Yes, I could do that. But as I add more stocks, I need to download CSV file for each stock every time I want to update. 

 

I want to make it completely automatic. 

Yes, it isn't a good solution long term. I'll be curious to see if some responds with an answer that can get PQ to keep pulling all 7K+ records in.



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting
Anonymous
Not applicable

Even I tried to import the data in Google Sheet using ImportHTML function. 

 

Even the Spreadsheet is pulling 100 rows only. The records stop at when the first page load takes on the yahoo page. 

 

2.PNG

Hi @Anonymous ,

 

The data on this website is dynamically loaded through JS scripts, there is no way to import all the data through the Web Connector.
If possible, I suggest you use other data source.

 

Best regards,
Lionel Chen

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.