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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Pivot table total Column from only one dimension.

qlikviewpic1.png

I am fairly new to qlikview so hopefully this question isn't too dumb. I have created the pivot table shown above. I would like to add another totals column next to "Total 1" which is calculated from only the "Division Dimension" so that it looks like the picture below. The goal is to show the total from the year before. I tried using total<Division> but this will only show the correct total if one division is selected and the value is also displyed under every month column as well. I would like only the total of that calculation to be displayed.

Thanks!!

Marc

qlikviewpic2.png

1 Solution

Accepted Solutions
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Use a calculated dimension like aggr(sum({<Year={"$(=only(Year)-1)"}>}Value),Division)

Year, Value and Division should be replaced with the correct names for your data. You also need to have data for more than one year in your data (should be obvious if you want to show previous years totals). And you need to select one year or the calculated dimension won't return values.

You'll probably have to drag the new calculated dimension in the right place (just to the right of the first column).


talk is cheap, supply exceeds demand

View solution in original post

2 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Use a calculated dimension like aggr(sum({<Year={"$(=only(Year)-1)"}>}Value),Division)

Year, Value and Division should be replaced with the correct names for your data. You also need to have data for more than one year in your data (should be obvious if you want to show previous years totals). And you need to select one year or the calculated dimension won't return values.

You'll probably have to drag the new calculated dimension in the right place (just to the right of the first column).


talk is cheap, supply exceeds demand
Not applicable
Author

That worked perfectly. Thanks for the help!!