The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi , I'm looking for a Measure in PBI that will allow me to get the Count of Injury, if Forseeble is True, from below table.
Incident number | Forseeble | Injury | Count of Injury if Forseeble True |
1 | TRUE | TRUE | |
2 | FALSE | FALSE | |
3 | FALSE | FALSE | |
4 | FALSE | TRUE | |
5 | TRUE | FALSE | |
6 | TRUE | TRUE | |
7 | FALSE | TRUE | |
8 | FALSE | FALSE | |
9 | FALSE | FALSE |
Solved! Go to Solution.
Hi @ARoma
try to create a measure with this:
Hi @ARoma
try to create a measure with this:
Hi @djurecicK2
thanks for looking into this. I'm looking for the Count of Injury True, (not incidents), where Forseeble is also True.
Hi @djurecicK2
thanks for looking into this. I'm looking for the Count of Injury True, (not all incidents), where Forseeble is also True. If I undersend corectly , the measure you mentioned above is caluculationg all incidents where Forseable is True.
Hi @ARoma
You can try something like this
Count of Foreseeable= CALCULATE(COUNT(Tablename[incident number]),FILTER(tablename, tablename[ForeseeableInjury]= true()))
Use "true" if that field is text. Please adapt to your field and table names.
Please accept as solution if this answers the question- thanks!
User | Count |
---|---|
11 | |
9 | |
6 | |
6 | |
5 |
User | Count |
---|---|
23 | |
14 | |
14 | |
9 | |
7 |