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
Anonymous
Not applicable

Creating a Security Filter to protect employee ID

I am trying to limit the exposure of identifing data by applying a filter to exisiting graphs. I would like the items to display "N/A" when the number of employees falls below 3. I have tried many "If / And statements" and all have failed.  I don't want to limit the data by not showing that there is data if below 3 (e.g. filter on [#of Employees] < 3). I would just like to display a blank or N/A. Any help would be greatful. 

3 REPLIES 3
v-lid-msft
Community Support
Community Support

Hi @Anonymous ,

 

We can try to add a condition to measure to meet your information, For example, if you want to show the Sum('Table'[Sales]), we can use the following measure:

 

Measure = IF(CALCULATE(DISTINCTCOUNT('Table'[Employee]),ALLSELECTED('Table'))<3,"N/A",SUM('Table'[Sales]) & "")

 

3.jpg4.jpg


If it doesn't meet your requirement, Could you please show the exact expected result based on the Tables that you have shared?

 


Best regards,

 

 

Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

 
 
 

The hope is to hide the data of individuals should the slicers make the data possibly idenifiable. Untitled.png

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.