Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Date

How do I get last 10 days dates in the list box or a straight table chart.

Please help.

Thanks

3 Replies
Not applicable
Author

hi,

Take a List box

put expression as: ValueLoop(Today()-9,Today())

go to Number tab and change the format to Date

you will get the last 10 days from current date.

Not applicable
Author

Hi,

You can use this script.

LET varMinDate = Num(Today()-9);

LET varMaxDate = num(today());

Calendar:

Load

    $(varMinDate)+IterNo()-1 AS Num,

    Date($(varMinDate)+IterNo()-1) AS Date

AUTOGENERATE 1 WHILE $(varMinDate)+IterNo()-1<= $(varMaxDate);

Regards,

Kush

v_iyyappan
Specialist
Specialist

Hi,

     I attached a sample QV application.

Hope its helpful for u..

Thanks,

Iyyappan