Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
kkkumar82
Specialist III
Specialist III

Week Numbers for dates

HI all,

Consider I have this following code in the edit script.

Let vDay = Num(today());

LOAD

RowNo() as Sno,

Date($(vDay) -RowNo() +1 ) as Day,

num(Rand() * 1000, ' #,##0.00' ) as Amount

AutoGenerate 365;

What I want in this code is a week number for each date based on month and year

Like for example

Sno,Day,Amount, WeeknoMonthly, weeknumberyearly

125,24-03-2016, 205, 4,14

Hope I am clear.

Thanks

Kiran Kumar

10 Replies
Kushal_Chawda

for week number Yearly see the below

Redefining the Week Numbers

for week number monthly see the below

Monthly week number !