Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Giselle100
Contributor III
Contributor III

Average Absolute Variable

Hi,

I am trying to calculate the average of the variable I have created.

vAbsoluteValue = FABS(-(Sum({<[Plan Type Description]=, [SK Plan Type No] = {2}, Year={$(vMaxYear)}>}[Fct Scl Binc Sale Sell Amt]) - Sum({<[Plan Type Description]=, [SK Plan Type No] = {1}, Year={$(vMaxYear)}>}[Fct Scl Binc Sale Sell Amt]))
/
Sum({<[Plan Type Description]=, [SK Plan Type No] = {2}, Year={$(vMaxYear)}>}[Fct Scl Binc Sale Sell Amt]))

Average Value =Avg($(vAbsoluteValue)) is returning a zero value

Please assist

Thanks.

3 Replies
Vegar
MVP
MVP

What is the problem with the expression?
Which result do you get from using your expression and which result are your expecting to get?

Maybe you could attach some screenshots that will help us inderstand?
Giselle100
Contributor III
Contributor III
Author

The average expression is not returning any values.

I want the result to return the average value for the variable created (vAbsoluteValue)

dplr-rn
Partner - Master III
Partner - Master III

Couple of questions
1- is the variable being evaluated immediately? or are you using the string in expression
2- please elaborate what kind of chart and dimensions you are using for the average