Qlik Community

Qlik Sense App Development

Discussion board where members can learn more about Qlik Sense App Development and Usage.

gauravgg
New Contributor III

FY Calendar , how to get Week 1,2,3,4.. in every month?

Hi all

I have a FY Calendar , in which i have create following field

if(

     Weekstart(Date,0,0)=weekstart(yearstart(Date,1,4),0,0),

     1,

     Div(Date-YearStart(Date,0,4) + WeekDay(YearStart(Date,0,4),0) +7,7)

)  as FiscalWeek

which gives me FY week  like 1,2,3,4,5,.......53

But my requirement is for every month their should be W1,W2,W3,W4 ,W5 for every month .

can anyone help me in this

Thanks in advance

4 Replies
pradosh_thakur
Honored Contributor II

Re: FY Calendar , how to get Week 1,2,3,4.. in every month?

'W'&Ceil(Day(Date)/7) as  MonthlyWeek

or

try replacing yearstart with monthstart

Learning never stops.
gauravgg
New Contributor III

Re: FY Calendar , how to get Week 1,2,3,4.. in every month?

Hi pradosh , thanks for reply .

But it is not working 

pradosh_thakur
Honored Contributor II

Re: FY Calendar , how to get Week 1,2,3,4.. in every month?

'W'&Ceil(Day(Date)/7) as  MonthlyWeek working perfectly fine for me .. what format is [Date] Field in?

Learning never stops.
Khan_Mohammed
Honored Contributor II

Re: FY Calendar , how to get Week 1,2,3,4.. in every month?

'W' & Week(Date)    as WeekNumber,

That should give you w1,w2,w3 etc

Untitled.png

Community Browser