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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
sabeensp
Helper IV
Helper IV

LIKE % operator in Power BI

Hello All,

 

I'm craeting a measure, but running into a problem.

 

Here is my measure

COUNT ROWS =

CALCULATE(COUNTROWS('TABLE1'),
FILTER ('TABLE1', AND ('TABLE1'[Type] = "C",
AND(
'TABLE1'[Category] = "RED",
'TABLE1'[Industry] <> "%SER%")))) -- This is the fileter I need to apply,
--to remove Industry does not conatin SER in the Industry name
)

Thanks
1 ACCEPTED SOLUTION
jdbuchanan71
Super User
Super User

Hello @sabeensp 

Give this a try 

COUNT ROWS = 

CALCULATE(COUNTROWS('TABLE1'),
FILTER ('TABLE1', AND ('TABLE1'[Type] = "C",
AND(
'TABLE1'[Category] = "RED",
NOT CONTAINSSTRING('TABLE1'[Industry], "SER")))))

View solution in original post

1 REPLY 1
jdbuchanan71
Super User
Super User

Hello @sabeensp 

Give this a try 

COUNT ROWS = 

CALCULATE(COUNTROWS('TABLE1'),
FILTER ('TABLE1', AND ('TABLE1'[Type] = "C",
AND(
'TABLE1'[Category] = "RED",
NOT CONTAINSSTRING('TABLE1'[Industry], "SER")))))

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors