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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote 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
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.