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

Creating a new column of data based on 2 fields

Hi all,

I am trying to create a "no show" column based on 2 fields of data:

If the status of a request is reserved and the Estimated Submission Date has passed I would like a column (No Show) to highlight this as yes.

Request StatusEstimated Submission DateNo Show
Reserved24/10/2018Yes
Reserved26/10/2018(Blank)
Reserved23/10/2018Yes
In-Progress20/10/2018(Blank)
Closed20/10/2018(Blank)
Reserved24/10/2018Yes

Any help would be greatly appreciated.

Thanks,

Ben

5 Replies
rubenmarin

Hi Ben, this can be:

LOAD [Request Status],

     [Estimated Submission Date],

     If([Estimated Submission Date]<Today(), 'Yes') as [No Show]

...

kennethmash
Contributor III
Contributor III

Just to add to Ruben's solution I think what you need is something like this:

If([Estimated Submission Date]<Today() AND [Request Status] = 'Reserved', 'Yes', 'No') as [No Show]


This satisfies both conditions. I also find it useful to put actual values in place of null values. This allows you to select the null values on the front-end which can be useful if for example someone was interested in records that don't meet that criteria or if you want to conduct some sort of data cleanup exercise.

rubenmarin

You are right, I forgot that condition.

But I would remove the 'No' part to keep (Blank) the else part, or should it tbe the text '(Blank)'?

If([Estimated Submission Date]<Today() AND [Request Status] = 'Reserved', 'Yes') as [No Show]

beneldridge
Partner - Contributor
Partner - Contributor
Author

Thanks both, it works.

Much appreciated.

MarcoWedel

please close your open threads if your questions are answered:

beneldridge

thanks

regards

Marco