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: 
Anonymous
Not applicable

Subtotaling Customization

Hello!  

I have this table that make the different behind the two expressions 2012 and 2013,

lost in 2013 : if((Column(1)-Column(2))=-1,'0',(Column(1)-Column(2)))

But the total's label is wrong, becouse it doesn't read the "IF condition" (Column(1)-Column(2))=-1,'0).

How can I Customization it?

Cliente20122013Lost in 2013
Total160174-14
A&D SRL010
ACCENTURE OUTSOURCING SRL101
ACCENTURE S.p.A.110
ACOMON S.R.L.110
ACTIV8 CONSULTING SRL010
ADDRESS SOFTWARE SRL101
ALLIANZ S.p.A.110
1 Solution

Accepted Solutions
marcus_sommer

You need to make it more clear what is wrong and what will be the expected result. I assume you will need a different expression for total and/or and an aggr, maybe in this way:

if(dimensionality() > 0, YourExpression,

     sum(aggr(Expression2012, Cliente)) - sum(aggr(Expression2013, Cliente)))

- Marcus

View solution in original post

2 Replies
marcus_sommer

You need to make it more clear what is wrong and what will be the expected result. I assume you will need a different expression for total and/or and an aggr, maybe in this way:

if(dimensionality() > 0, YourExpression,

     sum(aggr(Expression2012, Cliente)) - sum(aggr(Expression2013, Cliente)))

- Marcus

Anonymous
Not applicable
Author

Peferct!

Thank you very much!!