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

Calendar - fromDate and toDate

Hi,

My calendar script is loading fine but the table not reflecting any changes. Below the code i am using

Calendar:

load Distinct

"sDate",

  Year("sShipment Date") As PostingYear,

  Month("sShipment Date") As PostingMonth,

  Week("sShipment Date") As PostingWeekOnly,

  WeekDay("sShipment Date") As PostingWeekDay,

  Day("sShipment Date") As PostingDay,

  'Q' & Ceil(Month("sShipment Date")/3) As PostingQuarter

resident myTable;

Temp:

Load

  min("sDate") as minDate,

max("sDate") as maxDate

Resident Calendar;

Let varMinDate = Num(Peek('minDate', 0, 'Temp'));

Let varMaxDate = Num(Peek('maxDate', 0, 'Temp'));

I create calendar object but when I pick the date I don't see change in my straight table.

Capture.PNG

I want when change start and end date to get result in my table between start and end date. Does anyone have an idea?

1 Solution

Accepted Solutions
Gysbert_Wassenaar

Perhaps this video tutorial helps: Selecting Arbitrary Date Ranges


talk is cheap, supply exceeds demand

View solution in original post

4 Replies
settu_periasamy
Master III
Master III

Where do you want to get the result of between the dates? if you are using variable for the calendar object, you need put the variable inside of the Expression (I guess you are using Straight or Pivot chart). like

=sum({<sDate={">=$(varMinDate)<=$(varMaxDate)"}>}Sales)

inescastelhano
Partner - Creator II
Partner - Creator II

Can you post the expression of your straight table?

Gysbert_Wassenaar

Perhaps this video tutorial helps: Selecting Arbitrary Date Ranges


talk is cheap, supply exceeds demand
Not applicable
Author

Thanks Gysbert, that's it...