Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
apthansh
Creator
Creator

Sum of Rows vs Expression Total.

Hi ,

I have below expression in the bar chart.

My dimension is Called Type.

=(If(GetFieldSelections(_BTUnitOfMeasure)='SQF',

(Sum([RSF])),

(Sum([RSF])))  * SUM(Value)

I am not getting the desired number,So tried with the straight table.Here I get different number with Expression total and sum of rows.

How can I get the same with both options.

Thank you,

1 Solution

Accepted Solutions
sunny_talwar

May be you want this

Sum(Aggr(Sum(RSF)*Sum(VALUE), ID, Segment))


Capture.PNG

View solution in original post

7 Replies
sunny_talwar

What are you getting and what was expected? Do you have a sample or images to show?

sunny_talwar

May be try this

=If(GetFieldSelections(_BTUnitOfMeasure) = 'SQF', Sum([RSF]), Sum([RSF])  * Sum(Value))

apthansh
Creator
Creator
Author

Hi Sunny...Thank you.

I have attached 2 files...QVW and excel.

How can I get sum of rows number in bar char ?

apthansh
Creator
Creator
Author

sunny

stalwar99

Please see the attached above

sunny_talwar

May be you want this

Sum(Aggr(Sum(RSF)*Sum(VALUE), ID, Segment))


Capture.PNG

tripatirao
Creator II
Creator II

Hi,

Can you tell us which output your trying to get in the excel.

apthansh
Creator
Creator
Author

Awesomeness....Thank you.