Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
kamalqlik
Partner - Specialist
Partner - Specialist

Calendar Issue

Hi I want the Week in the format as given below.

ie...Week will depend on Thrusday ie if Thrusday is on 7/31/2014 than the week will lie in the same month as on july.

In case it is on 9/4/2014 than it will lie in sep and the week will also lie in sep.

DateDayDefined WeekCalculated WeekWeek will exist
  in Month

     (Based on Thursday)
7/27/2014Sunday20140730201430Jul-14
7/28/2014Monday20140730201430Jul-14
7/29/2014Tuesday20140730201430Jul-14
7/30/2014Wednesday20140730201430Jul-14
7/31/2014Thursday20140730201430Jul-14
8/1/2014Friday20140830201430Jul-14
8/2/2014Saturday20140830201430Jul-14
8/31/2014Sunday2014083520143514-Sep
9/1/2014Monday2014093520143514-Sep
9/2/2014Tuesday2014093520143514-Sep
9/3/2014Wednesday2014093520143514-Sep
9/4/2014Thursday2014093520143514-Sep
9/5/2014Friday2014093520143514-Sep
9/6/2014Saturday20140935201435

14-Sep

Regards

Kamal

1 Solution

Accepted Solutions
qlikpahadi07
Specialist
Specialist

Dear Kamal,

let me know if this is helpful

cheers !!!

View solution in original post

4 Replies
MK_QSL
MVP
MVP

kamalqlik
Partner - Specialist
Partner - Specialist
Author

Hi Manish,

That will be the solution for weekstart.

My question is on Thrusday when it appear at last.

Than that week will be considered with thrusday.Otherwise it will be same

qlikpahadi07
Specialist
Specialist

Dear Kamal,

pardon me I am not getting the issue correctly but it seems you need some RND across Calendar,

well I can suggest you to create a Inline table with Date and NEW_Month mapped with Date field with your database. Manually you can change numbers as desired with your logic mentioned above ("Week will exist in Month" based on Thursday)

and  NEW_Month column will be your output.

as laymen just create a INLINE Master calendar as per your desired output for 10 Years and use it with your Data Model.

Cheers!!!

might be helpful

qlikpahadi07
Specialist
Specialist

Dear Kamal,

let me know if this is helpful

cheers !!!