Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
david_roble
Contributor II
Contributor II

Calculate the percentage per month with totals per column

Hello,

I'm trying to see % of sales per month in a pivot table, but I can not find a way to calculate % per month without having to filter.

Right now I have:

TeamJan. 2016Feb.2016
Team 127603002
Team 2424686
Team 3411321
Total35954009

I would be interested to know, if by some formula, I can add a new column, where it tells me the% of each team, since the ALL or TOTAL formulas get me the% of the sum of all the months.

The columns are made with the formula Monthname, of a field type DD / MM / YYYY hh: mm

Thank you

6 Replies
marcelviegas
Creator II
Creator II

sum(valor)/sum(total valor)

david_roble
Contributor II
Contributor II
Author

This formula in the pivot table, caluclate the % from all months

I need the percentage for month

This formula work in only 1 month selected

Thanks

marcelviegas
Creator II
Creator II

try.

sum(valor)/aggr(sum(total valor),month)

david_roble
Contributor II
Contributor II
Author

How select the "Total valor"?

In a pivot table the totals valors is a automatic.. and i dont know select one total in the pivot table

Months in the table are =monthname(date), in you formula would be:

sum(valor)/aggr(sum(total valor),monthname(date))  ?

Thanks!

david_roble
Contributor II
Contributor II
Author

Work! but only show in one cell:

I use:

SUM(aggr(Count(Valor),[Month]))

I see:

                      Jan.2016

Team 1     2760    /  3595

Team 2       424    /        0

Team 3       411    /         0

sunny_talwar

Try this

Aggr(NODISTINCT Count(Valor), [Month])