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: 
rahulsingh12
Contributor III
Contributor III

Set Analysis Issue

Hi,

I have written the following code which works fine

sum({<DateNew={"=$(=vL3MMax)"}>}[Volume(HL)]) gives 123

But as soon as I want the sum for the datenew greater than vL3MMax then It gives 0.

vL3MMax=AddYears(MAX(DateNew),-1) gives 0


sum({<DateNew={">=$(=vL3MMax)"}>}[Volume(HL)])


what is that I am doing wrong.


Regards

Rahul

Labels (1)
4 Replies
Anil_Babu_Samineni
MVP
MVP

May be this?

sum({<DateNew={">=$(=$(vL3MMax))"}>}[Volume(HL)])


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
sunny_talwar
MVP
MVP

The variable definition stayed the same between the 2 tests? the only thing that changed was the addition of >=? or did you change the variable definition also?

rahulsingh12
Contributor III
Contributor III
Author

The variable definition remained the same Sunny.

Regards,

Rahul

tresB
Champion III
Champion III

Could you share a representative sample qvw to investigate?