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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
dhborchardt
Partner - Creator
Partner - Creator

Pivot Table Label Expresion

I would like to show the Sum  of vacation days for each department and keep it static like in the example below. I am guessing I need to do a expression in the label. Something like:  =Department & " = " & Sum(xxxxxxxx).    x = the sum of all the employees in the department featured. Maybe there is a more elegant way to do this?

Pivot Table
DepartmentNameVacation Days
Finance = 22Bob11
Sue4
Phil7
Sales = 16Joe5
Kim2
Bill9
Shipping = 14Jane8
Doug1
Jill5
Labels (1)
1 Solution

Accepted Solutions
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

You'll need a calculated dimension: =[Department] & ' = ' &  aggr(sum(xxxxx),Department). It's not very elegant, but it's the only way. You can't create dynamic labels for (sub)totals for individual dimension values.


talk is cheap, supply exceeds demand

View solution in original post

1 Reply
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

You'll need a calculated dimension: =[Department] & ' = ' &  aggr(sum(xxxxx),Department). It's not very elegant, but it's the only way. You can't create dynamic labels for (sub)totals for individual dimension values.


talk is cheap, supply exceeds demand