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: 
Not applicable

Sum - Select - Year less then

Hello.

I Have a table:

YearValue
20011

2002

2
20033
20044
20055
20066
20077
20088
20099
201010

I must create a bar chart, include only 5 years: 2001, 2002, ..., 2006.

I use a sum with select: sum({<Year={XXX}>}Value)

What i must insert instead XXX?

<=2006 not work

Thank you.

Labels (1)
15 Replies
Not applicable
Author

Alessandro,

for example, I create variable: SetYearMax

How i can insert this variable in the formula?

alexandros17
Partner - Champion III
Partner - Champion III

sum({<measureName={Opex, Expenditure}, budgetName={"Approved"}, Year={'<=$(SetYearMax)}>}quantity)

let me know

Not applicable
Author

Great!

Thank you very much

Not applicable
Author

Allesandro, one more question.

Where is I do mistake?

sum({<measureName={Opex, Expenditure}, budgetName={"Approved"}, Year={'<=$(SetYearMax)'}, Year={'>=$(SetYearMin)'}>}quantity).

I want create interval. From year 2002 to 2008 or another.

alexandros17
Partner - Champion III
Partner - Champion III

sum({<measureName={'Opex', 'Expenditure'}, budgetName={'Approved'}, Year={'>=$(SetYearMin)<=$(SetYearMax)'}>}quantity)

Not applicable
Author

O! I understand. Thank you very much.

I try in first: Year={'>=$(SetYearMin)', '<=$(SetYearMax)'}.