Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
MK_QSL
MVP
MVP

Group by Week Number

I have below table…

LOAD

[Part Number],
[Qty Coming],
Date
FROM …file name…

I want this table to convert…

[Part Number] and [SUM OF QTY] per Week.

Week need to be displayed Dynamically based on Today().

Also, number of weeks are not fixed but it's starting from current week.


Sample file enclosed.....

Result table should be like below.


Part NumberWeekSum of Qty Coming
A37250
A38200
A39150
A40180
A4290
B38150
B4050
B42260
C37300
C38450
C39500
C40700
C42600
C43200
C44250
D40150
D42250
D43350
D44450


1 Solution

Accepted Solutions
Gysbert_Wassenaar

I don't understand what you mean with: Week need to be displayed Dynamically based on Today().

See attached qvw. The week numbers match the example result table you posted.

If you want different week numbers you could substract the week of today for example: week(Date) - week(today()). As I said it's not clear to me what you want with regards to the week numbers. So you'll have to figure that out yourself. The attached qvw should get you started.


talk is cheap, supply exceeds demand

View solution in original post

1 Reply
Gysbert_Wassenaar

I don't understand what you mean with: Week need to be displayed Dynamically based on Today().

See attached qvw. The week numbers match the example result table you posted.

If you want different week numbers you could substract the week of today for example: week(Date) - week(today()). As I said it's not clear to me what you want with regards to the week numbers. So you'll have to figure that out yourself. The attached qvw should get you started.


talk is cheap, supply exceeds demand