Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Trouble with calculation subtotals in pivot

Colleagues, good day!

I've faced with one task about calculation subs in pivot table.

Can you give me an advice, is it possible to put field (by which we calculate totals) to the last position with save grouping?

As a default, i've now this table:

Test1.jpg

But need to have something like this:

test2.jpg

obligatory condition - i must use only Pivot table.

There're source and qvw in the attachment.

Thanks.

1 Solution

Accepted Solutions
Anil_Babu_Samineni

May be work around

Note - Please mark as helpful if you satisfy which resemblance in your way..

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful

View solution in original post

8 Replies
Anil_Babu_Samineni

If obligatory is Pivot then i don't think so ..

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
Anonymous
Not applicable
Author

because only Pivot has possibility to set a cross dimensions (in my real app i have cross dimensions)

Anil_Babu_Samineni

Do you like this?

Capture.PNG

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
Anonymous
Not applicable
Author

cool.. can you send me qvw? how did you do that?

Anil_Babu_Samineni

Attached image in second way QVW for 1st way..

You can slag the height using

Dual(Repeat(Chr(10),10) & Aggr(Name, Name), Aggr(Name, Name))

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
Anonymous
Not applicable
Author

thanks..

bu where are subtotals and is the possibility to repeat values in dims?

Anil_Babu_Samineni

May be work around

Note - Please mark as helpful if you satisfy which resemblance in your way..

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
Anonymous
Not applicable
Author

Thank you so much.

I'll work around to repeat Name field values..