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: 
santhosh_k_n
Creator II
Creator II

Backdate search

Hi All,

I am having data as follows,

DIm1Dim2ProductDateMeasure2Measure3Measure4Measure5Measure6
D1C1p101/11/14100353025110
D1C1p201/11/14150253025150
D1C1p101/12/141102500135
D1C1p101/13/141351003090145
D1C1p101/17/14145502465130
D1C1p101/18/141300100130
D1C1p101/19/1413032445117
D1C1p301/19/1415032445137
D1C1p101/20/14117150050217
D1C1p301/20/141370030107
D1C1p101/21/142172004355362
D1C1p101/29/14362010100262
D1C1p101/30/14262908045307
D1C1p101/31/14307506044313
D1C1p102/01/1431340067286
D1C1p102/02/1428630023293

in the above data I am apply date filter on a default calender filter which has a link with Date.

My results for different from and to date selections should be as follows,

1. From date 01/01/2014 to 30/01/2014
DIm1Dim2ProductMeasere2Measure3Measure4Measure5Measure6








2. From date 11/01/2014 to 30/01/2014
DIm1Dim2ProductMeasere2Measure3Measure4Measure5Measure6
D1C1p1100682231475307
D1C1p2150253025150
3. from date: 15/Nov/2014 to 25/Nov/2014
DIm1Dim2ProductMeasere2Measure3Measure4Measure5Measure6
D1C1p114543281215362
D1C1p2150253025150
4. from date: 21/Nov/2014 to 25/Nov/2014
DIm1Dim2ProductMeasere2Measure3Measure4Measure5Measure6
D1C1p12172004355362
D1C1p2150253025150
D1C1p3107000107

Hear measuer2 data should be equal to the Measure2 data if available on From data, Else measure2 is equal to Measure6 for previous transaction date less than From date.

Please guide me.

2 Replies
amit_saini
Master III
Master III

Hi,

You can create a two variables Say

vStart: =DATE(num(today())-1 + num('06:00:00'),'DD.MM.YYYY hh:mm:ss')

vEnd:=DATE(num(today()) + num('05:59:59'),'DD.MM.YYYY hh:mm:ss')

and assign these two variables to button , similarly you can create different buttons for  you date filters.

Wish you a very happy new year

Thanks,

AS

santhosh_k_n
Creator II
Creator II
Author

Thanks Amit and wish you a happy new year too,

The date selections are not static so that It can be assigned to any variable and get handled.