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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
microwin88x
Creator III
Creator III

Pivot Table: Sum Rows

Hello,

I have the following expression on a Pivot Table

IF(

SUM(SALES)>=0,

SUM(SALES),

0)

The thing is I get values like:

0

0

10

100

0

Total: 0 (Checking the Option: Show Partial Sums under Presentation)

That is OK. But I want to sum all rows in the end, getting value Total: 110

Do you know how could I do that?

Thank you!!!

1 Solution

Accepted Solutions
antoniotiman
Master III
Master III

Try

Sum(Aggr(

IF(

SUM(SALES)>=0,

SUM(SALES),

0),YouDimension))

Regards,

Antonio

View solution in original post

2 Replies
Anonymous
Not applicable

You can Use

if(Dimensionality()=0,

sum(aggr(sum(Sales),Dimension Values)),

IF(

SUM(SALES)>=0,

SUM(SALES),

0)

)

antoniotiman
Master III
Master III

Try

Sum(Aggr(

IF(

SUM(SALES)>=0,

SUM(SALES),

0),YouDimension))

Regards,

Antonio