Quantcast
Channel: Developer topics
Viewing all articles
Browse latest Browse all 17916

Dynamically Update Query Based on User ID - Power BI Embedded

$
0
0

Hi Everyone,

 

I recently embedd a Power BI report into a web app. Data are gathered from a SQL Server database.

 

When a user logs into the web app, I'd like for the queries to update based on that user's ID. So, something like the statement below where the "userid" value dynamically changes.

 

select * from table where userid = 1234

 

My initial thought was to use row level security, but since we have hundreds of users, setting up the individual role for each user seems like an inefficient process. I don't want to add the userid as a filter since a user could clear the filter and then see other user's information.

 

Passing the userid as part of a URL parameter would be ideal but that doesn't seem like it is possible according the link below.

 

https://docs.microsoft.com/en-us/power-bi/service-url-filters

 

Has anyone come across this requirement before? Any thoughts or suggested solutions would be greatly appreciated.

 

Thanks!

 

Michael


Viewing all articles
Browse latest Browse all 17916

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>