Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Save $600 on Qlik Connect registration! Sign up by Dec. 6 to get an extra $100 off with code CYBERSAVE: REGISTER
cancel
Showing results for 
Search instead for 
Did you mean: 
bobbydave
Creator III
Creator III

Fiscal Year and Fiscal Week converted to Fiscal Year Week

MapDateToFiscalWeek:

Mapping

LOAD Date,

    Date(Date#(Fiscal_Year & Fiscal_Week,'YYYYWW'),'YYYYWW') as YearWeek

FROM

[$(vQVDs)\T_Calendar_Test.qvd](qvd);

I understand now that YYYYWW is now Year & Weekday and not Week#.

Is there a way to convert Fiscal Year and Week to YYYYWW as in Week?         

3 Replies
sunny_talwar

How about this

Fiscal_Year*100 + Fiscal_Week as YearWeek

its_anandrjs

Try this

Left(Fiscal_Year,4) & Fiscal_Week as YearWeek

its_anandrjs

Or may be


Date(Date#(Left(Fiscal_Year,4),'YYYY'),'YYYY') & Fiscal_Week as YearWeek


Or


Year(Date#(Left(Fiscal_Year,4),'YYYY')) & Fiscal_Week as YearWeek