Forum Discussion
connect to the same database with 2 different users
- 10 years ago
HI,
I have encounter the same probleme with Web connector (API) in PowerBi.
Unfortunetly you can't connect the same data source with different credentials in the same pbix file i think.
But an alternative solution you can test (or the DBA administrator)
- In the SQL database you can create a few views who combine data of different company
- This view as a particular shema (different of other tables)
- You can attribute specific acces (read only) in this view using the specific shema
And if a day a new company is create you've just modify you're views ;)
Hope it's help you.
Hi.
As much as I know we have diffrent table to each company (company name.table name)(almost the exact tables to all of the companies)
In our operational system every user see only his company (tables) but I need to make comparison to all of the companies so need to connect to the same database with different user 3 time in the same report.
Is it possible at all using the power bi?
we succeed to implement this method in powerpivot but till now no success in power bi.
Many thanks (again)!
If you have access to read all the companies (with seperate users), why not just create one read-only user on the SQL database that has access to read all company tables?
I haven't tested out the scenerio of trying to connect to the same source multiple times with different credentials yet, so I can't speak to that.