Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
ravindraa
Creator
Creator

set analysis yearweek is not working properly

Hi all,

i have one requirment that we need to display the sales QTY by yearweek wise.

my YEAR WEEK field existed like below.

YEAR WEEK   salesqty

2014-01               10

2014-02               20

2014-04               30

2014-11               40

2014-17               50

2014-21               60

my requiermentt is  we need to display the sales qty data greter than 2014-11(yearweek).

i have wrote one expresion but is doesn't display any value please give me any suggesion.

my expression1::: sum({<yearweek={'>2014--11'}>}salesqty).

1 Solution

Accepted Solutions
aveeeeeee7en
Specialist III
Specialist III

Hi

First Make YEARNUM field as Number in the Backend Script.

Like this

Load *, replace(YEARWEEK,'-','') AS YEARWEEKNUM INLINE [

YEARWEEK, salesqty

2014-01, 10

2014-02, 20

2014-04, 30

2014-11, 40

2014-17, 50

2014-21, 60

];

Than Use it in the Expression. See this:

SUM({<YEARWEEKNUM = {"=YEARWEEKNUM>201411"}  >} salesqty)

Also, See the Attachment.

Regards

Aviral Nag

View solution in original post

4 Replies
PrashantSangle

Hi,

I am Considering YearWeek  as your dimension.

Then instead of trying set analysis,

You can try in dimension only

Write in dimension

=if([YEAR WEEK]>'2014-11',[YEAR WEEK])

and also check supress when value is null in dimension tab.

Regards,

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
aveeeeeee7en
Specialist III
Specialist III

Hi

First Make YEARNUM field as Number in the Backend Script.

Like this

Load *, replace(YEARWEEK,'-','') AS YEARWEEKNUM INLINE [

YEARWEEK, salesqty

2014-01, 10

2014-02, 20

2014-04, 30

2014-11, 40

2014-17, 50

2014-21, 60

];

Than Use it in the Expression. See this:

SUM({<YEARWEEKNUM = {"=YEARWEEKNUM>201411"}  >} salesqty)

Also, See the Attachment.

Regards

Aviral Nag

ravindraa
Creator
Creator
Author

Hi Nag Avirl

thank you very much for reply and given the correct answer.

if any chance to get the answer without change the yearweek as number field, lf you have suggestion please give me.

any way i am getting values.

thank you very much,

ravindraa
Creator
Creator
Author

Hi Maxdreamer

thank you very much for reply and given the correct answer.