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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
tmendoza
Helper III
Helper III

(Managing Roles) Assigning Row-Level Security with Measures is Making Visuals Go Blank

 

 

Hello all,

 

This is my first time posting to the community, so I hope this works.

I've been banging my head against my monitor trying to figure this one out.

 

I've got a table that counts the number of employee's by their Job Title, Level and Job Family.

BI Table.PNG

What I'm trying to do is assign a Role that does not allow folks to see Rows that have an Employee Count of 2 or below.

This could allow people to figure out salaries based off of the other visuals that express labor costs.

"Employee Count" is a measure expressed by (DISTINCTCOUNT('Employee Detail'[Employee]). I'm trying to use this in my DAX formula; however, the formula is making all my visuals go blank.

I've also tried this DAX expression that exclueds the measure, but still makes all my visuals blank.

DISTINCTCOUNT([Employee])>"2".

DAX RLS.PNG

 

Can anyone offer my a solution that will allow me to create a role that will stop people seeing any rows that have an employee count of 2 or below.

 

Thanks,

 

Tom

 

 

 

4 REPLIES 4
v-yuta-msft
Community Support
Community Support

@tmendoza ,

 

Please modify the dax expression as below:

distinctcount([Employee]) > 2

Capture.PNG 

 

Community Support Team _ Jimmy Tao

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thanks mate,

 

but this did not work.

@tmendoza ,

 

Could you share more details about the expected result?

 

Regards,

Jimmy Tao

The table in the origianl post. If this works, I would not be able to see anyone with an employee count of 2 or less.



 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.