Skip to main content

App Development

Discussion board where members can learn more about Qlik Sense App Development and Usage.

Announcements
QlikWorld 2023, a live, in-person thrill ride. Save $400 before Dec 31st: REGISTER NOW!
cancel
Showing results for 
Search instead for 
Did you mean: 
m_perreault
Creator III
Creator III

Totals In Pivot Table with Measures as Rows

Hi All I have the below Pivot Table which has measures as the rows.  Is it possible to get totals for each measure?

pivottable.png

1 Solution

Accepted Solutions
sunny_talwar

Oh got it... may be add a island table in the script like this

Dim:

LOAD * INLINE [

Dim

1

2

];

and then change your Company dimension to this

Pick(Dim, Company, 'Total')

View solution in original post

6 Replies
sunny_talwar

So, NAV, Total Debt, Cash.... etc are values within a field? and you would like to add Total Sources and Total Uses as extra values?

m_perreault
Creator III
Creator III
Author

Ah sorry ignore the coloring.  Each row is a different measure/expression and I would like to show totals for each measure across all companies.  So ideally there would be a totals column which shows the totals for each measure. i.e total nav = Company 1 NAV + Company 2 NAV + Company 3 NAV Etc

sunny_talwar

Oh got it... may be add a island table in the script like this

Dim:

LOAD * INLINE [

Dim

1

2

];

and then change your Company dimension to this

Pick(Dim, Company, 'Total')

m_perreault
Creator III
Creator III
Author

Awesome thanks!

m_perreault
Creator III
Creator III
Author

One more question.  My total responds to selections made, ie if I select company 1 the total column will show the same values as just company one.  Do you have an idea on how to have the total column show values for the whole data set.

sunny_talwar

May be try this expression

Pick(Dim,

Sum(Measure),

Sum({1} Measure))