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

Expression in straight table not working?


HI,

I have straight table in qvw as below

                                     

REGIONSALESGOODSOTHERSNOT SOLDOverall Total
XX769.42310.11 0
YY168909.344515.62 173424.96
ZZ638850.31188333.04 446830.73
AA0267286.69 726137.32

Dimension : REGION

Expr 1 : SALES

Expr 2 : GOODS

Expr 3 : OTHERS

Expr 4 : NOTSOLD

when I am trying to calculate Overall Total =

Column (1)+Column (2)+Column (3)-(Column (4))

it is showing blank values. Is there any wrong in expression?

please can anyone suggest me.

Thanks.

1 Solution

Accepted Solutions
swuehl
MVP
MVP

OTHERS lines are NULL?

Then you need rangesum() to add up (or better, use rangesum() anyway):

=Rangesum(column(1),column(2),column(3), -column(4) )

View solution in original post

4 Replies
swuehl
MVP
MVP

OTHERS lines are NULL?

Then you need rangesum() to add up (or better, use rangesum() anyway):

=Rangesum(column(1),column(2),column(3), -column(4) )

robert_mika
Master III
Master III

Maybe:

SALES+GOODS +OTHERS-NOTSOLD

Not applicable
Author

Thanks. That's right

Not applicable
Author

Thanks.