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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

If condition

I have Date field in the table

I did some calculation like weekstart(Date) as call_week

now I need to show ' W1' in the place of 1-oct-2015  next 'W2' in the place of 14-oct-2015

Labels (1)
2 Replies
swuehl
Champion III
Champion III

Maybe like

....

NewTable:

LOAD *,

          'W' & Autonumber(call_week,'WeekNum') as WeekNum

RESIDENT YourTable

ORDER BY call_week ASC;

DROP TABLE YourTable;

prashantbaste
Partner - Creator II
Partner - Creator II

Hi Naveen,

You can try 'Ceil (datefieldname / 7)' as Weeknumber and use this 'Weeknumber' field in your charts.

Hope this will be helpful.