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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
cmathistx
New Member

Query Folding Tips for Salesforce.com objects

Does anyone have any query folding tips when querying Salesforce.com objects?  For examples, when using date filtering (i.e. last 90 days etc) my queries take much longer to run than when I just remove any date filtering at all.  Seems odd that that would be the case.

 

I've got a workbook that runs eight queries against three Salesforce objects and pulls data on a specific sales rep.  In total, I'm only pulling about 5,000 records.  When refreshing the data, it takes about 2-4 minutes to load 5,000 records.  That seems awfully slow to me with such little data being pulled.

 

Any information or help you could provide would be very much appreciated.

 

Chris

1 REPLY 1
cmathistx
New Member

It appears that removing null records from Salesforce fields used for date filtering improves query performance significantly.

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.