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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
tmendoza
Resolver I
Resolver I

(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

 

 

 

5 REPLIES 5
Stachu
Community Champion
Community Champion

Hi, can you add sample tables (in format that can be copied to PowerBI) from your model with anonymised data? 

Column1 Column2
A 1
B 2.5

Specifically the Employee Detail table as well as the measures that you show in the visuals
As described here:

How to Get Your Question Answered Quickly 



Did I answer your question? Mark my post as a solution!
Thank you for the kudos 🙂

I can do better than that. I've got a PBIX file that has been redacted that has everything in it to mimic my problem. Just not sure how to send it out to the community.

Stachu
Community Champion
Community Champion

usually peopple post on OneDrive Google Drive, would that work for you?



Did I answer your question? Mark my post as a solution!
Thank you for the kudos 🙂

Sure does

Stachu
Community Champion
Community Champion

cool, please post when you upload the file



Did I answer your question? Mark my post as a solution!
Thank you for the kudos 🙂

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.