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: 
zwyne
Creator
Creator

If Condition Question

Hello All,

I am not sure what's I doing here but my statement is

if (Match([Legal Entity],'Close Corporations','Co-Operatives','Foreign Companies','Partnerships','Pension, Provident and Other Funds'),
'Close Corporation','Co-operatives','Foreign Company','Partnership','Pension or provident funds',
[Legal Entity]) as CUSTOMER_TYPE_DESC

Please assist.

Regards

5 Replies
Anil_Babu_Samineni

Seems, You placed wrong place for Parenthesis.

if (Match([Legal Entity],'Close Corporations','Co-Operatives','Foreign Companies','Partnerships','Pension, Provident and Other Funds'),
'Close Corporation','Co-operatives','Foreign Company','Partnership','Pension or provident funds'),[Legal Entity]
) as CUSTOMER_TYPE_DESC

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
vvvvvvizard
Partner - Specialist
Partner - Specialist

if legal entity matches any of those keywords it will return them

sunny_talwar

May be you need this

Pick(Match([Legal Entity], 'Close Corporations', 'Co-Operatives', 'Foreign Companies', 'Partnerships', 'Pension, Provident and Other Funds') + 1, [Legal Entity], 'Close Corporation', 'Co-operatives', 'Foreign Company', 'Partnership', 'Pension or provident funds') as CUSTOMER_TYPE_DESC

UPDATED: Updated based on Jonathan's response below

jonathandienst
Partner - Champion III
Partner - Champion III

Also comma after the second Legal Entity:

Pick(Match([Legal Entity], 'Close Corporations', 'Co-Operatives', 'Foreign Companies', 'Partnerships', 'Pension, Provident and Other Funds') + 1,

[Legal Entity], 'Close Corporation', 'Co-operatives', 'Foreign Company', 'Partnership', 'Pension or provident funds') as CUSTOMER_TYPE_DESC

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
sunny_talwar

Thanks for pointing that out jontydkpi