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.
As part of an audit process, a number of tables are received containing data relating to different incidents in different departments . For example, a table from Health& Safety department will list any safety incidents, a table from Security department will show suspected security breaches, another table from Staffing department provides information about staff absences. etc.etc.
Apart different measures in place to calculate different KPIs, I have one simple measure for each table to calculate the number of incidents in each department. Ideally all departments should have zero incidents but if atleast 8 out of 10 departments show no incident than the audit will be considered "Passed" otherwise it's a fail.
Now what I would like your help with is how to create a measure which will give the outcome of "Passed" or "Failed" on a card visual, based on the outcome of the incidents count measures.
I hope I have made myself understood but apologize in advance I am unable to share any data.
Thanks
Solved! Go to Solution.
Hey @Newrr ,
create a new measure like so:
new measure:
var dep1 = if( [dep1measure] > something , 1 , 0 )
var dep2 = if( [dep2measure] > something , 1 , 0 )
...
var dep10 = if( [dep10measure] > something , 1 , 0 )
return
if( dep1 + dep2 + ... dep10 > somethingdifferent , "Fail" , "Pass" )
Hopefully, this provides what you are looking for.
Regards,
Tom
Hey @Newrr ,
create a new measure like so:
new measure:
var dep1 = if( [dep1measure] > something , 1 , 0 )
var dep2 = if( [dep2measure] > something , 1 , 0 )
...
var dep10 = if( [dep10measure] > something , 1 , 0 )
return
if( dep1 + dep2 + ... dep10 > somethingdifferent , "Fail" , "Pass" )
Hopefully, this provides what you are looking for.
Regards,
Tom
Hi @TomMartens Great, it works. Thank you so much for your help. Your solution perfectly meets my requirement however how would you amend it if alongaide "Fail" and "Pass", I also what to show how many departments had zero incidents and how many had one or more incidents?
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
110 | |
94 | |
82 | |
66 | |
58 |
User | Count |
---|---|
151 | |
121 | |
104 | |
87 | |
67 |