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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
geotech
Frequent Visitor

Override Data Source Variable

Hello,

 

I'm querying data from a web api whose default amount of rows to return is set to 20. The default code to pull the data is:

let
    Source = Json.Document(Web.Contents(Web API URL)
in
    Source

How would I go about modifying this code to override the default value from the data source to return all of the rows? 

 

Thanks in advance for your assistance!

1 REPLY 1
v-caliao-msft
Microsoft Employee
Microsoft Employee

@geotech,

 

Which data source did you connect? Generally, we will get all the data when using a API to get data in Power BI. In your scenario, please provide us more information, so that we can make further analysis.

 

Here is a blog which connect to twitter using API for you reference.
https://chris.koester.io/index.php/2015/07/16/get-data-from-twitter-api-with-power-query/

 

Regards,

Charlie Liao

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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