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: 
paulyeo11
Master
Master

I have 2 script amount ,How to sum these 2 script amount ?

Hi All

May i know how to sum up the below script ?

if(right(@162:174T,1)='-', '-' & left(@162:174T, len(@162:174T)-1),@162:174T) as ab18,

if(right(@179:191T,1)='-', '-' & left(@179:191T, len(@179:191T)-1),@179:191T) as ab21,

I try below , it does not work :-

sum(
if(right(@162:174T,1)='-', '-' & left(@162:174T, len(@162:174T)-1),@162:174T))
+
sum(
if(right(@179:191T,1)='-', '-' & left(@179:191T, len(@179:191T)-1),@179:191T))
as ab1821,
1 Solution

Accepted Solutions
sunny_talwar

How about this:

RangeSum(

If(Right(@162:174T,1)='-', '-' & Left(@162:174T, Len(@162:174T)-1),@162:174T),

If(Right(@179:191T,1)='-', '-' & Left(@179:191T, Len(@179:191T)-1),@179:191T)) as ab1821

View solution in original post

3 Replies
sunny_talwar

How about this:

RangeSum(

If(Right(@162:174T,1)='-', '-' & Left(@162:174T, Len(@162:174T)-1),@162:174T),

If(Right(@179:191T,1)='-', '-' & Left(@179:191T, Len(@179:191T)-1),@179:191T)) as ab1821

paulyeo11
Master
Master
Author

THank you sunny , it work

sunny_talwar

Awesome, I am glad it did