Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
maniram23
Creator II
Creator II

Date function help

Hi,

   i have one date field in my data.and some id,sales of data is there.

here if i select any date it has to go 7 days back for example

if i select 07/01/2005 it has to show 01/01/2015

same way if i select 01/01/2015 it has to show 25/12/2014 of data.

i have some ideas but those ideas are not giving proper result.

any ideas.

thanks in advance

1 Solution

Accepted Solutions
sunny_talwar

May be this within your set analysis statement:

{<Date = {"$(=Date(Max(Date) - 7, 'YourDateFieldFormat'))"}>}

View solution in original post

4 Replies
sunny_talwar

Where does it need to go back 7 days? In a chart? In a text box object? In script? Please provide more details for a better response.

Thanks,

Sunny

maniram23
Creator II
Creator II
Author

Hi it has to show in chart.

sunny_talwar

May be this within your set analysis statement:

{<Date = {"$(=Date(Max(Date) - 7, 'YourDateFieldFormat'))"}>}

Not applicable

Hi Mani,

Ya The above one will give the result

{<Date = {"$(=Date(Max(Date) - 7, 'YourDateFieldFormat'))"}>}