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

Announcements
ALERT: QlikView server communication interruptions following Microsoft Windows Domain Controller security updates
cancel
Showing results for 
Search instead for 
Did you mean: 
jblomqvist
Specialist
Specialist

Why does my Set Analysis respond to selections even though it includes ignore fields specified?

Hello,

In the Line Graph below you can see it looks at CYTD vs LYTD Sales.

The expressions for the two lines are:

CYTD:

Sum({<Year=, Quarter=, Month=, Week=, Date={'>=$(=YearStart(Max(OrderDate)))<=$(=Max(OrderDate))'}>} Sales)

LYTD:

Sum({<Year=, Quarter=, Month=, Week=, Date={'>=$(=YearStart(Max(OrderDate), -1))<=$(=AddYears(Max(OrderDate), -1))'}>} Sales)

No Selections.JPG

As you can see from the expression there are clauses to ignore selections in fields such as Year, Month etc.

But when I make selections the chart starts responding:

Selections.JPG

Does anyone know how to change my expression to stop this please?

Labels (1)
1 Solution

Accepted Solutions
swuehl
Champion III
Champion III

In your expression definitions, use a set identifier 1 in the max() functions:


...Max({1} OrderDate)..

View solution in original post

2 Replies
swuehl
Champion III
Champion III

In your expression definitions, use a set identifier 1 in the max() functions:


...Max({1} OrderDate)..

jblomqvist
Specialist
Specialist
Author

Thank you Swuehl you are a star!