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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Expression error

Dear All,

My Table like below,

BCOD GRO_PREGRO_PRE2013GROWTH
B10019680838176549770
BA0052404853495254320
BB001349624887132150
BW0063788987560071410
MN0015523671128004840
NE0048696306473168030
PS0014029948113792380
WW001090681187713120
Total 238527663 212168602 0

I want to calculate the growth. the expression I have used is as follows.

SUM('GRO_PRE'-'GRO_PRE2013')*100/GRO_PRE2013

But output was not calculated.

Please help in this regard.

Regards,

Priyantha

1 Solution

Accepted Solutions
Not applicable
Author

Hi Priyantha,

An optimal way to calculate the growth would be:

sum(GRO_PRE) / sum(GRO_PRE2013) - 1

View solution in original post

10 Replies
Not applicable
Author

Hi,

Try this it will work

(SUM(GRO_PRE) - Sum(GRO_PRE2013))*100/GRO_PRE2013

MK_QSL
MVP
MVP

Try

((SUM(GRO_PRE)-SUM(GRO_PRE2013))/GRO_PRE2013)*100

Or

NUM(((SUM(GRO_PRE)-SUM(GRO_PRE2013))/GRO_PRE2013),'#0.00%')

Not applicable
Author

Attached

Not applicable
Author

Hi Priyantha,

An optimal way to calculate the growth would be:

sum(GRO_PRE) / sum(GRO_PRE2013) - 1

Anonymous
Not applicable
Author

Hi,

your  problem is the qoutes.

ayuda 2.PNG.png

ayuda 1.PNG.png

Not applicable
Author

Hi Jannet,

I used the quotes due to  "GRO_PRE" and the "GRO_PRE2013" are also calculated though expressions.

Regards,

Priyantha.

anbu1984
Master III
Master III

Are these "GRO_PRE" and the "GRO_PRE2013" label names of expressions?

its_anandrjs
Champion III
Champion III

Try like below expression and remove single quotes but you can use double quotes

SUM(GRO_PRE - GRO_PRE2013 )*100 / GRO_PRE2013

Or

SUM("GRO_PRE" - "GRO_PRE2013" )*100 / "GRO_PRE2013"

Where you get error in the expression

Growth.png

Regards

Anand

Not applicable
Author

YES