Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
gidon500
Creator II
Creator II

max value in set analisys

Hi Guy 

I have an issue spent hours to solve could not do it 

Enclosed Qlik  Document.qvw
vMaxSunday is a date variable  - to set the report Date
in the table we have SOSSTAT for each code and a Date
I need to get the max date  SOSSTAT  in the object 
according to the date  set by the variable vMaxSunday
now i get last SOSSTAT set to each Code

How can I dot it
thanks
gidon

 

19 Replies
gidon500
Creator II
Creator II
Author

Hi Sunny 

it seems to work 

I will put it in my document and come back to you 

thank you very much 

gidon

 

sunny_talwar

Sure thing 🙂
gidon500
Creator II
Creator II
Author

Hi Sunny

enclosed is qvw file
your expression is working fine , it is located in column four
( i do not understand why i get ' error in expression ' )
it took this expression and put it in culumn Five
which is copy of column third but replace the Field SOSSTAT WITH
the expression in column four
it does not work

Can it Work ?
thanks you very much for your help
gidon

sunny_talwar

Let's take a step back and work our way through it. What exactly are you trying to do here?
gidon500
Creator II
Creator II
Author

Hi Sunny 

The purpose of the documents it count number of students (Codes)

at the given time ( the variable  vMaxsunday  )  

Count the students according to the latest  known SOSSTAT , Registered  is first , Accepeted  is second and Started third 

 SOSSTAT can be changed any day , So I need to know the Latest SOSSTAT according to the vMaxsunday 

in order to get the right number for the requested  vMaxsunday date .

I hope I  explained my needs .

thanks for your help 

gidon

 

 

sunny_talwar

This make sense, but what exactly are you trying to do with Third4 expression? You found the latest SOSSAT and not you want to count it against Code? What is the output you expect? Can you share this in an Excel file?
gidon500
Creator II
Creator II
Author

Hi

in the second and the third I am check for SOSSTAT 1 and 2 

the problem is that the SOSSTAT is not correct 

I need the SOSSTAT according to the value I get using the expression you gave me .

so what I did in third4 ,

I replaced the SOSSTAT with the expression  

gidon 

 

 

gidon500
Creator II
Creator II
Author

Hi Sunny 

It is very difficult to explain the needs 

was I clear  ? 

thanks

gidon

 

sunny_talwar

I understand that the requirement might not be very straight forward, but to make it simple... I suggest you to provide the expected output in an Excel file based on the data you have provided in Document2.qvw file. My guess is that you don't know the right expression, but you at least know what the right numbers need to look like, right? All I am looking for is the right number you want to see and if possible the logic behind one of those numbers.

gidon500
Creator II
Creator II
Author

Hi 

I will make an excel file and send it over 

thank you very much

gidon