Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Simple expression

Dear Experts,

My expression is shown below,

IF(REMARKS='SET',0,RANGESUM(LOAN_AMT+INT_DUE-REC_AMOUNT))

Expected results can be achieved with this expression other than grand totals.

Please help me to find the alteration required.

Rgds,

Priyantha.

5 Replies
avinashelite

did not get your requirement could you provide more details ..

Not applicable
Author

as i think i have omitted "SUM" or "AGGR" part from this expression. still i couldn't find which part to where i should insert.

Thanks Avinash for early reply.

Priyantha.

Anil_Babu_Samineni

Share the screen shot where you get the issue and although try this

IF(REMARKS='SET',0,RANGESUM(LOAN_AMT,Interval(INT_DUE-REC_AMOUNT)))


OR


IF(REMARKS='SET',0,RANGESUM(LOAN_AMT,(INT_DUE-REC_AMOUNT)))

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
Anonymous
Not applicable
Author

Hi Priyantha,

Try this expression:

=SUM({<REMARKS = -{'SET'}>} RangeSum(LOAN_AMT,INT_DUE,-REC_AMOUNT))

Regards!!

sunny_talwar

To more closely mimic the if statement, I would put the negative sign before the equal sign

=Sum({<REMARKS -= {'SET'}>} RangeSum(LOAN_AMT,INT_DUE,-REC_AMOUNT))

or another option is to use Sum(Aggr())

Sum(Aggr(If(REMARKS='SET', 0, RangeSum(LOAN_AMT+INT_DUE-REC_AMOUNT)), ChartDimensionsHere))

Here make sure to replace ChartDimensionsHere with the dimensions from your chart