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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
nadrayazaji82
Frequent Visitor

Search if text conatins a value in column B for a fixed value in columns A

Sample.PNG

 

Hello all! i am trying to check if columns B contains "Virus" or "Malware" and returns True or false for every device.. i am just trying to run through a list of computers to see which one is missing Antivirus.

 

hoping to get the results like

 

DeviceIDAV Check
1TRUE
2FALSE
3TRUE
2 ACCEPTED SOLUTIONS
msornakumar
Advocate III
Advocate III

Hi ,

 

  Please try the below measures

 

AVCheck Measure = CALCULATE(COUNTROWS(Device),SEARCH("Virus",Device[Installed],1,FALSE()) || SEARCH("Malware",Device[Installed],1,FALSE()) )
AvCheck = if(ISBLANK(Device[AVCheck Measure]),"FALSE","TRUE") 

View solution in original post

Anonymous
Not applicable

Hi

 You can add the conditional columns in Query editor as shown below and then you can filter as you needed.

 

Kindly note that the filter values are case sensitive.

Capture.PNG

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi

 You can add the conditional columns in Query editor as shown below and then you can filter as you needed.

 

Kindly note that the filter values are case sensitive.

Capture.PNG

msornakumar
Advocate III
Advocate III

Hi ,

 

  Please try the below measures

 

AVCheck Measure = CALCULATE(COUNTROWS(Device),SEARCH("Virus",Device[Installed],1,FALSE()) || SEARCH("Malware",Device[Installed],1,FALSE()) )
AvCheck = if(ISBLANK(Device[AVCheck Measure]),"FALSE","TRUE") 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.