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: 
ganeshreddy
Creator III
Creator III

Set Analysis Expression Check ?

Hi All,

I want to fetch data between dates by using set analysis and variables. i am not getting desired results. Can any one help me on this.

Please find attached QVW

Cheers,

Ganesh

1 Solution

Accepted Solutions
robert_mika
Master III
Master III

Change your variable to

=Min([SalesDate])

and

=Max([SalesDate])

expression

=Sum({$<SalesDate={">=$(vFromDate)<=$(vToDate)"}>}Value)

You will be able to manipulate your Chart thru Listbox

View solution in original post

4 Replies
morganaaron
Specialist
Specialist

I didn't change the let expressions on your main tab, but there's a disconnect between what you're passing to the variables and what you're trying to do.

You're passing a date variable to your "from" and "to" fields, but only taking the day - then you're trying to create a date from this day? Doesn't make any sense. I changed your variable values to simply be two dates from your list and simplified your set expression to look between those set values.

Have a think about how you want to set your max and min values, as this is what's causing your issues.

robert_mika
Master III
Master III

Change your variable to

=Min([SalesDate])

and

=Max([SalesDate])

expression

=Sum({$<SalesDate={">=$(vFromDate)<=$(vToDate)"}>}Value)

You will be able to manipulate your Chart thru Listbox

ganeshreddy
Creator III
Creator III
Author

Thank you Rob and Aron,

What if, i want to change Min and Max dates on the fly. Is there any other solution for this.

Cheers,

Ganesh

robert_mika
Master III
Master III

Try Inputt Box or Calendar13-Apr-15 10-33-42 AM.jpg