Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
davyqliks
Specialist
Specialist

Button to show data older than 3 months

Hi all, 

I have a field [Last Order Date] which is a date field i have split into Month, Year and MonthYear.

I am looking to make a button to show data which is  older than [Last Order Date] + 3 months

Maybe to select the last 3 months and select the excluded?

Or, an expression to show data older than 3 months for highlighting stock.

I have tried to make a variable and then apply that to a button but could not work out the syntax for Month -3

 

Thank you in advance if you are able to assist with this.

Daniel

Labels (3)
1 Solution

Accepted Solutions
Taoufiq_Zarra

have you tested addmonths funtion

for example :

=Date(addmonths(Date(Max([Last Order Date])),3))

Max is just an example.

 

you can share a sample data and the expected output

 

 

Regards,
Taoufiq ZARRA

"Please LIKE posts and "Accept as Solution" if the provided solution is helpful "

(you can mark up to 3 "solutions") 😉

View solution in original post

1 Reply
Taoufiq_Zarra

have you tested addmonths funtion

for example :

=Date(addmonths(Date(Max([Last Order Date])),3))

Max is just an example.

 

you can share a sample data and the expected output

 

 

Regards,
Taoufiq ZARRA

"Please LIKE posts and "Accept as Solution" if the provided solution is helpful "

(you can mark up to 3 "solutions") 😉