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

count based on latest date

Hello guys , 

i need to make a count ID and by status based on  Max date 

Also how i get the status for the latest date 
Maxdate is expression i wrote :  =aggr( max(UDATED),OBJNR)  .  how to put that count in charts 

Zahmed14_0-1610821496814.png

 

Labels (2)
12 Replies
Ksrinivasan
Specialist
Specialist

 

hi,

below my dummy data from your table:

Ksrinivasan_4-1610881853813.png

 whether my Table and charts were met your requirement?

if, yes, please just follow my variable, DIM and Expressions.

 

ksrinivasan.

 

Ksrinivasan
Specialist
Specialist

hi,

sry

Now i have corrected my Dummy Data,

Ksrinivasan_0-1610892114631.png

find the Latest Status for every ID as below in table:

Ksrinivasan_1-1610892253130.png

which is having status in fifth column that is the latest ID and Status.

and you will get it by resident table from script itself.

revert as soon.

ksrinivasan.

 

Zahmed14
Contributor III
Contributor III
Author

I appology if i was not clear ,  the below  is  latest status for every ID here is example 

Zahmed14_1-1610910678717.png

i wrote the latest status exp as follow

latest status=If(aggr(nodistinct max({<Date_New={ "<=$(v_MAX)"} >}Date_New),OBJNR) = Date_New, TXT30)

Thanks KSRINIVASAN but if you Please advise if i can make add another condition on the latest status to get a specific status like active for example how can i add this in my function