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: 
rajuamet
Partner - Creator III
Partner - Creator III

Find Max Date

Hi Techies,

I need to find max date where all dimensions are possible.

For Example:

I have A, B, C, D as Dimension

Max date of A, B, C is 9/7/2016

Max date of D is 9/8/2016

So here 9/7/2016 is the max date where all dimensions are possible.

How to get this in expression. No backend scripting. PFA.

Labels (1)
1 Solution

Accepted Solutions
effinty2112
Master
Master

Hi Rangaraju,

Try:

=Max(Aggr(if(Concat(Distinct Dimension) = 'ABCD',Date),Date))

Cheers

Andrew

View solution in original post

7 Replies
Anil_Babu_Samineni
MVP
MVP

I didn't find your E dimension value?

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
effinty2112
Master
Master

Hi Rangaraju,

Try:

=Max(Aggr(if(Concat(Distinct Dimension) = 'ABCD',Date),Date))

Cheers

Andrew

Not applicable

You forgot a convert number to a date.

Correct formula is:

=Date(Max(Aggr(if(Concat(Distinct Dimension) = 'ABCD',Date),Date)))

BR,

Bartek

rajuamet
Partner - Creator III
Partner - Creator III
Author

Hi Anil Babu,

Updated my content again, thanks.

sunny_talwar
MVP
MVP

Set analysis alternative

=Date(Max({<Date = {"=Concat(DISTINCT Dimension) = 'ABCD' "}>}Date))

rajuamet
Partner - Creator III
Partner - Creator III
Author

Awesome Sunny,

So it is like , the set analysis considers only the value in the Date field which is true for the condition "=concat(DISTINCT Dimension)='ABCD'" and fetches the max value from that. Nice

sunny_talwar
MVP
MVP

Absolutely. The search string is evaluated as a true or falls for each Dimension (Date in your case) and the max will be found from those rows which meets the set analysis criteria.