Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
syedsaqib
Contributor II
Contributor II

Incorrect sign in Difference/variance expression (with -ve denominator only)

Hello Experts!

I like to know if there is any syntax in Qlik Sense which can be used to resolve incorrect Sign in Diff. % column.

I used Abs() in SAC cloud to resolve this, but don’t know if we have anything in Qliksense.

For example:

Period 1,   % Difference should be +ve but it shows -ve % difference of -17.4%.

FYI, incorrect sign only shows up when PY value (denominator) has -ve Sign, otherwise, the formula works fine for all other combination as shown below from Period 4 to 12.

I have attached sample application and snapshot.

 

Thanks!

Here is the snapshot from sample qvf.

Sample App-Variance.JPG

 

 

Here is snapshot from my my actual app:

Sample App-Variance2.JPG

Sample App-Variance3.JPG

Labels (1)
1 Solution

Accepted Solutions
MayilVahanan

HI @syedsaqib 

Try with fabs() function

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.

View solution in original post

1 Reply
MayilVahanan

HI @syedsaqib 

Try with fabs() function

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.