# New to Qlik Sense

Discussion board where members can get started with Qlik Sense.

Announcements
Talk to Experts, a LIVE Q&A Webinar. Bring your Qlik Sense Business questions on Aug. 4th. Register
cancel
Showing results for
Did you mean:
Highlighted
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

Thanks.

3 Replies
Highlighted
Partner

## Re: Average Absolute Variable

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?
Plees ekskuse my Swenglish and or Norweglish spelling misstakes
Highlighted
Contributor III

## Re: Average Absolute Variable

The average expression is not returning any values.

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

Highlighted
Partner

## Re: Average Absolute Variable

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