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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
mohamed_ahid
Partner - Specialist
Partner - Specialist

re-use a calculated colunm

hi

i want to have a max and min (max evolution and min evolution) value depending on a calculatd colunm (evolution) .

i tried all the expression of evolution  in my aggr function and it works . but when i use the name of evolution in my aggr function it returns 0 .

see the sample .

Thx for helping .

7 Replies
Not applicable

What are you trying to show as Max evoluution? the largest value of the other columns?

Richard

MK_QSL
MVP
MVP

=Max({1}Aggr((sum({1<week= {">=$(=1)<=$(=9)"}> } value)-sum({1<week= {">=$(=10)<=$(=15)"}> } value))/(sum({1<week= {">=$(=1)<=$(=9)"}> } value)-sum({1<week= {">=$(=10)<=$(=15)"}> } value)),client))

mohamed_ahid
Partner - Specialist
Partner - Specialist
Author

but why i can re use simply the colunm evolution ?

mohamed_ahid
Partner - Specialist
Partner - Specialist
Author

Thx

in max evolution i should have 1 as value and -1 for min evolution .

my simple is not complete but this will be usefull in other expressions not detailled in this sample

MK_QSL
MVP
MVP

Because here you have to freeze the selection by using 1 in set analysis which you haven't frozen in your evolution expression...

Not applicable

I would imagine its because the Evoulution is generated as a result of one set of "set analysis" commands (ie { $ }) , then you are trying to refernece it by another set. ( {1} )

I think there are rules around using Calculated expressions.

the solution provided by Manish is the one I would use.

Richard

MK_QSL
MVP
MVP

Have you check my reply?