Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Qlikview - sum in expression

Hi all,

I have bar chart with dimension State, and I need to get sum of Amount group by item,location.

I create bar chart, set dimension State, and try to use dimension like

=sum(aggr(Amount,Item,Location)) 

and only if I select State I get bar chart for selected state. But I want to have all state in bar chart with sum of amount...

now I have only no data to display.

In sql I use

select state, sum(Amount)

from MyTable

group by Item,Location

I need barchart with dimension state and expressions amount gropu by item,location

Any idea?

5 Replies
PrashantSangle

dimension > State

Expression > Sum(Amount)

Regards,

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
its_anandrjs

In the Layout properties of the bar chart write expression with your State field

=GetSelectedCount(States) > 0

Dim :- State

Expre:- =sum(Amount)

its_anandrjs

Or May this expression also

Dim :- State

Expre:- =sum(aggr(Amount,Item,Location))

dinuwanbr
Creator III
Creator III

Hi,

There is a way to do so

Create a Drill Dimension Group and add State, Item and Location to it.

Then write the expression as Sum(Amount) .

If this is not the what you want, could be more specific.

Rgds,

Tharindu

surendraj
Specialist
Specialist

May be This!!

Did u tried with

aggr(Sum(Amount),Item,Location)


--Surendra