Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
cupelix-qlik
Contributor III
Contributor III

Subtotal within a Dimension

Is it possible to have 2 Sub totals within a single Dimension.

What I have is:

Date

Dispatch Area - This contains 8 Different Dispatch Areas 4 for the North & 4 for the South. So North areas start with NEOC and South areas start with SEOC

Data Fields

So what I would like to show on my data is: Where North or South is shown this will be the sub total. This needs to appear in the same column.

21/3/14 NEOC1 Data Values

21/3/14 NEOC2 Data Values

21/3/14 NEOC3 Data Values

21/3/14 NEOC4 Data Values

21/3/14 North Data Values

21/3/14 SEOC1 Data Values

21/3/14 SEOC2 Data Values

21/3/14 SEOC3 Data Values

21/3/14 SEOC4 Data Values

21/3/14 South Data Values

6 Replies
MK_QSL
MVP
MVP

Please provide your sample data file...

cupelix-qlik
Contributor III
Contributor III
Author

I dont have a sample data file, I have shown above what I need. The Data Values are just Interger Values

preminqlik
Specialist II
Specialist II

Load *,

if([Dispatch Area]=NEOC*,'North',

'South')               as               Region

From

XXX;

Now in frontend add dimension named "Region '

use subtotal for that

cupelix-qlik
Contributor III
Contributor III
Author

Thanks for the answer, is it possible to do without changing the Load Script

preminqlik
Specialist II
Specialist II

yes in front add calculated dimension

if([Dispatch Area]=NEOC*,'North',

'South') 

cupelix-qlik
Contributor III
Contributor III
Author

Unfortunately that adds an additional Column, what i need is to have the subtotal appear in the same column as the dispatch area, if this isn't possible then thats fine I just need to know one way or the other