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

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
User12321
Contributor III
Contributor III

Fiscal week number as a date range

Hello,

I want to create a field in the load script that represents the fiscal week number as a date range using the minimum billing date for each week as the lower bound and maximum billing date for each week as the upper bound.

Any suggestion is greatly appreciated. Thanks.

Labels (1)
1 Solution

Accepted Solutions
MayilVahanan

HI 

If you select the Fiscalweek in front end, you will get the date range. 

Suppose, if you want in new field in script , try like below

 

Join(Calendartablename)

Load FiscalWeek, Date(Min(BillingDate))&'-'&Date(Max(BillingDate)) as NewFieldName resident calendartablename 

group by FiscalWeek;

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.

View solution in original post

1 Reply
MayilVahanan

HI 

If you select the Fiscalweek in front end, you will get the date range. 

Suppose, if you want in new field in script , try like below

 

Join(Calendartablename)

Load FiscalWeek, Date(Min(BillingDate))&'-'&Date(Max(BillingDate)) as NewFieldName resident calendartablename 

group by FiscalWeek;

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.