Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
TomBond77
Specialist
Specialist

Pattern case to be manipulated

Hi experts

We have text for cost center displayed as "HU1000/Not assigned", it can also be "ES1001/Not assigned".

Other values: "HU1000/102647"

I need to set these "*/not assigend" fields blank. But the following coding is not working.

 If( Right(Trim(SCOSTCENT__TEXT), Len(Trim(SCOSTCENT__TEXT)) +6) = 'Not assigned', '', [SCOSTCENT__TEXT]) AS [Cost Center],

Any ideas how to solve this issue?

Thanks

Tom

1 Solution

Accepted Solutions
TomBond77
Specialist
Specialist
Author

solved it:

If( Right(Trim(SCOSTCENT__TEXT), Len(Trim(SCOSTCENT__TEXT)) -7) = 'Not assigned', '', [SCOSTCENT__TEXT]) AS [Cost Center],

View solution in original post

1 Reply
TomBond77
Specialist
Specialist
Author

solved it:

If( Right(Trim(SCOSTCENT__TEXT), Len(Trim(SCOSTCENT__TEXT)) -7) = 'Not assigned', '', [SCOSTCENT__TEXT]) AS [Cost Center],