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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
LegendaryTokash
Frequent Visitor

PowerBI DirectQuery and Salesforce

Hello all,

 

So I have a collection of data I'd like to configure into a report with directquery mode, and publish to the web service whereas all of the datasources will refresh when the web interfacve refresh button is clicked.   Unfortunately, it doesn't appear as though I can do it natively.

 

Source 1 - Azure SQL DB with some data, directquery is natively supported

Source 2 - Salesforce report, when I try to add this source it balks that DQ is not supported and all sources in the report now need to change to import. 

 

Import isn't the end of the world, but it sure would be nice to avoid that.   I'm curious if this a challenge others have faced?   I haven't dug into the on-premise data gateway yet, but was wondering if that would serve my needs better or would hit the same limitation, requiring a scheduled (or manual) refresh.

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

@LegendaryTokash,

In DirectQuery mode, all tables should come from same data source and a single database, please check the limitations here.

In your scenario, as you combine multiple data sources in a single PBIX file, you can only use import mode. Besides, as you are connecting to online data sources, gateway is not required to refresh your dataset in Power BI Service. Just enter credentials for your data sources under "Data Source Credentials" in Power BI Service, and you will be able to set schedule refresh for your dataset.

Regards,
Lydia

Community Support Team _ Lydia Zhang
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

4 REPLIES 4
ReportMaster
Post Patron
Post Patron

Hi @LegendaryTokash were you able to find a solution? As a workaround, maybe you can try to test your connection with a 3rd party connector, which exports SF data directly from SF objects API and therefore the data will be exported in direct query mode. I've tried windsor.ai, supermetrics and funnel.io. I stayed with Windsor because it is much cheaper so just to let you know other options. In case you wonder, to make the connection first search for the Salesforce connector in the data sources list:

 

SALESFORCE-1.png

 

After that, just grant access to your Salesforce account using your credentials, then on preview and destination page you will see a preview of your Salesforce fields:

 

SALESFORCE-2.png

 

There just select the fields you need. It is also compatible with custom fields and custom objects, so you'll be able to export them through windsor.  Finally, just select PBI as your data destination and finally just copy and paste the url on PBI --> Get Data --> Web --> Paste the url. 

 

SELECT_DESTINATION_NEW.png

v-yuezhe-msft
Microsoft Employee
Microsoft Employee

@LegendaryTokash,

In DirectQuery mode, all tables should come from same data source and a single database, please check the limitations here.

In your scenario, as you combine multiple data sources in a single PBIX file, you can only use import mode. Besides, as you are connecting to online data sources, gateway is not required to refresh your dataset in Power BI Service. Just enter credentials for your data sources under "Data Source Credentials" in Power BI Service, and you will be able to set schedule refresh for your dataset.

Regards,
Lydia

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

Hi There,

 

Can you please help me, I want to connect My Power Bi file to salesforce Objects, But when i connected it the PBI file size increases to ~300 MBs resulting in slow performance and very slow runrate.

 

Is there anyway to use DirectQuery instead of Importing Data? Please suugest me if you have any solution.

 

Regards,
Shivam

Just checking in to see how you resolved your Salesforce connection - have you tried using Power Query Editor to limit the number of fields you bring into PBI?  You can also remove rows based on a filter.  Together, they speed up refreshes

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.

Top Kudoed Authors