Multifilter in same column

Hi Friends,

I have a query for multifilters in same column.

I need to extract records which contains- MA, MMA, Medicaid only from below data.

Output should be like:-
Manhattan of MA
PVR MMA
Self-Pay MA CIGNA
Austra Strategies Medicaid
CENPATICO SUNSHINE MEDICAID

Note:- MARKETPLACE, MAKER etc these also contains MA but I need only MA which don’t contain anything in end and begin.

I am using filterdatatable. Everything is working but this MA records not working correctly, if i use contains then it extract all records.

Please suggest

1 Like

Multifilter Query.xlsx (9.0 KB)
Sample file

Hi @Jeeru_venkat_Rao,

Try to use this linq query

If((From row In dtInput.AsEnumerable()
Where System.Text.RegularExpressions.Regex.IsMatch(row("Appointment Insurance Name").ToString.ToUpper, "\b(MA|MMA|MEDICAID)\b")
Select row).ToList.Count>0,(From row In dtInput.AsEnumerable()
Where System.Text.RegularExpressions.Regex.IsMatch(row("Appointment Insurance Name").ToString.ToUpper, "\b(MA|MMA|MEDICAID)\b")
Select row).CopyToDataTable(),dtInput.Clone)

Thank you @rashmisingh2695 . Its working fine.

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.