Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
ALERT: QlikView server communication interruptions following Microsoft Windows Domain Controller security updates
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Label for week

Hi guys,

How can I change Number of week for label of this week.

For example:

2012/35     to       21 Oct 2012 - 27 Oct 2012.

Tahnks,

Labels (1)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

I got like it

WeekStart(date(submitDateTime))& '-'  &WeekEnd(date(submitDateTime)) as AAA

View solution in original post

13 Replies
swuehl
Champion III
Champion III

If you have used weekname() function to create your week numbers, you've got a dual with a numeric value representing start of that week. You can then try:

=Date(WeekNrField, 'DD MMM YYYY') & ' - ' & Date(weekend(WeekNrField), 'DD MMM YYYY')

Regards,

Stefan

Clever_Anjos
Support
Support

=WeekStart(Today()) &'-'& date(WeekStart(Today()) +7)

Anonymous
Not applicable
Author

I got like it

WeekStart(date(submitDateTime))& '-'  &WeekEnd(date(submitDateTime)) as AAA

Anonymous
Not applicable
Author

I need to use this variable in charts.

I can't sort it.

Do you have any ideas?

Anonymous
Not applicable
Author

I think I got it.

Sort by load order

Clever_Anjos
Support
Support

Use "dual" function

dual(WeekStart(date(submitDateTime))& '-'  &WeekEnd(date(submitDateTime),WeekStart(date(submitDateTime))) as AAA

Anonymous
Not applicable
Author

Hello,

could you help me to create expression with dual?

Thanks,

Clever_Anjos
Support
Support

Into your script maybe you are loading something like this:

LOAD

submitDateTime,

anotherfield,

anotherfiel2

from yourtable.qvd(qvd);

Use a command like this

LOAD

submitDateTime,

dual(

          WeekStart(submitDateTime)& '-'  &WeekEnd(submitDateTime),

          WeekStart(submitDateTime)

) as my_new_field,

anotherfield,

anotherfiel2

from yourtable.qvd(qvd);

Anonymous
Not applicable
Author

Thank you,

I got it.

I put ) not in right place.