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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
prasadhebbar315
Advocate I
Advocate I

Flag Based on Issue text

Hello everyone,

Can PBI flag a case as an issue based on "Problem" mentioned in the data.

In the below example,

Machine:233 Victor has created 2 cases for the same problem (BIOS) hence flag=1,

Machine:301 Harveyhas created 2 cases for the similar problem (contains Paper Jam) hence flag=1,

Machine:423 Chris has created 2 cases for different problems hence flag=0

MachineAgentCreated onClosed onDays_to_closeProblemFlag
234James2/23/20232/27/20235Display Issue0
233Victor2/13/20232/19/20237BIOS1
233Victor2/21/20232/25/20235BIOS1
301Harvey2/23/20232/27/20235Paper Jam1
301Harvey2/28/20233/2/20233Repeat Paper Jam1
423Chris2/21/20232/25/20235Wifi not detected0
423Chris2/27/20233/2/20234Paper Jam0
2 REPLIES 2
prasadhebbar315
Advocate I
Advocate I

Thanks for offering help. Since this is a complicated logic, I had to code the logic in Python.

Padycosmos
Solution Sage
Solution Sage

Though an unrelated video, it will help you create a SWITCH() based on text in a column:

https://www.youtube.com/watch?v=VM8cebx4j_c

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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