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: 
apthansh
Creator
Creator

Set Analysis

=count(if([Expiration Date Abbrev MDY] > today(),

        if([Expiration Date Abbrev MDY] < AddMonths(today(),2),[ID])))  

trying to put the above in set analysis as below but its not working...

=count({<

           [Expiration Date Abbrev MDY] = {"> Today()"},

            [Expiration Date Abbrev MDY]= {"< AddMonths(Today(),2)"}>}ID)

What am I doing worng ?also my [Expiration Date Abbrev MDY]  is in MM/DD/YY format.

Thanks much.

Labels (1)
1 Solution

Accepted Solutions
sunny_talwar
MVP
MVP

Try this Ansh

=Count({<[Expiration Date Abbrev MDY] = {"$(='>' & Date(Today(), 'MM/DD/YY') & '<' & Date(AddMonths(Today(), 2), 'MM/DD/YY'))"}>} ID)

View solution in original post

4 Replies
sunny_talwar
MVP
MVP

Try this Ansh

=Count({<[Expiration Date Abbrev MDY] = {"$(='>' & Date(Today(), 'MM/DD/YY') & '<' & Date(AddMonths(Today(), 2), 'MM/DD/YY'))"}>} ID)

Anonymous
Not applicable

Try this:

count({<

           [Expiration Date Abbrev MDY] = {"<$(=Date(AddMonths(Today(),2), 'MM/DD/YY'))",">$(=Date(Today(), 'MM/DD/YY'))"} >} ID)

Frank_Hartmann
Master II
Master II

try this:

count({<[Expiration Date Abbrev MDY]  = {">$(=Date(Today(),'MM/DD/YY'))<$(=Addmonth(Today(),2),'MM/DD/YY'))"}>} ID)

hope this helps

apthansh
Creator
Creator
Author

Thanks much.That worked.