Latest Enterprise DNA Initiatives

Power BI Embedded RLS

I am looking to embed Power BI into a website and filter the report based on a parameter passed from the application/website. When a user logs into the website a session key is inserted into an on premise MS SQL table along with a list of customer locations the user has access to (same session key for many customer locations/id’s. Currently, the report that we are wanting to embed in the PBI Service has all of it’s data sources configured for Import data connectivity mode and gets refreshed daily (millions of rows). The data model does not have the users session key in it since this is dynamically created on the fly when a user logs into the application/website. My question is, assuming the application passes the session key as a parameter to the report, is it possible to use direct query to query the on premise data source (there is an existing gateway) to determine what customer location id’s the user is authorized to view based on the session key that was passed to the report and then filter the report to just those customer locations accordingly? The query that would be executed against the on premise data source can return 1-10K+ customer locations in less than 1 sec.

Thanks in advance for any advice!

Hi @ schuhtl, we aim to consistently improve the topics being posted on the forum to help you in getting a strong solution faster. While waiting for a response, here are some tips so you can get the most out of the forum and other Enterprise DNA resources.

  • Use the forum search to discover if your query has been asked before by another member.
  • When posting a topic with formula make sure that it is correctly formatted to preformatted text </>.
  • Use the proper category that best describes your topic
  • Provide as much context to a question as possible.
  • Include the images of the entire scenario you are dealing with, screenshot of the data model, details of how you want to visualize a result, and any other supporting links and details.

I also suggest that you check the forum guideline How To Use The Enterprise DNA Support Forum. Not adhering to it may sometimes cause delay in getting an answer.

Please also check the How To Mask Sensitive Data thread for some tips on how to mask your pbix file.

Hi schuhtl, we’ve noticed that no response has been received from you since the 18th of January. We are waiting for the masked demo pbix file, images of the entire scenario you are dealing with, and any other supporting links and details.

This will help other users and experts to answer your inquiry better. In case there won’t be any activity on it in the next few days, we’ll be tagging this post as Solved.