Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How do I return the given latest in a line?

    Good afternoon,

    I'm trying to filter the last order status customers. Except that nothing in the manual about the last date to be selected, only loading.

Below is an example of what I need.

   

Sample database:

                                                                    


 

NAME


 

 

IDENTIFICATION NUMBER


 

 

PRODUCT


 

 

DATE


 

 

STATUS


 

 

JOSE


 

 

5424658


 

 

SHIRT


 

 

02/04/2015


 

 

DELIVERED REQUEST


 

 

MARIA JOSE


 

 

5169469


 

 

TENNIS


 

 

20/03/2015


 

 

AWAITING DELIVERY


 

 

MARIA JOSE


 

 

5169469


 

 

TENNIS


 

 

24/04/2015


 

 

DELIVERED REQUEST


 

 

JOAQUIM


 

 

498562


 

 

TENNIS


 

 

17/04/2015


 

 

DELIVERED REQUEST


 

 

Anastacia


 

 

892323


 

 

BLOUSE


 

 

04/05/2015


 

 

AWAITING DELIVERY


 

 

JURESMAR


 

 

985620


 

 

SHIRT


 

 

20/03/2015


 

 

AWAITING DELIVERY


 

 

MARIANA


 

 

5156623


 

 

SHIRT


 

 

11/05/2015


 

 

DELIVERED REQUEST


 

 

JOHN


 

 

5159396


 

 

SHOE


 

 

22/05/2015


 

 

AWAITING DELIVERY


 

  

When filter by status:

                                       


 

NAME


 

 

IDENTIFICATION NUMBER


 

 

PRODUCT


 

 

DATE


 

 

STATUS


 

 

JURESMAR


 

 

985620


 

 

SHIRT


 

 

20/03/2015


 

 

AWAITING DELIVERY


 

 

JOHN


 

 

5159396


 

 

SHOE


 

 

22/05/2015


 

 

AWAITING DELIVERY


 

 

Anastacia


 

 

892323


 

 

BLOUSE


 

 

04/05/2015


 

 

AWAITING DELIVERY


 

 

MARIA JOSE


 

 

5169469


 

 

TENNIS


 

 

20/03/2015


 

 

AWAITING DELIVERY


 

  

Real status:

                             


 

NAME


 

 

IDENTIFICATION NUMBER


 

 

PRODUCT


 

 

DATE


 

 

STATUS


 

 

JURESMAR


 

 

985620


 

 

SHIRT


 

 

20/03/2015


 

 

AWAITING DELIVERY


 

 

JOHN


 

 

5159396


 

 

SHOE


 

 

22/05/2015


 

 

AWAITING DELIVERY


 

 

Anastacia


 

 

892323


 

 

BLOUSE


 

 

04/05/2015


 

 

AWAITING DELIVERY


 
1 Solution

Accepted Solutions
petter
Partner - Champion III
Partner - Champion III

This might be what you are looking for?

2015-05-29 #1.PNG

2015-05-29 #2.PNG

Expressions:

Latest Update:    Max( DATE )

Status:               Max( Status )

Process:             Concat( Date( DATE , 'YY-MM-DD' ) & ' :  ' & STATUS , ' /  ', DATE )

View solution in original post

7 Replies
sebastiandperei
Specialist
Specialist

You need this in an object or in script?

Could you please send a reduced qvw copy?

Anonymous
Not applicable
Author

I assume that 'MARIA JOSE' should be excluded because the 'AWAITED DELIVERY' is not the latest status.

If this is correct, you maybe want to create a "Latest Status" flag in the script, and on the front-end objects use this flag as a condition (set analysis) to show the records where this flag is true.

Or maybe you want to load only the records with the current status?  I can't guess the exact requirements...

petter
Partner - Champion III
Partner - Champion III

This might be what you are looking for?

2015-05-29 #1.PNG

2015-05-29 #2.PNG

Expressions:

Latest Update:    Max( DATE )

Status:               Max( Status )

Process:             Concat( Date( DATE , 'YY-MM-DD' ) & ' :  ' & STATUS , ' /  ', DATE )

MarcoWedel

Hi,

one solution could be:

QlikCommunity_Thread_166128_Pic1.JPG

QlikCommunity_Thread_166128_Pic2.JPG

QlikCommunity_Thread_166128_Pic3.JPG

hope this helps

regards

Marco

sinanozdemir
Specialist III
Specialist III

Another approach that is similar to Marco's solution:

Solution1.PNG

get the maximum of dates and group by names then left join.

And in the expression, just use if max date is equal to date to pull the most update status.

Solution1a.PNG

Just another approach.

Not applicable
Author

it would be better on an object , I could accomplish in Excel using dynamic table , sorting by date, and deleting duplicates .
Not applicable
Author

Thanks! I managed to make the filter, follow the steps that you put in qvw.