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: 
Not applicable

Pivot subtotal by dimensions

How do I get subtotals of sub-dimensions in a pivot table? I have used the 'Show Totals' on all the dimensions, but I need sub-totals by category. Excel attached.

Dimensions:

  1. Charges_region
  2. Charges_Location_Name
  3. If(match(Charges_CPT_Rollup,'New Clinical Patients','Established Clinical Patients','Excisions','Mohs Surgery'),Charges_CPT_Rollup)

Expressions:

  • sum({$<Charges_CPT_KeyStatReport={'Y'},Charges_Department={'Clinical','Surgery','Phototherapy','*Unmapped*'}>}quantity)

Thank you.

5 Replies
sunny_talwar

Is your third dimension category? May be enable the sub-total for only your third dimension and disable them for all else?

Not applicable
Author

Hi Sunny - I tried enabling and disabling diff combos for the three dimensions and that doesn't seem to get me what I need. Qlik only gives me a top line total, but doesn't provide a total for each of the New Patients, Established Patients, Repairs, Surgery categories that I need. Should I be using aggr function on this? Thanks.

shraddha_g
Partner - Master III
Partner - Master III

Enable Show total to the dimension for which you want to display total.

Anonymous
Not applicable
Author

Enable subtotal for Category only and disable it for other dimensions.

Not applicable
Author

Try this:

sum({$<Charges_CPT_KeyStatReport={'Y'},Charges_Department={'Clinical','Surgery','Phototherapy','*Unmapped*'}>} total <Charges_Location_Name> quantity)