Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to, IF do else don´t in script?

Hi

I´m creating a Datekey by startdate & '_' & Enddate as Datekey

but some of my post are corrupt and don´t have either start or enddate. I think qlikview then just give me a _ in the datekey field. When there are no start/enddate I would like qw to just move one and not construct a datekey. How is this done?

/thanks!

1 Solution

Accepted Solutions
Not applicable
Author

You could attach

WHERE (NOT ISNULL(startdate) or NOT ISNULL(enddate)) or

If the problem is with spaces you can also try:

WHERE LEN(TRIM(startdate))>0 or LEN(TRIM(enddate))>0.

View solution in original post

1 Reply
Not applicable
Author

You could attach

WHERE (NOT ISNULL(startdate) or NOT ISNULL(enddate)) or

If the problem is with spaces you can also try:

WHERE LEN(TRIM(startdate))>0 or LEN(TRIM(enddate))>0.