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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Issue in expression


Hi,

I'm not getting values in my drop down.

I want to display Transaction Status as 'Customer Reviewing Quote' when value is 'Quote Sent' and

Transaction Status as 'Conditional Approval' when value is 'TFS - Conditional Approval'

and default values for other values.

I wrote my expression as

if(wildmatch(([Transaction Status] = 'Quote Sent') , 'Customer Reviewing Quote'),

if(wildmatch(([Transaction Status] = 'TFS - Conditional Approval'), 'Conditional Approval'),[Transaction Status]))

Can some one please help me with this issue

Regards,

Aditya

Labels (1)
5 Replies
ali_hijazi
Partner - Master II
Partner - Master II

you have a syntax error

you need to write if(wildmatch([Transaction Status],'Quote Sent')>0,Customer Reviewing quote',

if(wildmatch([Transaction Status],'tfs-conditional approval')>0,'Conditional Approval',[Transaction Status]))

I can walk on water when it freezes
sunny_talwar
MVP
MVP

Or a simpler version could be like this:

=If([Transaction Status] = 'Quote Sent', 'Customer Reviewing Quote',

  If([Transaction Status] = 'TFS - Conditional Approval', 'Conditional Approval', [Transaction Status]))

Not applicable
Author

Thank you SunIndia, it worked.

sunny_talwar
MVP
MVP

Awesome! I am glad that it worked

Best,

Sunny

stigchel
Partner - Master
Partner - Master

It would be better to do this in the load script with a mapping laod and Applymap functionality. In the gui you can use

=Aggr(Replace(Replace(TransactionStatus,'TFS - Conditional Approval','Conditional Approval'),'Quote Sent','Customer Reviewing Quote'),TransactionStatus)

See also attached