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

Qliksense Question If then and Date return

I have a table containing a  Product Code , a Transaction Type and Date associated with the Transaction Type. There could be multiple Instances of the Transaction Type by date.

Example:-   

Product Code DateTransaction Type
000101/10/2017ADJ
000129/09/2017ADJ
000127/09/2017RECP
000115/09/2017RECP

I want to  return the latest RECP Date i.e. 27/09/2017 but, if there is no RECP then return the latest ADJ. 01/10/2017

How can I achieve this in a IF THEN statement

4 Replies
Anil_Babu_Samineni

Perhaps this?

Only({<Date = {'$(=Min(Date))'}, [[Transaction Type] -= {'RECP'}>} Date)

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
Anonymous
Not applicable
Author

Hi Anil, Thank  you for your speedy response.

This does not appear to cope with multiple RECP's and it does not provide the last ADJ date if no Receipts found.

Anil_Babu_Samineni

On what bases, We are going to have for RECCP's??

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
Anonymous
Not applicable
Author

HI Anil,

Appears to return null values if there is more than one of them ...