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

Announcements
ALERT: QlikView server communication interruptions following Microsoft Windows Domain Controller security updates
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

If..Else advice Needed Please

Hello Everyone,


Would anyone able to tell me what does the statement below do please?


if((Left(Originatingcompanymnemonic, if((findoneof(Originatingcompanymnemonic, ' '))=0, (len(Originatingcompanymnemonic)), findoneof(Originatingcompanymnemonic, ' ')-1)))='-', NULL(), (Left(Originatingcompanymnemonic, if((findoneof(Originatingcompanymnemonic, ' '))=0, (len(Originatingcompanymnemonic)), findoneof(Originatingcompanymnemonic, ' ')-1)))) as MOC_OrgCoy,

Thank you very much for your kind advise!

Labels (1)
18 Replies
Not applicable
Author

Hi,

   Yes really i appreciate .

But  At present  i  could not take the call .

I can avaialble after 6 hours from now.

But still i can reply to your post .

Sorry for the inconvenience .

Regards

Yusuf

Not applicable
Author

Hmm..6 hours will be my night time..around 10pm. If you can call me at 65-9108-4192, that would be appreciated much!

Otherwise, I just need to speak to someone in your team to guide me thru what does the statement do step by step..should be quick..

Thanks,

Jeremiah Lee

Product Manager for eWindow®, Global Trading Services

Platts

12 Marina Boulevard

#23-01, Marina Bay Financial Centre Tower 3

Singapore 018982

DID (65) 6530 6415 | Support (65) 6530 6530

Mobile (65) 9108 4192 | F (65) 6532 2700

Yahoo : jleeka75@yahoo.com<mailto:jleeka75@yahoo.com>

www.platts.com<http://www.platts.com/>

kumarnatarajan
Partner - Specialist
Partner - Specialist

Hi,

Try this one.

Ex: if(len(Trim(Originatingcompanymnemonic))>0,SubField(Originatingcompanymnemonic,' ',1),Null()) as MOC_OrgCoy

Not applicable
Author

Hi Kumar,

Would it be possible if I give you a quick call please?

Thanks,

Jeremiah Lee

Product Manager for eWindow®, Global Trading Services

Platts

12 Marina Boulevard

#23-01, Marina Bay Financial Centre Tower 3

Singapore 018982

DID (65) 6530 6415 | Support (65) 6530 6530

Mobile (65) 9108 4192 | F (65) 6532 2700

Yahoo : jleeka75@yahoo.com<mailto:jleeka75@yahoo.com>

www.platts.com<http://www.platts.com/>

kumarnatarajan
Partner - Specialist
Partner - Specialist

Hi,

Find the attached file.i think you are looking this type of syntex. Go to help(F1) there you can able to read about all the function

Not applicable
Author

Got it, it is clear now.

I got a last advice request..based on your last statement..

if(len(Trim(Originatingcompanymnemonic))>0,SubField(Originatingcompanymnemonic,' ',1),Null()) as MOC_OrgCoy,

Some Originatingcompanymnemonic value is “-“ and I need to return a NULL for those records..how do I do it based on your statement above please?

Jeremiah Lee

Product Manager for eWindow®, Global Trading Services

Platts

12 Marina Boulevard

#23-01, Marina Bay Financial Centre Tower 3

Singapore 018982

DID (65) 6530 6415 | Support (65) 6530 6530

Mobile (65) 9108 4192 | F (65) 6532 2700

Yahoo : jleeka75@yahoo.com<mailto:jleeka75@yahoo.com>

www.platts.com<http://www.platts.com/>

kumarnatarajan
Partner - Specialist
Partner - Specialist

Hi,

try this

Ex: if(len(Trim(Country))>0 and Trim(Country)<>'-',SubField(Country,' ',1),Null()) as MOC_OrgCoy

Not applicable
Author

It works!

Thanks very much Kumar!

Jeremiah Lee

Product Manager for eWindow®, Global Trading Services

Platts

12 Marina Boulevard

#23-01, Marina Bay Financial Centre Tower 3

Singapore 018982

DID (65) 6530 6415 | Support (65) 6530 6530

Mobile (65) 9108 4192 | F (65) 6532 2700

Yahoo : jleeka75@yahoo.com<mailto:jleeka75@yahoo.com>

www.platts.com<http://www.platts.com/>

kumarnatarajan
Partner - Specialist
Partner - Specialist

Hi,

Ok, you got the result.which is the right answer click there "Correct answer" then close your question