Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
AtheerYahya
Contributor
Contributor

null values

Hi

i have table with duplicates values (date values). i need to get the status of the latest date for the transaction.

example of the dataset:

transactionId          TransactionNumber                  Status                        DateOfLastReferral

1                                          12332                                       submitted                 13/01/2021

2                                          33245                                       exported                   13/04/2020

3                                           76753                                      submitted                 14/01/2021

4                                           12332                                      saved                         13/01/2021

------

it should print :-

transactionId          TransactionNumber                  Status                        DateOfLastReferral

1                                          12332                                       submitted                 13/01/2021

2                                          33245                                       exported                   13/04/2020

3                                           76753                                      submitted                 11/01/2021

4                                           12332                                      saved                         13/01/2021

i tried to use FirstSortedValue(Status, -DateOfLastReferral, 2) but giving me null values in status field with duplicates rows.

transactionId          TransactionNumber                  Status                        DateOfLastReferral

1                                          12332                                             -                               13/01/2021

2                                          33245                                       exported                   13/04/2020

3                                           76753                                      submitted                 11/01/2021

4                                           12332                                             -                              13/01/2021

 

Thanks in advanced!

Labels (1)
2 Replies
lironbaram
Partner - Master III
Partner - Master III

check out this app 

AtheerYahya
Contributor
Contributor
Author

it did work but it did not delete the records, still showing the records with zeros as null. i want to remove the null records from the table. how i can delete these records ?

 

this is what i used:

=if([TransactionId]=max(total <TransactionNumberFormatted> [TransactionId]),[TransactionId])

AtheerYahya_0-1627901834797.png