Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi, I want to filter value NOT CONTAINS the specified value but its not working
Mismatch Executive =
CALCULATE( COUNTROWS('table'),
FILTER(
'table',
('table'[Position Assignment Category] = "Permanent ~ Executive" ||
'table'[Position Assignment Category] = "Int. Secondee PET ~ Executive")
&& ('table'[Job Grade] <> BLANK()) &&
( NOT (
CONTAINS ( 'table','table'[Job Grade], "P1" )
|| CONTAINS ( 'table','table'[Job Grade], "P2" )
|| CONTAINS ( 'table','table'[Job Grade], "P3" )
))
)
)+0
can you help me?
Solved! Go to Solution.
Hi, @zahidah_mabd
Please try formula as below:
Mismatch Executive =
CALCULATE (
COUNTROWS ( 'table' ),
FILTER (
'table',
( 'table'[Position Assignment Category] = "Permanent ~ Executive"
|| 'table'[Position Assignment Category] = "Int. Secondee PET ~ Executive" )
&& ( 'table'[Job Grade] <> BLANK () )
&& ( NOT ( 'table'[Job Grade] IN { "P1", "P2", "P3" } ) )
)
) + 0
Best Regards,
Community Support Team _ Eason
Can I use CONTAINS instead of CONTAINSSTRING?
Hi, @zahidah_mabd
Please try formula as below:
Mismatch Executive =
CALCULATE (
COUNTROWS ( 'table' ),
FILTER (
'table',
( 'table'[Position Assignment Category] = "Permanent ~ Executive"
|| 'table'[Position Assignment Category] = "Int. Secondee PET ~ Executive" )
&& ( 'table'[Job Grade] <> BLANK () )
&& ( NOT ( 'table'[Job Grade] IN { "P1", "P2", "P3" } ) )
)
) + 0
Best Regards,
Community Support Team _ Eason
@zahidah_mabd , Try like
Mismatch Executive =
CALCULATE( COUNTROWS('table'),
FILTER(
'table',
('table'[Position Assignment Category] = "Permanent ~ Executive" ||
'table'[Position Assignment Category] = "Int. Secondee PET ~ Executive")
&& not(Isblank('table'[Job Grade] )) &&
( NOT (
CONTAINSSTRING ( 'table','table'[Job Grade], "P1" )
|| CONTAINSSTRING ( 'table','table'[Job Grade], "P2" )
|| CONTAINSSTRING ( 'table','table'[Job Grade], "P3" )
))
)
)+0
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!