Qlik Community

New to QlikView

Discussion board where members can get started with QlikView.

Announcements
QlikWorld 2020: Join us May 11 - 14, 2020 in Phoenix, AZ. Register early and save $400. Learn More
apthansh
Contributor

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

Re: Sum of Rows vs Expression Total.

May be you want this

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


Capture.PNG

View solution in original post

7 Replies

Re: Sum of Rows vs Expression Total.

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

Re: Sum of Rows vs Expression Total.

May be try this

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

apthansh
Contributor

Re: Sum of Rows vs Expression Total.

Hi Sunny...Thank you.

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

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

apthansh
Contributor

Re: Sum of Rows vs Expression Total.

sunny

stalwar99

Please see the attached above

Re: Sum of Rows vs Expression Total.

May be you want this

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


Capture.PNG

View solution in original post

tripatirao
Contributor II

Re: Sum of Rows vs Expression Total.

Hi,

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

apthansh
Contributor

Re: Sum of Rows vs Expression Total.

Awesomeness....Thank you.