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: 
Not applicable

Set analysis

Hey,

I have the following formula which works like a charm:

=Count({<SALE_DATE_NEW={"$(vMaxDateNew)"}>}SALE_UNIQUEID)

However, I can't get Qlikview to count the sales before the MaxDate. I need this because I want to evaluate sales in a range between vMaxDateNew and vMinDateNew.

Somewhat like:

=Count({<{"$(vMinDateNew)<SALE_DATE_NEW<{"$(vMaxDateNew)"}>}SALE_UNIQUEID)

Please help, all the single and double quotes are starting to confuse me!

Kr,

Daniël

Labels (1)
3 Replies
swuehl
Champion III
Champion III

Try

=Count({< SALE_DATE_NEW = {">$(vMinDateNew)<$(vMaxDateNew)"}>} SALE_UNIQUEID)

kaushiknsolanki
MVP
MVP

Hi,

    Try this way

     =Count({<SALE_DATE_NEW= {"<=$(vMaxDateNew)>=$(vMinDateNew)"}>}SALE_UNIQUEID)

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
Not applicable
Author

Hey,

I tried your solutions, but they didn't work. (I tried similar options myself). Anyway, I now set the dates to integers (previously 'MM/DD/YYYY' and somehow that solved the issue.

Many thanks for your responses.