Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
qlikmpate0
Creator II
Creator II

Set Analysis help


I'm trying to use set analysis to find the shipped qty sold within a time frame(ie Current period) I have the following statement, but I'm not getting any results. Can any one help? :-

({<[Current Period] = {'>=$(=Date([Calendar.START_DATE]))<=$(=Date(Calendar.END_DATE]))'} >} SHIPPED_QTY)

My inline table looks something like this, I have loaded the data to include the month and week no the data falls in

data table.PNG.png

7 Replies
Not applicable

try:


sum({<[Current Period] = {">=$(=Date([Calendar.START_DATE]))<=$(=Date(Calendar.END_DATE]))"} >} SHIPPED_QTY)

tresesco
MVP
MVP

I guess [Current Period] and other dates field data formats are not matching. How do they look like?

qlikmpate0
Creator II
Creator II
Author

Still zero shipped qty

qlikmpate0
Creator II
Creator II
Author

current period is like the period name? APR-14

Not applicable

Mina

maybe you may attache example?

regards

D

tresesco
MVP
MVP

That is why it doesn't work. Probably, this field has been created in the script as string. Create the same field using MonthName() in the script like:

Load

          MonthName(DateField) as [Current Period]

Not applicable

Hi,

I think your [Current Period] - date format not matching with

[Calendar.START_DATE] &

[Calendar.END_DATE]

that's why it's showing zero. otherwise syntax looks ok.

Vinay