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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
vsap2000
Creator
Creator

How to use 'Mid' for front and end characters simultaneously

Hello Friends,

I have a  Order #  field which can be any length in that field if the  first 3 char is number 252-0750-060060, 252-0200S than it should be 'Order Compand now tricky part, in that field if you have 6194-31459-2520, WR245977-2520 it should say 'Order Incomp'. From the different position of 252 number in Order # filed it gets the Order Status Flag. 

For the initial part I was able to get If (Mid(Order#,1,3) = '252','Order Comp') but how to add other piece for that I need your guys help.

Thanks in Advance!

-V

 

 

 

Labels (2)
1 Solution

Accepted Solutions
Digvijay_Singh

May be like this - 

if(left([Order #],3)='252','Order Comp',

if(substringcount([Order #],'252')>=1,'Order Incomp')) AS [Order Status Flag]

View solution in original post

4 Replies
Digvijay_Singh

May be like this - 

if(left([Order #],3)='252','Order Comp',

if(substringcount([Order #],'252')>=1,'Order Incomp')) AS [Order Status Flag]

Frank_S
Support
Support

Are you trying to 'split' your field?
If so, this is possible using the 'Split' card in the Qlik Data Manager

Hopefully that points you in the right direction. If not, hopefully others here will offer their insight.

Kind regards

 

Please remember hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
vsap2000
Creator
Creator
Author

It worked. Thanks!

Digvijay_Singh

I am glad it helped!