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

Announcements
FLASH SALE: Save $500! Use code FLASH2026 at checkout until Feb 14th at 11:59PM ET. Register Now!
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

Labels (1)
7 Replies
Not applicable

try:


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

tresB
Champion III
Champion III

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

tresB
Champion III
Champion III

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