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
GarlonYau
Helper I
Helper I

Limit number of records imported from Sharepoint

Hi There,

 

I'm importing a dataset from a corporate Sharepoint list and it has over 900,000 records as the data goes back to 2002. This has made the refresh speed very very slow, sometimes taking up to 45 mins as I have multiple tables this size.

 

Only data that is 2018 till present is relevant to me.

Is there any way to limit the number of records that comes in, based on a date column to speed up my refresh times?

 

Here's what I have for the advanced editor.

 

let

    Source = SharePoint.Tables("Sharepoint URL removed for confidentiality reasons", [ApiVersion = 15]),

    #"918d9491-74f9-466c-a0f6-facb1ba85598" = Source{[Id="918d9491-74f9-466c-a0f6-facb1ba85598"]}[Items],

    #"Renamed Columns" = Table.RenameColumns(#"918d9491-74f9-466c-a0f6-facb1ba85598",{{"ID", "ID.1"}}),

in

    #"Renamed Columns"

 

Thanks for your help.

 

 

 

3 REPLIES 3
v-eachen-msft
Community Support
Community Support

Hi @GarlonYau ,

 

Power BI SharePoint connector doesn't contain any filter features currently. In my opinion, I'd like to suggest you to use OData connector(Sharepoint REST API). You could add conditions to query string to filter records before importing data.

 

Reference:

Working with lists and list items with REST

URL Conventions (OData Version 3.0)

Community Support Team _ Eads
If this post helps, then please consider Accept it as the solution to help the other members find it.
Tahreem24
Super User
Super User

@GarlonYau ,

 

Do you have Date or Year column? If yes so filterout the all the date except from 2018 to till now in Power Query Editor.

 

Don't forget to hit Thumbs up and accept this as a solution if you find it helpful! 

 

 

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Please take a quick glance at newly created dashboards : Restaurant Management Dashboard , HR Analytics Report , Hotel Management Report, Sales Analysis Report , Fortune 500 Companies Analysis , Revenue Tracking Dashboard

I do have a date column. However I want to make sure that it gets filtered out before it even makes it into my imported dataset.

 

Example A.

Step 1: Imports 900,000 records

Step 2: Filter the records to only show 2018+

 

Example B

Step 1: Import 2000 records (only 2018+)

 

In example A, PowerBI still has to import those 900,000 records first before I can filter them. which makes refreshing the data really slow.

 

 

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.