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

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
SaggiNeha
Contributor
Contributor

Set Analysis

Hi All,

I have requirement of selecting max Date by default, else it should take selected date.

I am using below expression, right now it is giving values as per selection but bydefault it is taking sum of all dates.

Please help.

Sum(${<[COB Date]*={"$(=max([COB Date]))"}>}Amount)

Labels (1)
1 Solution

Accepted Solutions
Taoufiq_Zarra

@SaggiNehawhy we use *= ? do you need any intersection ?

if not you can use this:

Sum({$<[COB Date] = {"$(=Date(Max([COB Date]), 'MM/DD/YYYY'))"}>} Amount)

change 'MM/DD/YYYY' by your defaut date format

Regards,
Taoufiq ZARRA

"Please LIKE posts and "Accept as Solution" if the provided solution is helpful "

(you can mark up to 3 "solutions") 😉

View solution in original post

1 Reply
Taoufiq_Zarra

@SaggiNehawhy we use *= ? do you need any intersection ?

if not you can use this:

Sum({$<[COB Date] = {"$(=Date(Max([COB Date]), 'MM/DD/YYYY'))"}>} Amount)

change 'MM/DD/YYYY' by your defaut date format

Regards,
Taoufiq ZARRA

"Please LIKE posts and "Accept as Solution" if the provided solution is helpful "

(you can mark up to 3 "solutions") 😉