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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.