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: 
shanemichelon
Partner - Creator II
Partner - Creator II

Set Modifier not working field1=field2

Hi everyone. I have a set modifier that is very simple but doesn't seem to work.  Here is my test load script:

load * inline [
Date, DateLY, Amount
1/1/2021,1/1/2020,10
1/1/2020,1/1/2019,9
];

And my Set expression: Sum({$<Date=DateLY>} Amount)

It is giving zero for all dates in a simple table with a dimension of Date and the measure.

shanemichelon_0-1619050820509.png

 

 

I'm not sure what I am doing wrong.

 

Labels (1)
1 Solution

Accepted Solutions
Saravanan_Desingh
MVP
MVP

Try this,

Sum({<Date=p(DateLY)>}Amount)

commQV61.PNG

View solution in original post

2 Replies
Saravanan_Desingh
MVP
MVP

Try this,

Sum({<Date=p(DateLY)>}Amount)

commQV61.PNG

shanemichelon
Partner - Creator II
Partner - Creator II
Author

Thanks.  That does seem to work.  I am curious as to why the documented option of just Field1=Field2 doesn't work?