Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

In Pivot table, How to fabs first and then sum

Hi,     I’m trying to get the final result as sum of total for the +ve and –ve values. Please help.2016-03-22_10-23-18.pngsunindia

12 Replies
sunny_talwar

Try this:

If(Dimensionality() = 2, SUM([TOTAL EXPENSES]), Sum(Aggr(If(Sum([TOTAL EXPENSES]) > 0, Sum([TOTAL EXPENSES])), MARKET, Risk_Type)))


Capture.PNG

swuehl
MVP
MVP

Maybe like

If(Dimensionality()<2,

Sum(Aggr(

If(SUM( [TOTAL EXPENSES])>0,SUM( [TOTAL EXPENSES]))

,MARKET,Risk_Type))

,

SUM([TOTAL EXPENSES]))

Anonymous
Not applicable
Author

Perfect... Its working fine... Thank you..