Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Custoom totals in Straight table

IS there any way to define our own custom expression to define totals in straight table .

I have a strange requirement where i neeed to calculate Totals in which i have drilldown .I have three levels in drilldown .

Store

Department

Section.

My requirement is if i drill down to department totals for store should be displayed but data should be for deparment only.

And same    for the section also.For both Dept and Section totals should be Store .

IS there any way to  achievve

Thanks

10 Replies
datanibbler
Champion
Champion

Hi,

this sounds similar to something I had to do some time ago.

You cannot do this with the automatic totals which QlikView calculates, so you will have to make your own.

=> The totals must not be part of the straight_table, but individual objects (textboxes?) above the table.

=> You can set up your straight_table with those three fields as dimension with

- the 2nd one active when some selection has been made on the first;

- the 3rd one active when some selection has been made on the second;

That will get kind of difficult when it comes to keeping with a constant layout when the straight_table_chart changes with the data.

HTH

Best regards,

DataNibbler

Qrishna
Specialist III
Specialist III

post some sample data or a QV document which demonstrated your problem.

The same issue we had for a pivot table.

Anonymous
Not applicable
Author

Hi

Thanks for reply

Unfortunately i couldn't post the app due to its size.

Qrishna
Specialist III
Specialist III

Atleast Some sample data to get an idea of what you are looking for.

If thats not possible, post a demo document.

jonathandienst
Partner - Champion III
Partner - Champion III

You can use the Dimensionality() function to customise the expression for the total (at least in a pivot, I am not so sure about a straight table).

Does it have to be a straight table?

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
Anonymous
Not applicable
Author

Thanks for reply!

Yes it should be in Straight table .

Anonymous
Not applicable
Author

Store Customers
totals 62714
011 MOE19767
003  City Ctr15149
010 Mall4397
016 Mall2974
015  Ctr11547
009
8880

Hi

If you observe Customer column in the above  table .It consists of total  count of its customers.

My requirement is I want total to be customized .

In the above table total for customers at country level.

If i drill down to nxt level Dept level ,Then totals should be at store levels (i.eSum(Cutomers) at store level) and data should be for Dept .

jonathandienst
Partner - Champion III
Partner - Champion III

Sounds like a pivot to me...

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
Kushal_Chawda

Please share the sample data