Forum Discussion
Strange issue with DAX formula and Row Level Security Role
Hello -
I have a basic table below. The DAX formula for the measure is a simple COUNTROWS function:
Measure =COUNTROWS(Losses)
I have a couple of blanks in the table and need those to be replaced with zeroes, so I add +0 to the formula and it works as desired:
Measure = COUNTROWS(Losses)+0
However, when I apply a row level security role and view the visual as that role, the undesired blanks return, and the DAX formula has not been changed, it is still Measure = COUNTROWS(Losses)+0
This is very strange - I don't understand what's going on here. Thanks very much for your help!
4 Replies
- Greg_Deckler
Community Champion
Anonymous What is your RLS role definition in terms of its DAX formula?
- AnonymousNot applicable
Hi Greg_Deckler ,
The DAX formula for the role definition is [Level 2] = "NCTR"
Every row in the data has a 4 letter organizational acronym with column name "Level 2", so the role definition is just equal to the acronym.
Thank you
- Greg_Deckler
Community Champion
Anonymous So would all of those rows for FY17 Involuntary Losses be filtered out for NCTR role? I'll have to do some mocking up of data unless you can provide a sample in text.