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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
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,

Labels (1)
1 Solution

Accepted Solutions
sunny_talwar
MVP
MVP

May be you want this

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


Capture.PNG

View solution in original post

7 Replies
sunny_talwar
MVP
MVP

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

sunny_talwar
MVP
MVP

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
MVP
MVP

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.