Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
gkcchowdary
Creator
Creator

how to calculate the week?

Hi,

I have date filed and i am writing week(mydatefield).so i am getting the complete weeks entire year.

1233456789.....

my requirement is when i select feb i want show only fed weeks like1,2,3,4 weeks .

if i select jun again show only jun weeks starting 1,2,3, 4 like that.how to achieve this.

Thanks

chaitu

2 Replies
swuehl
MVP
MVP

In your master calendar, you can create the month based week counter like

LOAD

     Date,

     Week(Date) as Week,

     Autonumber( Week(Date), MonthName(Date) ) as WeekInMonth,

     Month(Date) as Month,

     MonthName(Date) as MonthName,

     ...

uacg0009
Partner - Specialist
Partner - Specialist

Hi krishna,

I have a question, if you select feb and jun at the same time, then what do you want to show?

Thanks.

Aiolos