Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
hammermill21
Creator III
Creator III

Separating Data

Hello everyone,

I have data that I am separating into two other columns which I got working:

Capture.PNG

So I take Failure Mode and break it down into WorkOrder and Reason by adding this to the script:

[Failure Mode] AS [Failure Mode],

    subfield([Failure Mode],':',1) AS WorkOrder,

    subfield([Failure Mode],':',-1) AS Reason,

But for WorkOrder I only want it to show the WorkOrder number if the failure mode has one. How can I do that?

Thank you!

11 Replies
hammermill21
Creator III
Creator III
Author

What I have for Reason is this:

subfield([Failure Mode],':',-1) AS Reason,

hammermill21
Creator III
Creator III
Author

That was it, the ':' & that I was missing.

Thank you Sunny