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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Don-Bot
Helper V
Helper V

Send RLS Server Side to limit data coming back

Is there a way to send the RLS FIlter to the server to limit the data that is sent back?

I am currently using DirectQuery with Databricks.  However, the RLS seems to be filtering in Power BI and not on the server.  Which is extremely inefficient.

 

Is there a way to add the RLS filter to what is sent to the server so only the data that should be sent to the client is sent?

2 ACCEPTED SOLUTIONS
lbendlin
Super User
Super User

Dynamic M query parameters in Power BI Desktop - Power BI | Microsoft Learn

 

See if you can use that to send the USERPRINCIPALNAME back to Databricks.

View solution in original post

It spends all its time on the folded query.  In DAX Studio make sure to clear the cache before each run.

View solution in original post

5 REPLIES 5
lbendlin
Super User
Super User

Dynamic M query parameters in Power BI Desktop - Power BI | Microsoft Learn

 

See if you can use that to send the USERPRINCIPALNAME back to Databricks.

Thanks I'm looking into that now.  

I have another question (let me know if I need to post this as a separate discussion).

Do you have any idea why the execution time of the query power bi is sending back to databricks takes 1.5 seconds on databricks to execute but 17 seconds in power bi to finish the entire visual?

Use the Performance Analyzer in Power BI to investigate the timing for each visual. May just be a case of too many visuals on the page.

I reduced it to 1 visual with my filters...

 

In Power BI Desktop it takes 62 seconds to render...

 

In Dax Studio 2 seconds

 

DonBot_0-1715383427993.png

I copy the dax from the above and run it in Dax Studio connected to the same data model

 

DonBot_1-1715383475911.png

 

It spends all its time on the folded query.  In DAX Studio make sure to clear the cache before each run.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.