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

Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more

Reply
common763
Helper III
Helper III

Salesforce to Power BI Data Inquiry-Dont want all rows from table.

I have a report that we are trying to develop.  Created a connection from Salesforce to Power BI using Azure Data Lake Storage Gen 2.  I normally dont deal with data this large as there are about 2 million rows on the Salesforce end.  When I do my transformation I choose to filter by last 365 days to narrow it down in Power Query.  Is this the right thing to do?  I think it still preloaded all 2 million of those rows from Salesforce and then filtered it.  This is what I need...

 

The ability to query the Salesforce data before loading all those unneeded entries from the Salesforce data lake.  Can someone explain how to do this in Power Query?  

1 ACCEPTED SOLUTION
AmiraBedh
Super User
Super User

Instead of loading all the data into Power BI, you can use Salesforce Object Query Language (SOQL) to filter the data at the source. 

You can also use params in your query :

SELECT * FROM YourObject WHERE CreatedDate >= @StartDate AND CreatedDate <= @EndDate

 

 

If you are using ADLS Gen 2, ensure that the data ingestion process to ADLS filters data before storing it.

You can use ADF or any other ETL tools to filter the data before it lands in ADLS.


Proud to be a Power BI Super User !

Microsoft Community : https://docs.microsoft.com/en-us/users/AmiraBedhiafi
Linkedin : https://www.linkedin.com/in/amira-bedhiafi/
StackOverflow : https://stackoverflow.com/users/9517769/amira-bedhiafi
C-Sharp Corner : https://www.c-sharpcorner.com/members/amira-bedhiafi
Power BI Community :https://community.powerbi.com/t5/user/viewprofilepage/user-id/332696

View solution in original post

1 REPLY 1
AmiraBedh
Super User
Super User

Instead of loading all the data into Power BI, you can use Salesforce Object Query Language (SOQL) to filter the data at the source. 

You can also use params in your query :

SELECT * FROM YourObject WHERE CreatedDate >= @StartDate AND CreatedDate <= @EndDate

 

 

If you are using ADLS Gen 2, ensure that the data ingestion process to ADLS filters data before storing it.

You can use ADF or any other ETL tools to filter the data before it lands in ADLS.


Proud to be a Power BI Super User !

Microsoft Community : https://docs.microsoft.com/en-us/users/AmiraBedhiafi
Linkedin : https://www.linkedin.com/in/amira-bedhiafi/
StackOverflow : https://stackoverflow.com/users/9517769/amira-bedhiafi
C-Sharp Corner : https://www.c-sharpcorner.com/members/amira-bedhiafi
Power BI Community :https://community.powerbi.com/t5/user/viewprofilepage/user-id/332696

Helpful resources

Announcements
March PBI video - carousel

Power BI Monthly Update - March 2025

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

March2025 Carousel

Fabric Community Update - March 2025

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