Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Good day all!
I have the following formula that works just fine to calculate the amount of defects that are from Responsible Manfacturing Sub Group ''Engine''. The problem is, there is a Sub Group called ''Engineering'' so it does take this data as well.
Can I add another filter like a ''notCONTAINSSTRING'' to this one? all the ones I tried won't work.
Thank you!
HI,
I am not sure if I understood your question correctly, but I tried to create a sample pbix file like below.
Please check the below picture and the attached pbix file.
STT EnginePQITotalPts FIX =
CALCULATE (
SUM ( 'DIM ChassisDefectDataEWI'[FaultScore] ),
FILTER (
'DIM ChassisDefectDataEWI',
CONTAINSSTRING (
'DIM ChassisDefectDataEWI'[Responsible_Manfacturing_Sub_Group],
"Engine"
)
&& NOT (
CONTAINSSTRING (
'DIM ChassisDefectDataEWI'[Responsible_Manfacturing_Sub_Group],
"Engineering"
)
)
)
)
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 6 | |
| 5 | |
| 4 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 24 | |
| 21 | |
| 12 | |
| 10 | |
| 8 |