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

Announcements
ALERT: QlikView server communication interruptions following Microsoft Windows Domain Controller security updates
cancel
Showing results for 
Search instead for 
Did you mean: 
sunny_talwar

Totals within Pivot Table

** Update: Attached the sample QlikView file **

Hey Guys,

I have three Dimensions (Category, Item and Supplier). Each category can have multiple items in it. and I am trying to get here

ItemSup1Sup2Sup3Sup4Total
Item111114
Item211114
Item311114
Item411114
Item511114
Total555520

But Right now I am getting this using the following expression: =Count(DISTINCT TOTAL <Item, Category> Item)

ItemSup1Sup2Sup3Sup4Total
Item111111
Item211111
Item311111
Item411111
Item511111
Total55555

How do I make it so that it shows the total at both the ends?

Any help would be greatly appreciated.

Best,

S

Labels (1)
17 Replies
sunny_talwar
Author

I don't see any changes except that the Show Partial Sum for Supplier has been disabled.

Best,

S

Anonymous
Not applicable

added aggr expression . hopefully it will work now.

sunny_talwar
Author

Hey Vinay,

Not what I want. I want this output:

ItemSup1Sup2Sup3Sup4Total
Item111114
Item211114
Item311114
Item411114
Item511114
Total555520

and Currently your aggregated formula is getting the following result:

ItemSup1Sup2Sup3Sup4Total
Item1-11-2
Item211114
Item3-1113
Item411114
Item51--12
Total344415

Best,

S

Anonymous
Not applicable

but there are holes in your data for supplier 1 you dont have Item 1 and item 3. please confirm

Anonymous
Not applicable

aggregate function is working but the problem is there is no data Buddy.

sunny_talwar
Author

You are right Vinay, but within the Count I am using Total. I would expect the Total to work within the aggregate function, unless it doesn't. Because without the aggregate function, Total is working and showing 1 without any issues. Its just that as I use the aggregate, the 1's become 0 and sum changes.

Best,

S

sunny_talwar
Author

The formula you used: sum(aggr(Count(DISTINCT TOTAL <Item, Category> Item),Category,Supplier,Item)) (This has TOTAL in it also

Output

and my formula: Count(DISTINCT TOTAL <Item, Category> Item)

Output

Best,

S

sunny_talwar
Author

Trying my luck once again.

Please let me know if somebody has a solution for this.

Best,

S