Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Master Calendar and Set Analysis date ranges

Hello,

Is there a way to get a range in the expression?

For instance, I'm trying to find amounts where if a due date is less than the master calendar date but 30 days or less than the master calendar date, show the amount.

I'm thinking it would be something like this but it's all 0's:

Sum({$<DUEDATE={"<=$(=max(Master_Calendar.Date)<=$(=num(DUEDATE)-30))"}>}AMOUNT)

Thank you in advance.

1 Reply
Not applicable
Author

hi

try like this

create the variable like

Vmaxcaldate=max(date(Master_Calendar.Date,'DD/MM/YYYY'))

Vprev30days= max(date(DUEDATE,'DD/MM/YYYY'))-30

Use the variable in set

Sum({$<DUEDATE={'>=$(Vmaxcaldate)<=$(Vprev30days)'}>}AMOUNT)