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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
arezoo99
Contributor III
Contributor III

how to sum the rows in a table

Hi,

i want to show the total of each rows for the two senarios below:

  1. total of all dimentions for each manager

         SUM(Product A,Product B,Product C,Product D,Product E,Product F,Product G,Product H,Product 1)

2. Total of selected dimentions for each manager

       SUM(Product A,Product C,Product E,Product H)

would you please advise how i can do that

   

Manager NameProduct AProduct BProduct CProduct DProduct EProduct FProduct GProduct Htotal of all dimentions per managerSum of Product A, C,E,H Per manager
Aiden31812271425142515682
Tom37211352133821058190992300
Anthony46016316316325669
Mark2270217122702072368137
Edward125611571157115727291
1 Reply
Anonymous
Not applicable

Hi Arezoo99 

           I would recommend you change your data-set from Columns to Rows. For example you can use the Cross-table Wizard in the Load script to transpose your product columns into rows. 

Current Data Set

Current Data View       
Manager NameProduct AProduct BProduct CProduct DProduct EProduct FProduct GProduct H
Aiden318122714251425
Tom37211352133821058190
Anthony460163163163
Mark2270217122702072
Edward1256115711571157

 

Proposed View. (Using Cross Table Wizard) 
Manager NameProduct GroupingProduct Amount
AidenProduct A31
AidenProduct B8
AidenProduct C12
AidenProduct D27
AidenProduct E14
AidenProduct F25
AidenProduct G14
AidenProduct H25
TomProduct A37
TomProduct B211
TomProduct C35
TomProduct D213
TomProduct E38
TomProduct F210
TomProduct G58
TomProduct H190

 

Once the data is reloaded, this will allow you to use set analysis to easily total and sub total your products by manager.

Recommended Chart: Pivot Chart

  1. total of all dimensions for each manager

          SUM(Product Amount)

       2. Total of selected dimensions for each manager

       SUM( {$< [Product Grouping] = {'Product A', 'Product B', 'Product C'} >} [Product Amount])

Let me know if the above is of any help.

Cheers