Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

July 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more

Reply
Chanise89
Helper I
Helper I

Security using Query Parameters Help

Good Morning Eveyone, 

I hope someone could provide me with some help on this... 

 

I currently have a report built out using Direct Query w/ Parameters. That was the requirement so we built it out this way. 

Now I know that RLS is not supported when using Query Parameters. 

However, we have tried to embed the the security piece in the actual query as a parameter to filter the data based on the users ID (see screenshot). 

 

My question is how would this work exactly? 

Since, I have it embedded in the query, would this work like any other parameter? Meaning, do I have a table with all of the user ids and bind the parameter to the table? If so, how would the data filter when a user logs in? 

 

Any help or insights will be greatly apprecated! 

 

 

Chanise89_0-1688999938244.png

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Chanise89 ,

 

What is your data source?

If it's a SQL Server database, you might consider using the SQL Server Profiler to capture a trace that contains the queries generated during the interaction so that you can visually observe which queries are being sent to the data source.

 

Dynamic M query parameters.

vcgaomsft_2-1689131378025.png

RLS.

vcgaomsft_3-1689131479623.png

 

vcgaomsft_6-1689131715738.png

 

vcgaomsft_1-1689131299100.png

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @Chanise89 ,

 

What is your data source?

If it's a SQL Server database, you might consider using the SQL Server Profiler to capture a trace that contains the queries generated during the interaction so that you can visually observe which queries are being sent to the data source.

 

Dynamic M query parameters.

vcgaomsft_2-1689131378025.png

RLS.

vcgaomsft_3-1689131479623.png

 

vcgaomsft_6-1689131715738.png

 

vcgaomsft_1-1689131299100.png

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

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.

Fabric Community Sticker Design Challenge Barcelona Carousel

Fabric Community Sticker Challenge - Barcelona 2026

If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!

July Power BI Update Carousel

Power BI Monthly Update - July 2026

Check out the July 2026 Power BI update to learn about new features.

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.