Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Dollar sign Expansion with greater than or less than operator

Hi ,

I am new to qlikview and I am not too sure how to write set analysis statements. I have read the help file but I have still not understood how to do this.

The requirement is to get the total sales between two dates which are variables --> var_startdate and var_enddate

I tried writing something like this:

=

sum({<DateTime={">$(#var_startdate)<$(#var_enddate)"}>} Sales

)

But this does not work. Please help.

Regards

Raj



1 Solution

Accepted Solutions
Not applicable
Author

Try this:


=sum({<DateTime={">$(var_startdate) <$(var_enddate)"}>} Sales)


If that doesn't work try using either let or set in the script (whichever one you didn't use the first time).

View solution in original post

2 Replies
Not applicable
Author

Try this:


=sum({<DateTime={">$(var_startdate) <$(var_enddate)"}>} Sales)


If that doesn't work try using either let or set in the script (whichever one you didn't use the first time).

Not applicable
Author

Hi Trent,

That worked. thank you.

I do not know why the help file had the '#' symbol in the syntax...

Thanks

Raj