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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
kristeljoymalapitan

What set analysis to be use in getting grand total reflects as new column?

Good Day,

Please help me on what set analysis/functions to be use on  below sample data

 I need to add new column 'Total' on the right side and 'Grand total' at the bottom. (highlighted on red font)

Total = total count of accounts per ROLLRATES and per BUCKET .

 

 

Please refer to sample output and raw data for your reference

 

Hope to hear you the soonest.

 

Thank you

 

 

 

Labels (1)
4 Solutions

Accepted Solutions
pradosh_thakur
Master II
Master II

dimension =   BUCKET

 

MEASURE 

=COUNT({ROLLRATES={'RB'}}BUCKET)

 

=COUNT({ROLLRATES={'RF'}}BUCKET)

 

=COUNT({ROLLRATES={'ST'}}BUCKET)

 

 

 total 

=column(1)+column(2)+column(3)

 

sum of rows will give you the grand total anyways.

Learning never stops.

View solution in original post

pradosh_thakur
Master II
Master II

ahh.. My bad. missed <>

=COUNT({<ROLLRATES={'RB'}>}BUCKET)

 

=COUNT({<ROLLRATES={'RF'}>}BUCKET)

 

=COUNT({<ROLLRATES={'ST'}>}BUCKET)

Learning never stops.

View solution in original post

pradosh_thakur
Master II
Master II

Please close the thread if answered.
Learning never stops.

View solution in original post

pradosh_thakur
Master II
Master II

I am using a simple table and not the pivot table.
Learning never stops.

View solution in original post

13 Replies
pradosh_thakur
Master II
Master II

dimension =   BUCKET

 

MEASURE 

=COUNT({ROLLRATES={'RB'}}BUCKET)

 

=COUNT({ROLLRATES={'RF'}}BUCKET)

 

=COUNT({ROLLRATES={'ST'}}BUCKET)

 

 

 total 

=column(1)+column(2)+column(3)

 

sum of rows will give you the grand total anyways.

Learning never stops.
gn_marvs1989
Contributor III
Contributor III

Have you tried to use the "Partial Sum" using Pivot Table?

kristeljoymalapitan
Author

Hi  Pradosh_Thakur,

As per trying below function under measure 'error in expression' was encountered.

 

MEASURE 

=COUNT({ROLLRATES={'RB'}}BUCKET)

 

=COUNT({ROLLRATES={'RF'}}BUCKET)

 

=COUNT({ROLLRATES={'ST'}}BUCKET)

kristeljoymalapitan
Author

I haven't tried that since I'am new to Qlik Sense and still exploring, Hope to hear from you for me to get positive results.
pradosh_thakur
Master II
Master II

ahh.. My bad. missed <>

=COUNT({<ROLLRATES={'RB'}>}BUCKET)

 

=COUNT({<ROLLRATES={'RF'}>}BUCKET)

 

=COUNT({<ROLLRATES={'ST'}>}BUCKET)

Learning never stops.
kristeljoymalapitan
Author

It works! 🙂 and I named it as RB, RF and ST and use as per below function

 

What do you mean by this? Is this still under MEASURE?

 

total 

=column(1)+column(2)+column(3)

 

I tried below but 'error in expression' error was encountered

=column('RB')+column('RF')+column('ST')

 

pradosh_thakur
Master II
Master II

just try with RB+RF+ST
OR
if RB is 1st column from the measure then column(1) will give you RB column value and so on. You can check by just putting =column(1) in the expression
=column(1)+column(2)+column(3)
Learning never stops.
kristeljoymalapitan
Author

Thank you so much it works! 🙂

 

How about total at the bottom? Is it possible? 

pradosh_thakur
Master II
Master II

settings.JPG

Learning never stops.