Forum Discussion
RLS with Direct Query
Hello All,
We are migrating from import mode to direct query mode and would like to implement the same RLS we have in import mode. Unfortunately, our RLS uses LOOKUPVALUE function which is not supported in direct query. Here is our current RLS expression.
9 Replies
- lbendlin
Super User
What made you choose LOOKUPVALUE? Why not TREATAS or the data model?
- KanthFrequent Visitor
I have to filter based on two different columns and need to have two relationships instead of using USERELATIONSHIP and all I opted LOOKUPVALUE. I am not faimilar with TREATAS function. Does it work in direct query? If so, could you please let me know how can I achieve my requirement
- lbendlin
Super User
- AnonymousNot applicable
Hi Kanth ,
Your expression looks great, does your user have permission above view causing the RLS to not work?
Hope it helps!
Best regards,
Community Support Team_ Scott ChangIf this post helps then please consider Accept it as the solution to help the other members find it more quickly.
- KanthFrequent Visitor
This expression works fine with import mode but due to some limitations LOOKUPVALUE function wont work in direct query mode.