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

Announcements
Independent validation for trusted, AI-ready data integration. See why IDC named Qlik a Leader: Read the Excerpt!
cancel
Showing results for 
Search instead for 
Did you mean: 
nareshthavidishetty
Creator III
Creator III

Week object

Hi am having week object as below'

Untitled.png

But i need to show week1,week2,week3,week4,week5 ,if i click on week1 it reflects the calender

1 Solution

Accepted Solutions
jagan
Partner - Champion III
Partner - Champion III

Hi,

Try like this

Data:

LOAD

*,

Month(Date) AS Month,

'Week' & Ceil(Day(Date)/7) AS WeekInMonth

From DataSource;

Hope this helps you.

Regards,

Jagan.

View solution in original post

6 Replies
tamilarasu
Champion
Champion

Go to listbox property and type expression as

='Week' & YourFieldName

Capture.PNG

MayilVahanan

HI

Try like this

In Script,

'week' & Week(DateFieldName) as Week

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
nareshthavidishetty
Creator III
Creator III
Author

Thanks! The o/p is as below after using the logic suggested by you

Untitled.png

But its not the requirement i have only five weeks as week1,week2,week3,week4,week5 suppose if the user make moth selection with in the month usere wants to know third week sales means week3 sales

jagan
Partner - Champion III
Partner - Champion III

Hi,

Try like this

Data:

LOAD

*,

Month(Date) AS Month,

'Week' & Ceil(Day(Date)/7) AS WeekInMonth

From DataSource;

Hope this helps you.

Regards,

Jagan.

MayilVahanan

Hi

Are you looking something like this

'Week' & Ceil(Day(DateID) /7) AS Week

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
nareshthavidishetty
Creator III
Creator III
Author

Hi Jagan,

After using the below logic,

'Week' & Ceil(Day(Date)/7) AS WeekInMonth


am getting result as

Untitled.png


which is not correct if we check with January-16 calender ,week1 having only 1 & 2 but here it shows 1 to 7 .please help me to get this.


Thanks..