Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
akuttler
Creator
Creator

Week Dimension Start and End Date

Hello,

Can I create a custom dimension that is the Week(Date) Displayed as the start and end date?

For example if week(Date) =  2

It would be displayed as '01/07/2018 - 01/13/2018'

Thanks.

1 Solution

Accepted Solutions
Digvijay_Singh

I think you can use Dual for that, something like this -

Dual(Weekstart(Date)&'-'&Weekend(Date),week(Date))

View solution in original post

6 Replies
Digvijay_Singh

I think you can use Dual for that, something like this -

Dual(Weekstart(Date)&'-'&Weekend(Date),week(Date))

yujiyamane
Creator II
Creator II

Try below in your load script.

TEXT(Date(Floor(WeekStart(***Date field***))))& ' - ' & TEXT(Date(Floor(WeekEnd(***Date field***)))) as WeekStartEnding,

Capture.PNG

pablolabbe
Luminary Alumni
Luminary Alumni

When applicable please mark the appropriate replies as CORRECT. This will help community members and Qlik Employees know which discussions have already been addressed and have a possible known solution. Please mark threads as HELPFUL if the provided solution is helpful to the problem, but does not necessarily solve the indicated problem. You can mark multiple threads as HELPFUL if you feel additional info is useful to others

akuttler
Creator
Creator
Author

Thank you this is what I was looking for,  just one field so I don't have to also specify the week #.

akuttler
Creator
Creator
Author

Capture.PNG

mahaveerbiraj
Creator II
Creator II

Hi Digvijay ,
Why you using Dual () function