Skip to main content
Announcements
Introducing a new Enhanced File Management feature in Qlik Cloud! GET THE DETAILS!
cancel
Showing results for 
Search instead for 
Did you mean: 
sebdupont
Contributor II
Contributor II

Subtotals in straight table

Hi,

I know the option to get sub totals in a straight table by using show totals in the Dimension Limit Tab.

But i have a problem to get a subtotal by city in my example

What i want

CountryRegionCityitemquantity
USAFloridaMiamiA5
USAFloridaMiamiB10
  Total 15
USAFloridaSt PeteA10
  Total 10
 Total  25
USACaliforniaLos angeles 30
  Total 30
 total  30
Total   55

 

What i get

CountryRegionCityitemquantity
USAFloridaMiamiA5
  Total 5
USAFloridaMiamiB10
  Total 10
USAFloridaSt PeteA10
  Total 10
 Total  25
USACaliforniaLos angeles 30
  Total 30
 total  30
Total   55

 

If i want the country subtotal, i have to select show total in region dimension

If i want the region subtotal, i have to select show total in city dimension

logically, if I want the subtotal of the city, I select the item subtotal, but instead of making me a subtotal per city , it adds a subtotal for each items

The Quantity expression, is a simple sum.

I try to use a hiding dimension with no succes.

I hope to have been clear with this simple example, my app is a little more complex

Can someone help me ?

1 Solution

Accepted Solutions
Arthur_Fong
Partner - Specialist III
Partner - Specialist III

There you go.

You missed out a step to sort dimensions based on priority.

clipboard_image_0.png

I did it both on straight table and pivot table and it works well.

Refer qvw attached to check on the configurations I did.

Thanks and regards,

Arthur Fong

View solution in original post

5 Replies
Arthur_Fong
Partner - Specialist III
Partner - Specialist III

There you go.

You missed out a step to sort dimensions based on priority.

clipboard_image_0.png

I did it both on straight table and pivot table and it works well.

Refer qvw attached to check on the configurations I did.

Thanks and regards,

Arthur Fong

sebdupont
Contributor II
Contributor II
Author

Thanks Arthur, your simple example help me to understand where i was wrong

A simple column sorting problem.

Thanks again.

sugathirajkumar
Creator
Creator

sort->Region->Numeric VAlue->Decending
sugathirajkumar
Creator
Creator

clipboard_image_0.png

sebdupont
Contributor II
Contributor II
Author

Thanks for your help