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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Lance1
Contributor
Contributor

Return designated name if value not present

I have a list of properties that I am linking to and joining to another table in my app on "Property Name".

The list in LSP Chain Properties only contains properties that ARE LSP properties, whereas Customer Account contains hundreds of thousands of properties that are not LSP properties.

Since the properties aren't on the list for "LSP Property" in my if statement, there are not any properties showing in my app as "Non LSP" though the code works fine to rename the property type as "LSP" when they are on the list.

Any help on how to accomplish returning "Non LSP" for properties not on the list would be appreciated.

I have attached the code if that is helpful.

Labels (4)
1 Solution

Accepted Solutions
vinieme12
Champion III
Champion III

Use ApplyMap() instead of Join

 

Map_lsp:

Mapping Load

PropertyName,if(lsp='Yes','LSP','Non-LSP') as Lspflag

From XYZ;

 

CustomerAccount:

Load * , Applymap('Map_lsp',[Seller Customer Account],'Non-LSP') as [LSP Property]

From XXXX;

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.

View solution in original post

1 Reply
vinieme12
Champion III
Champion III

Use ApplyMap() instead of Join

 

Map_lsp:

Mapping Load

PropertyName,if(lsp='Yes','LSP','Non-LSP') as Lspflag

From XYZ;

 

CustomerAccount:

Load * , Applymap('Map_lsp',[Seller Customer Account],'Non-LSP') as [LSP Property]

From XXXX;

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.