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
Anonymous
Not applicable

Different User Same Datasource in a pbix, is Dataflow a solution?

I need to connect to Salesforce with 2 different usernames in the same pbix. As we cant do that in Desktop since the credentails gets overwritten. 

In order to overcome that - 

1) can we publish/create the dataset in the service and then connect to it thru desktop 

2) create a dataflow in the service and then connect to it thru desktop

 

What is advisable in the scenario. 

 

thanks in advance.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Thank you all for the help! 

@Anonymous - the link is helpful but it dint help much in the scenario. My data source is saleforce, only the URL can be passed as the parameter and not the credentials. 

 

What worked for me was - 

1) Created a dataflow in the service with different username in the connection.

2) Connected to dataflow and saleforce in the desktop(both with different credentails) and published in the workspace. 

3) In the service (as I learnt) - 

Each user can only have one set of credentials per data source, across all of the data sets they own, regardless of the workspaces where the datasets reside. 

So I had to take help of a teammate to publish one data source and other was published by self so as to enable refresh to work. 

 

Now data is getting refreshed from the same source for differnt users.

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi @Anonymous ,

 

You can connect the dataset on Service through Desktop but i doubt if it will solve your problem.

Please take a look at below artical about how to switch datasource through parameters.

https://www.red-gate.com/simple-talk/sql/bi/power-bi-introduction-working-with-parameters-in-power-bi-desktop-part-4/

 

Best Regards,

Jay

Anonymous
Not applicable

Thank you all for the help! 

@Anonymous - the link is helpful but it dint help much in the scenario. My data source is saleforce, only the URL can be passed as the parameter and not the credentials. 

 

What worked for me was - 

1) Created a dataflow in the service with different username in the connection.

2) Connected to dataflow and saleforce in the desktop(both with different credentails) and published in the workspace. 

3) In the service (as I learnt) - 

Each user can only have one set of credentials per data source, across all of the data sets they own, regardless of the workspaces where the datasets reside. 

So I had to take help of a teammate to publish one data source and other was published by self so as to enable refresh to work. 

 

Now data is getting refreshed from the same source for differnt users.

tctrout
Responsive Resident
Responsive Resident

I am not familiar with Salesforce as a datasource, however I encountered a similiar issue with another source that may be helpful.

Our workaround was to create a service account that had access to all the information and then published the solution with this service account.  This way the service account's is used as the user.

lbendlin
Super User
Super User

Neither one is an option. Maybe if you create two separate dataflows then it might work.

 

You'll have to wait for the composite data model feature that was promised for later this year.

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.