Skip to main content
Announcements
Introducing a new Enhanced File Management feature in Qlik Cloud! GET THE DETAILS!
cancel
Showing results for 
Search instead for 
Did you mean: 
suzel404
Creator
Creator

AddMonth Date

Hi all,

I want to calculate the number of store where the date is up to 4 months.

Identify the store with the date >= to  4 months.

example : the store 4171152 with the date 24/12/2015 is the date up to 4 months.

Thank for your help.

1 Solution

Accepted Solutions
swuehl
MVP
MVP

What about:

=Count(DISTINCT If(DATE <= AddMonths(Today(),-vDate),STORE_ID))

View solution in original post

2 Replies
swuehl
MVP
MVP

What about:

=Count(DISTINCT If(DATE <= AddMonths(Today(),-vDate),STORE_ID))

suzel404
Creator
Creator
Author

Thank you swuehl.

I ittle modify the calculation to Count(DISTINCT {<DATE={"<=$(=AddMonths(Today(),-vDate))"}>}STORE_ID)