Qlik Community

New to Qlik Sense

Discussion board where members can get started with Qlik Sense.

akuttler
Contributor

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
Honored Contributor III

Re: Week Dimension Start and End Date

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

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

5 Replies
Digvijay_Singh
Honored Contributor III

Re: Week Dimension Start and End Date

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

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

yujiyamane
Contributor II

Re: Week Dimension Start and End Date

Try below in your load script.

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

Capture.PNG

Luminary
Luminary

Re: Week Dimension Start and End Date

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
Contributor

Re: Week Dimension Start and End Date

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

akuttler
Contributor

Re: Week Dimension Start and End Date

Capture.PNG

Community Browser