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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
risabhroy_03
Partner - Creator II
Partner - Creator II

Set Analysis

I am using the below expression 

Sum({<[Source]={'Stage 2'},[As on Date]={[Final ASDT]}>}[Weight])

But my sum is coming as 0.

I guess there is some error while equating [As on Date]={[Final ASDT]}

For both the date fields I have used floor num and both are in the same format.

 

1 Solution

Accepted Solutions
MayilVahanan

Hi


If you want to include the possible values in "Final ASDT", then try like below

Sum({<[Source]={'Stage 2'},[As on Date]=p([Final ASDT])>}[Weight])

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.

View solution in original post

4 Replies
AshutoshBhumkar
Partner - Specialist
Partner - Specialist

Hello,

You will need to use aggregation function in the set

E.g 

Sum({<[Source]={'Stage 2'},[As on Date]={"$(=Max([Final ASDT]))"}>}[Weight])

 

What are you expecting with  [As on Date]={[Final ASDT]} ??

MayilVahanan

Hi


If you want to include the possible values in "Final ASDT", then try like below

Sum({<[Source]={'Stage 2'},[As on Date]=p([Final ASDT])>}[Weight])

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
risabhroy_03
Partner - Creator II
Partner - Creator II
Author

As of now my [Final ASDT] has only a single date present,

but next year one more date will be added to it, so will it automatically consider both the values of [Final ASDT]?

MayilVahanan

Yes, it will consider both the values.

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.