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

Announcements
Save $650 on Qlik Connect, Dec 1 - 7, our lowest price of the year. Register with code CYBERWEEK: Register
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Simple Question For A New User

Hello:

I have just started working with QlikView Desktop and I am having some trouble with what seems to be a simple task. I have fields called "Manufacturer", "Brand", "Month01", "Month02", "Month03:, etc. that I would like to view in a simple Table Box. When I select a Manufacturer and then a Brand from the existing Manufacturer and Brand List Box, the Table Box is showing the Brand multiple times. What I would like to do is show only the distinct Brand once in the Table Box along with the totals for each Month. Is this doable?

Thank you.

1 Solution

Accepted Solutions
Not applicable
Author

So you want:

Customer Jan 50
Feb 60
Mar 100


Your data is not set up the best way for this, but it is doable. You really want: Manufacturer, Brand, Month, Amount. So each Month is actually a separate record. In order to get your data looking like that, you should look into Cross Table in the QlikView help.

Alternatively, you could make a separate expression for each month. Exp 1: Sum(Month01); Exp 2: Sum(Month02), etc.

Then, in both cases, you would probably want to use a pivot to have the Customer only appear once and each Month totalled. If you use a Straight Table, the Customer would be repeated for each Month.

View solution in original post

5 Replies
Not applicable
Author

So you want:

Customer Jan 50
Feb 60
Mar 100


Your data is not set up the best way for this, but it is doable. You really want: Manufacturer, Brand, Month, Amount. So each Month is actually a separate record. In order to get your data looking like that, you should look into Cross Table in the QlikView help.

Alternatively, you could make a separate expression for each month. Exp 1: Sum(Month01); Exp 2: Sum(Month02), etc.

Then, in both cases, you would probably want to use a pivot to have the Customer only appear once and each Month totalled. If you use a Straight Table, the Customer would be repeated for each Month.

Not applicable
Author

Hello:

Actually, I want:

Manufacturer Brand Month01 Month02 Month03

Man1 Brand1 17 26 25

Dependent on which Manufacturer and Brand are selected. What I am seeing is:

Manufacturer Brand Month01 Month02 Month03

Man1 Brand1 2 10 1

Man1 Brand1 6 4 12

Man1 Brand1 1 9 5

Man1 Brand1 8 3 7

Not applicable
Author

as nmiller said, you need a pivot with dimensions for manufacturer & brand and a sum() per month as expression

Not applicable
Author

Thank you all. Extremely helpful!

Not applicable
Author

A table box just lists out the rows as it is. So create a chart. Select the type as Pivot Table.

Add following dimensions:

Manufacturer,Brand,Month

Add one expression:

sum(Amount)

Now you will get one table which looks somewhat like this

ManufacturerBrandMonthAmount
M1B1Jan100
Feb200
Mar300

Now click on the Month column and drag it above the 'Amount' cell. The table will look like this

ManufacturerBrandJanFebMar
M1B1100200300