Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
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