This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
Hi Experts
I am trying to exclude in the column "UnsafeActByPeople where we have the text "No human contributing factor".
My error message two few arugments passed to the CONTIANSTRING function
m_count_coworker_LTA_UnsafeActByPeople_PSK =
var result=
CALCULATE(COUNT(vw_fct_irs_accidents[irs_accidents_bk]),
FILTER(vw_fct_irs_accidents, 'vw_fct_irs_accidents'[TypeOfPersonInjured]="Co-Worker" &&
'vw_fct_irs_accidents'[AccidentResultedInLostTime]= "Yes" &&
'vw_fct_irs_accidents'[incident_category_master]="Injury accident" &&
NOT(CONTAINSSTRING(vw_fct_irs_accidents[UnsafeActsByPeople] = "No human contributing factor"))))
RETURN
IF(ISBLANK(result),0,result)
Hi @Anonymous
Try the following measure
m_count_coworker_LTA_UnsafeActByPeople_PSK =
VAR result =
CALCULATE (
COUNT ( vw_fct_irs_accidents[irs_accidents_bk] ),
FILTER (
vw_fct_irs_accidents,
'vw_fct_irs_accidents'[TypeOfPersonInjured] = "Co-Worker"
&& 'vw_fct_irs_accidents'[AccidentResultedInLostTime] = "Yes"
&& 'vw_fct_irs_accidents'[incident_category_master] = "Injury accident"
&& CONTAINSSTRING (
vw_fct_irs_accidents[UnsafeActsByPeople],
"No human contributing factor"
)
= FALSE ()
)
)
RETURN
IF ( ISBLANK ( result ), 0, result )
Best Regards!
Yolo Zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 35 | |
| 27 | |
| 26 | |
| 22 | |
| 18 |
| User | Count |
|---|---|
| 67 | |
| 36 | |
| 32 | |
| 26 | |
| 23 |