Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

Custom Measure - Add Line "Does Not Contain" filter

Hi,

 

I have a measure I've created that I need to slightly modify:

 

Admissions Per 1000 = DIVIDE(CALCULATE(DISTINCTCOUNT('ClaimData'[Metric ID.3]),
FILTER
('ClaimData','ClaimData'[Place Of Service] IN {"21", "31"}),
'ClaimData'[Admit Date] <> BLANK (),
'ClaimData'[Discharge Date] <> BLANK ()),
'Eligibility'[Member Months])*12000
 
I need to add an additional filter that essentially states that field [ICD10 Mapping] does not contain the letter O.  I've tried including this line:  'ClaimData'[ICD10 Mapping] <> "%O%" but it is incorrect since that states to exclude exactly "O".  The results I'm trying to exclude are such as "O48", "O91", "O11" etc.
 
Any ideas?
 
 
 
 
Thank you
2 ACCEPTED SOLUTIONS
az38
Community Champion
Community Champion

Hi @Anonymous 

SEARCH("O", 'ClaimData'[ICD10 Mapping] ,,0) = 0

will exclude all values that contains "O"


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

View solution in original post

v-easonf-msft
Community Support
Community Support

Hi , @Anonymous 

The "search "function is case insensitive. If you don’t require case sensitivity, you can try this function . When searching for "O" ,it will find the first occurrence of 'O' or 'o'.

If you  want to indicate whether one string contains another string. The "containsstringexact"  function will be a better choice.

 

Best Regards,
Community Support Team _ Eason
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-easonf-msft
Community Support
Community Support

Hi , @Anonymous 

The "search "function is case insensitive. If you don’t require case sensitivity, you can try this function . When searching for "O" ,it will find the first occurrence of 'O' or 'o'.

If you  want to indicate whether one string contains another string. The "containsstringexact"  function will be a better choice.

 

Best Regards,
Community Support Team _ Eason
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

az38
Community Champion
Community Champion

Hi @Anonymous 

SEARCH("O", 'ClaimData'[ICD10 Mapping] ,,0) = 0

will exclude all values that contains "O"


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn
Daviejoe
Memorable Member
Memorable Member

Try

 

Left ( 'ClaimData'[ICD10 Mapping], 1 ) <> "O"





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.