Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Aggregating rows for display

I have a single table in load statement. It has some measures and dimension (attributes).

Country

Region

State

State ID

Sales

I want to display a report with Country & Sales Income only. I do that but when i see the report on IE it repeats the country value for all stateID's. I just want to see one row per country with sum(Sales). It is a simple group by in SQL but I don't want to do it on LOAD statement as I want to use the state info in another tab.

5 Replies
jagan
Luminary Alumni
Luminary Alumni

Hi,

Add Country as Dimension in chart and use =Sum(Sales) as Expression.

This will show Country and their corresponding sales.

Hope this helps you.

Regards,

jagan.

mdmukramali
Specialist III
Specialist III

Dear,

find the attachment.

Not applicable
Author

Dear All ,

Let me explain again what I want:

My qlickview dataset

Customer IDCustomer NameProduct IDProduct NameCountryQty-LyQty-CY
1ABC Inc101ShoesJapan12
2ABC Inc102ShoesJapan23
3ABC Inc103ShoesJapan57
4XYZInc110jacketsChina410
5XYZInc110jacketsChina511

I am using a Table object and only picking the following data items:
Customer Name
Product name
Country
Qty-Ly
Qty-CY

The following data is displayed in Qlikview

Customer NameProduct NameCountryQty-LyQty-CY
ABC IncShoesJapan12
ABC IncShoesJapan23
ABC IncShoesJapan57
XYZIncjacketsChina410
XYZIncjacketsChina511

What I really want

Customer NameProduct NameCountryQty-LyQty-CY
ABC IncShoesJapan812
XYZIncjacketsChina921

How to achieve it without modifying the Load statement?

jagan
Luminary Alumni
Luminary Alumni

Hi,

Use CustomerName, ProductName, Country as dimensions and use

=Sum(Qty-Ly)

=Sum(Qty-CY)

as expressions

Regards,

Jagan.

CELAMBARASAN
Partner - Champion
Partner - Champion

Hi,

     Use Straight table instead of table box.

     Have dimensions CustomerName, ProductName, Country.

     Have expressions below

     =Sum(Qty-Ly) give label for this as Qty-Ly

     =Sum(Qty-CY) give label for this as Qty-CY

Celambarasan