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: 
Anonymous
Not applicable

Expression

What could be wrong with the following expression:

If(Len(Trim([Med Aid])) = 0, 'UNKNOWN', If([Med Aid] = 'PRIVATE', 'OUT-OF-POCKET',[Med Aid])) as [Payment Type]



Regards.


Chris

23 Replies
Anonymous
Not applicable
Author

Thanks Dena

The 'UNKNOWN' value is substituted when the [Med Aid] field is NULL or does not contain any values.  The 'OUT-OF-POCKET' value is replacing the [Med Aid] field when the vale is 'PRIVATE'

REGARDS

Anonymous
Not applicable
Author

Hi Sunny

The second suggestion worked well.  What could be the issue in the database?

sunny_talwar

I think there are hidden characters which QlikView isn't able to show. We are using * as any wildcard character.

Anonymous
Not applicable
Author

Thank you once again