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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Calculate percentage of total for each month

Hi

I have some values for 3 different products across different months and would like to find out the percent of each product per month.

see below table for example.

MonthYrProductValue
01-2015Widget A5
01-2015Widget B4
01-2015Widget C6
02-2015Widget A7
02-2015Widget B9
02-2015Widget C1
03-2015Widget A2
03-2015Widget B8
03-2015Widget C3

So for Widge A in 01-2015, I would like to find out that the percentage for Widget A is 33.33%  (5 divided by 15; 15 is the total for the month of 01-2015).  See below for the expected numbers for "Percent by Month"

MonthYrProductValuePercent by Month
01-2015Widget A533.33%
01-2015Widget B426.67%
01-2015Widget C640.00%
02-2015Widget A741.18%
02-2015Widget B952.94%
02-2015Widget C15.88%
03-2015Widget A215.38%
03-2015Widget B861.54%
03-2015Widget C323.08%

thanks very much

Louise

1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Hi,

Maybe, like this it.

View solution in original post

3 Replies
ramoncova06
Partner - Specialist III
Partner - Specialist III

you can use total for this

sum(total <MonthYr> Value)/sum(total <MonthYr,Product> Value)

Anonymous
Not applicable
Author

Hi,

Maybe, like this it.

Anonymous
Not applicable
Author

2.PNG

1.PNG