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.
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"
)
)
)
)
User | Count |
---|---|
25 | |
12 | |
8 | |
8 | |
5 |
User | Count |
---|---|
28 | |
13 | |
12 | |
12 | |
6 |