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

How do I implement this logic in tmap?

CASE WHEN WMS_NAME_ADDR_TYPE_1_00 = 3 THEN TRIM(WMS_CITY_STATE_1_00) + " " + TRIM(WMS_NA_ZIP_CODE_1_00) ELSE WMS_NAME_ADDRESS_1_00

 

I have tables named WMS_NAME_ADDR_TYPE_1_00

                                 WMS_CITY_STATE_1_00

                                 WMS_NA_ZIP_CODE_1_00

                                 WMS_NAME_ADDRESS_1_00

For now I have it as a straight map since I have no idea how to implement this logic: 

0683p000009M1UV.pngI have the logic changed to tmap logic: 

WMS_NAME_ADDRESS_TYPE_1_00==3?TRIM(WMS_CITY_STATE_1_01)+ " " + TRIM(WMS_NA_ZIP_CODE_1_00): WMS_NAME_ADDRESS_1_00

 

Did I convert the logic correctly, and where exactly do I put this logic since it's using multiple tables and I have a straight map? 

Labels (2)
1 Reply
Anonymous
Not applicable
Author

Hi,

 

   This looks fine. Since you are doing concatenation operation, I would suggest the null values for WMS_CITY_STATE_1_00 and WMS_NA_ZIP_CODE_1_00 as empty string (using interim Var variables in tMap) before doing concatenation. Else you would get null value in output even if one of the variable is having null.

 

Warm Regards,

 

Nikhil Thampi