Skip to main content
Announcements
Live today at 11 AM ET. Get your questions about Qlik Connect answered, or just listen in. SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
joseph_eftamand
Partner - Creator
Partner - Creator

How can I add totals for each month on pivot table

The totals for this pivot table are proving tricky to manipulate. Another issue is that the total price EUR-probability is grouped for each invoice of the same price. If I can get the totals for each month right then this won't be a problem. Any ideas

1 Solution

Accepted Solutions
sunny_talwar

Try putting Sum(Aggr()) around your expression

Sum(Aggr(

((win_probability)/100)*(if(currency='GBP',EachMonthAmount*$(GBPtoEUR),EachMonthAmount))

,YourDimensionsSeparatedByComma))

View solution in original post

8 Replies
sunny_talwar

What is your expression?

krishnacbe
Partner - Specialist III
Partner - Specialist III

Hi,

Enable the Partial sum for MonthYear and check

joseph_eftamand
Partner - Creator
Partner - Creator
Author

((win_probability)/100)*(if(currency='GBP',EachMonthAmount*$(GBPtoEUR),EachMonthAmount))

The expression calculates the adjusted value based on the probability of a win, if the currency is in GBP that is converted to EUR. EachMonthAmount is created in the script it takes the number of months between the start date and the invoice date and divides the sum into equal parts spread between the months between the two dates.

joseph_eftamand
Partner - Creator
Partner - Creator
Author

I have tried that, but to no avail...

joseph_eftamand
Partner - Creator
Partner - Creator
Author

Pivot Tableinc.PNG

devarasu07
Master II
Master II

Hi,

Can you share your app with mock data set?. it's easy for us to check and help you quickly. Thanks

Regards,

Deva

sunny_talwar

Try putting Sum(Aggr()) around your expression

Sum(Aggr(

((win_probability)/100)*(if(currency='GBP',EachMonthAmount*$(GBPtoEUR),EachMonthAmount))

,YourDimensionsSeparatedByComma))

shun_wong
Partner - Contributor III
Partner - Contributor III

Please use Sunny Ts response, but ensure you use all the dimensions to your left, and put partial sum against your first dimension.