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

Evolution pourcentage over years

Hello there,

i am currently working with a file containing information per year

i have the list of region and number of roomnights. below this is the request of my business user.

Maybe it is because it is monday, but i can not figure out how to solve it ... could you please help ?

I was thinking about using variable like this

2015-09-21_11h56_19.png

and the formula

fabs(
(
//Année MAX
SUM({$<YEAR={$(vYear)}>} [Nuitées (p.p.)])

// Année Max - 1
-
SUM({$<YEAR={
$(vPrevYear)}>} [Nuitées (p.p.)])
// Année Max - 1 (Référentiel)
)
/
SUM({$<YEAR={
$(vPrevYear)}>} [Nuitées (p.p.)])
)

But it is not working at all....thanks for your help

JP

2015-09-21_11h53_50.png

14 Replies
Anonymous
Not applicable
Author

can you just share a sample qvw .

it will be easy to help you .

Thanks

BKC

teiswamsler
Partner - Creator III
Partner - Creator III

Hi Jean-Philippe

try making a text box, set in  ='SUM({$<Année={$(vYear)}>} [Nuitées (p.p.)])' this will show you the calutation of the Variable in the set analysis..

/Teis

Anonymous
Not applicable
Author

for previous Year

Sum({$<Année = {$(=Max(Année)-1)}>}[Nuitées (p.p.)])

for current year or max year

Sum({$<Année = {$(=Max(Année))}>}[Nuitées (p.p.)])


Thanks

BKC

Not applicable
Author

so it is not necessary to add some variables right ??

Anonymous
Not applicable
Author

yes you dont need variables

if you want you can add .. its up to you

Thanks

BKC