Skip to main content
Announcements
Live today at 11 AM ET. Get your questions about Qlik Connect answered, or just listen in. SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
mparker123
Creator
Creator

Creating a Week Field

Hello All,

I am wondering how I create a week field in QlikView. I have a Month, Year, and Day field currently; along with a start date and due date field which pertains to projects (prob wouldn't use those to create weeks). Based on those fields how would I create a Date field using those. If anyone as some insight on this I would appreciate it.

Thanks.

1 Solution

Accepted Solutions
its_anandrjs

May be you can go with

Load

Week(Makedate(Year, Month, Day) ) as Week

From Source...


and or calculated dimension if you have Year, Month, Day


=Week(Makedate(Year, Month, Day) )

View solution in original post

5 Replies
its_anandrjs

How you get Month, Year, and Day fields let me know.

swuehl
MVP
MVP

Makedate(Year, Month, Day) as DateField

?

Then use

Week( DateField)

its_anandrjs

May be you can go with

Load

Week(Makedate(Year, Month, Day) ) as Week

From Source...


and or calculated dimension if you have Year, Month, Day


=Week(Makedate(Year, Month, Day) )

mparker123
Creator
Creator
Author

The Month, Day, and Year fields comes from an MPWR file (time tracking system).

mparker123
Creator
Creator
Author

I don't mind creating a field in the script using nothing but the script to create it. Meaning not using any fields already and creating a whole new field called Week.