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: 
manoranjan_d
Specialist
Specialist

sql to qlikview script?

how to do this?

how to do this

select (CASE WHEN ((field1 IS NOT NULL) OR (field2 IS NOT NULL)) THENISNULL(field1 ,'') + ', ' +

ISNULL(field2,'') ELSE field3 END) AS xxxx from table;

5 Replies
Anil_Babu_Samineni

First part this?

If(Len(Trim(field1))=0 or Len(Trim(field2))=0, IsNull(field1),' ')

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
manoranjan_d
Specialist
Specialist
Author

we should concatenate the field1 and field 2

but there is  no concatenation happened

Anil_Babu_Samineni

Will you able to explain Business?

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
Peter_Cammaert
Partner - Champion III
Partner - Champion III

Something like this?

...IF (IsNull(field1) and IsNull(field2), field3,

                                          field1 & ', ' & field2) AS xxxx