Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Substitute values

Hi,

I have a field called Inactive_Contact__c where the values are true or false.

eComContacts:

LOAD Id as ContactId,

    AccountId,

    Inactive_Contact__c,

    Business__c,

    Name;

SQL SELECT *

FROM Contact

WHERE AccountId != NULL;

How do I convert all the true values to YES and all the false values to null or -?

1 Solution

Accepted Solutions
ramoncova06
Partner - Specialist III
Partner - Specialist III

you can use an if statement

eComContacts:

LOAD Id as ContactId,

    AccountId,

    if(Inactive_Contact__c = 'True','YES', null()) as Inactive_Contact__c ,

    Business__c,

    Name;

SQL SELECT *

FROM Contact

WHERE AccountId != NULL;

another option is to use wildmatch

View solution in original post

2 Replies
ramoncova06
Partner - Specialist III
Partner - Specialist III

you can use an if statement

eComContacts:

LOAD Id as ContactId,

    AccountId,

    if(Inactive_Contact__c = 'True','YES', null()) as Inactive_Contact__c ,

    Business__c,

    Name;

SQL SELECT *

FROM Contact

WHERE AccountId != NULL;

another option is to use wildmatch

Not applicable
Author

thanks ramon