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
cheesepudding
Regular Visitor

Displaying different data sets on the same report

Hello,

 

I have a report which is constant among clients but would like to display data that is stored on different databases depending on which client is logged in.

 

I have the report up on power bi embedded. Is there anyway to change the embed token to change which dataset is being displayed?

 

Thanks,

Cheese Pudding

3 REPLIES 3
Eric_Zhang
Microsoft Employee
Microsoft Employee


@cheesepudding wrote:

Hello,

 

I have a report which is constant among clients but would like to display data that is stored on different databases depending on which client is logged in.

 

I have the report up on power bi embedded. Is there anyway to change the embed token to change which dataset is being displayed?

 

Thanks,

Cheese Pudding


@cheesepudding

you can do either

  • Create and publish indivisual reports using different databases and embed reports according to the visiting customers.
  • Gather all data together, create and publish one report, apply Row level security according to the visiting customers.

@Eric_Zhang

 

So there is no way to have created only one embedded report and change the back end dataset?


@cheesepudding wrote:

@Eric_Zhang

 

So there is no way to have created only one embedded report and change the back end dataset?


@cheesepudding

Technically, there is one way to create only one embedded report. You can update connection strings for datasets in DirectQuery mode everytime one user accesses the report accordingly, however, per my test, there're some minutes delay before the new connection work. For example, when userA accesses the report, in your code, before the report rendering, you update the connectionstring, however the userA may still see the data that was from another user.

 

Related REST APIs FYI.

Set All Connections-to update connection strings.

Set Credentials - to update credentials, the gatewayid and datasourceid are from Get BoundGatewayDatasources.

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.