Forum Discussion
Kanth
2 years agoFrequent Visitor
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 suppo...
Kanth
2 years agoFrequent Visitor
Looks like TREATAS function is also not allowed in direct query mode.
aj1973
2 years agoCommunity Champion
Hi Kanth
Try
Lookup Measure =
CALCULATE(
MAX('Table'[ResultColumn]),
FILTER(
ALL('Table'),
'Table'[SearchColumn] = SELECTEDVALUE('CurrentTable'[SearchColumn])
)
)
- Kanth2 years agoFrequent Visitor
This will only work when I have only one value for a user. But, I have more than one value for a single user.