Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Syntaxis to set analysis of a previous year

Hi,

I have this expression and I am not able to get the average corresponding to the previous year as the one selected in the document, is only a syntax question because the expression works properly if I do not consider the year in the set analysis expression.

How to write it correctly?

-AVG({<HOTEL_EMPRESA={'KIP'},TIPO_EMPRESA={'HOTEL'},YEAR={=YEAR-1}>}TASA_BUDGET_EUR)

Thanks

1 Solution

Accepted Solutions
Not applicable
Author

This is a bit of a guess; but, does this help?

AVG({<HOTEL_EMPRESA={'KIP'},TIPO_EMPRESA={'HOTEL'},YEAR={"$(=YEAR-1)"}>}TASA_BUDGET_EUR)

View solution in original post

2 Replies
Not applicable
Author

This is a bit of a guess; but, does this help?

AVG({<HOTEL_EMPRESA={'KIP'},TIPO_EMPRESA={'HOTEL'},YEAR={"$(=YEAR-1)"}>}TASA_BUDGET_EUR)

Not applicable
Author

Thank you very much

I tried millions of combinations whith all possible symbols