Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi all,
i'm managin a report about employeee assesment so data under privacy restriction.
one of the rule is that the report should mask values in case of usere select a group of less than 5 employee.
the basic chart is a pie showing how many competencies managers marked as ok/nok (value 1 or 0 in ManagerOk column)
so i created a powerquery measure
title of this chart represent the value of the power query measure 5+SelectedEmployee.
if ok it should give ok/nok chart
Solved! Go to Solution.
Hi, @Anonymous
Thank you very much for @lbendlin suggestion, based on my testing I think it's something wrong with the Measure you wrote, it doesn't return ok/nok you can refer to the following measure.
New 5+SelectedEmployee =
VAR _result =
CALCULATE (
COUNTROWS ( HRAssesment ),
FILTER ( HRAssesment, DISTINCTCOUNT ( HRAssesment[Employee ID] ) )
)
RETURN
IF ( _result >= 8, "ok", "nok" )
Best Regards,
Yang
Community Support Team
If this does not work, could you please share some sample data without sensitive information and expected output.
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!
How to get your questions answered quickly -- How to provide sample data in the Power BI Forum
Hi, @Anonymous
Thank you very much for @lbendlin suggestion, based on my testing I think it's something wrong with the Measure you wrote, it doesn't return ok/nok you can refer to the following measure.
New 5+SelectedEmployee =
VAR _result =
CALCULATE (
COUNTROWS ( HRAssesment ),
FILTER ( HRAssesment, DISTINCTCOUNT ( HRAssesment[Employee ID] ) )
)
RETURN
IF ( _result >= 8, "ok", "nok" )
Best Regards,
Yang
Community Support Team
If this does not work, could you please share some sample data without sensitive information and expected output.
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!
How to get your questions answered quickly -- How to provide sample data in the Power BI Forum
You cannot mask data after the fact. You need to base your entire solution on pre-masked data.
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
27 | |
10 | |
10 | |
9 | |
6 |