Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
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)