Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Calculate vales in a date range


How can we show values for a date range,

My date range here is 2 weeks  alternate Wednesday(07-09-2014, 07-23-2014), and I need to count number of documents submitted in that date range.

Output:

Project NamePrjt ManagerDates : 7/23/2014- 7/10/20147/9/2014-6/26/20146/25/2014-6/12/20146/11/2014-5/28/2014
Prj 1Sam5321
Prj 2Pam1212
Prj 3Dan2453
Prj 4Don1045

Script

Calendar:

Load

Calendar_Dt;

  SQL Select Calendar_Dt,

Case When abs( year_week/2)<>floor( year_week/2) and DAY_ABBREVIATION='WED'
Then 1
ELSE 0
END as Flag
from DMN_CALENDAR
where CALENDAR_DT>=Sysdate - 365 and CALENDAR_DT<=Sysdate
and DAY_ABBREVIATION='WED' ;

Portfolio:

Load

Modified_Date as Calendar_Dt,

Project Name,

Prjt Manager,

Path

From

Portfolio.xlsx;

0 Replies