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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
ajsjoshua
Specialist
Specialist

Week Comparison Problem

Hi all,

I want to compare the orders for all weeks

I have two years of data 2015 and 2016

i am unable to compare 52 week of 2015 and 8 week of 2016.

i am using this expression

=sum({<Year_UP = {$(=Max(Year_UP))},Week_UP = { $(=Max(Week_UP)-8) },Week = {"=$(=Max(Week_UP))"},Year=,Month=,Quarter=>}Orders)

Regards,

Joshua.

28 Replies
MK_QSL
MVP
MVP

FYI

ajsjoshua
Specialist
Specialist
Author

Hi mrkachhiaimp

Bro i am using personal edition .

MK_QSL
MVP
MVP

Are your week selection is Week_UP or Week?

I mean when you are saying that you have selected week 20... that is Week_UP 20 or Week 20?

ajsjoshua
Specialist
Specialist
Author

Hi Manish,

Week_Up=20

MK_QSL
MVP
MVP

It's too much confusing... better if you provide an excel file with the selection and output you require with better explanation.

ajsjoshua
Specialist
Specialist
Author

Hi Manish,

I will prepare the excel bro wait.

ajsjoshua
Specialist
Specialist
Author

Hi Manish,

PFA

Every Week_Up has 12 forecasted week,Now I want to find the orders for week_up=1 year=2016 which has been forecasted on week_up=46 ,year=2015 ,

the answer is 33

MK_QSL
MVP
MVP

Every Week_Up has 12 forecasted week,Now I want to find the orders for week_up=1 year=2016 which has been forecasted on week_up=46 ,year=2015 ,the answer is 33

Not understood this sentence..

I understood that for every Week_Up you have 12 forecast week.

But not understood

I want to find the orders for week_up=1 year=2016 which has been forecasted on week_up=46 ,year=2015 ,the answer is 33

ajsjoshua
Specialist
Specialist
Author

Hi Manish,

Week_Up is my calendar,

when user selects week_up=1 and year=2016

then i want to show the orders for forecastweek=1 which has been forecasted 8 weeks  before i.e  in week_Up=46 and Year-2015.

 

4646201554
4647201554
4648201554
4649201554
4650201554
4651201554
4652201554
4653201554
461201633
462201633
463201633
464201633

when user selects week_up=1 and year=2016

The output should be 33.



MK_QSL
MVP
MVP

When user select Week_Up = 1 and Year = 2016, you have below data..

    

Week_UpForcastweekYearorders
11201684
12201619
13201619
14201619
15201619
16201619
17201619
18201619
19201619
110201619
111201619
112201619