Forum Discussion
jdbusselman
8 years agoFrequent Visitor
RLS vs Filter for current user
Environment: SQL 2016, using Tabular models, Power BI, live connection with Tabular Models I see a lot of people asking about filtering to "Current User", this is a simple and easy thing to do w...
- 8 years ago
As far as I know, there is no elegant way. You may leave a comment and vote this idea up.
DooDoo
7 years agoNew Member
Sokon Do you have a pbi example to share as i do not succeed in implementing your solution ?
Thanks
Stephane
miguelarce
7 years agoRegular Visitor
Measure1
WhoIsWatching = USERPRINCIPALNAME()
(that is email style usernames, or you can use USERNAME() for windows style users)
Measure 2
FilterByViewer = IF(selectedvalue(table[email])=[WhoIsWatching],1,0)
Drag Measure 2 as a filter for visual, select advanced filtering and set it to
"Show items when value IS 1"
- Anonymous4 years agoNot applicable
Thanks miguelarce - this saved some time 😉