Qlik Community

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 
Search instead for 
Did you mean: 
Highlighted
Not applicable

absolute sum of positive and negative values in table

Hi

I have under #totalvalue the amountXprice, but this is negative for BUY and POSITIVE for sell

How can I formulate the TOTAL of #totalvalue in absolute terms (not adding the plus and minus from buy/sell)??


The below formula yiels the wrong result since it adds the buy and sell totalvalue, not the absolute numbers.

Sum({<TransactionCategory = {'Equities'}>} #TotalValue)

qliks1.JPG

qliks2.JPG

2 Replies
Highlighted
Champion III
Champion III

Hi,

Did you tried with fabs()

fabs(Sum({<TransactionCategory = {'Equities'}>} #TotalValue))

Highlighted
Partner
Partner

Hi Arne

When using fabs u need to turn value before sum()

Sum({<TransactionCategory = {'Equities'}>} fabs(#TotalValue) )


/Teis