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
dgaiduchenko
Regular Visitor

Custom connector data preview for big data sets

Hello

 

I'm developing custom data connector for Power bi. Dataset that connector operates with is quite and takes several minutes to load.

Currently when i execute my conector it fetches dataset twice : first time when it shows "Data preview" window and second time when i actually press Load button.

Is there a way to determine in connector if data is loaded for data preview or for actual data load ? In that case i could limit the dataset for data preview to a several rows.

Or maybe there is some other way exists to avoid loading whole dataset twice ?

 

Thanks

1 ACCEPTED SOLUTION
v-jiascu-msft
Microsoft Employee
Microsoft Employee

Hi @dgaiduchenko,

 

That's two parts of Power BI. In the Query Editor, it's only a preview of data, which isn't the full data. We can shape data here. In the data pane, it's a full data set if we import the data. So we don't load the whole dataset twice. Since it's only a connector, I'm afraid we can't change the behaviour of Query Editor. By the way, we can filter the data source. But that will be applied to the whole dataset. Please refer to DataConnectors#what-you-can-do-with-a-data-connector.

>>>Exposing a limited/filtered view over your data source to improve usability

 

 

Best Regards,

Dale

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

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Probably too late to help the author, but for anyone looking for solution - I was struggling with the same problem, and the best way to solve it seems to be Query Folding. It allows you to pass limit parameter to the api request when powerbi query contains Table.FirstN() function (which it does for previews). 

I find this tutorial very useful: https://docs.microsoft.com/en-us/power-query/samples/trippin/10-tableview1/readme
Some docs: https://docs.microsoft.com/en-us/power-query/handlingqueryfolding

v-jiascu-msft
Microsoft Employee
Microsoft Employee

Hi @dgaiduchenko,

 


Can you mark the proper answer as a solution please?

 

Best Regards,

Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
v-jiascu-msft
Microsoft Employee
Microsoft Employee

Hi @dgaiduchenko,

 

That's two parts of Power BI. In the Query Editor, it's only a preview of data, which isn't the full data. We can shape data here. In the data pane, it's a full data set if we import the data. So we don't load the whole dataset twice. Since it's only a connector, I'm afraid we can't change the behaviour of Query Editor. By the way, we can filter the data source. But that will be applied to the whole dataset. Please refer to DataConnectors#what-you-can-do-with-a-data-connector.

>>>Exposing a limited/filtered view over your data source to improve usability

 

 

Best Regards,

Dale

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

Helpful resources

Announcements
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 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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

Top Solution Authors