Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello Group! I would like to show prior 3 year average percent of total as highlighted in red. Prior 3 year average is based on years 2015 - 2017. The weeks shown are for fiscal November. I used =sum(NetSales)/Sum(Total <[Fiscal Year]> NetSales) to calculate percent of total but can't figure out how to calculate the averages. Please help. Thank you.
Thank you
Sorry. I am working in QlikSense in a Pivot Table.
This would be previous 3 yr expression but you looking for a dimension
Sum({<[Fiscal Year] = {$(=Max([Fiscal Year])-1)} ,Month >+< Year = {$(=Max([Fiscal Year])-2)} ,[Month Full Name]>+< [Fiscal Year] = {$(=Max([Fiscal Year])-3)} ,Month >}NetSales)
/
Sum({<[Fiscal Year] = {$(=Max([Fiscal Year])-1)} ,Month >+< [Fiscal Year] = {$(=Max([Fiscal Year])-2)} ,[Month Full Name]>+< [Fiscal Year] = {$(=Max([Fiscal Year])-3)} ,Month >} NetSales)
Not sure how you would add an extra row in between generic year column
Khan_Mohammed, thank you for your response. This formula does not seem to be working. I am getting 100% all the way through.
Khan-Mohammed, thank you. This formula gives me percent of total for each year but not the rolling 3 year average. What formula would I use to come up with 3 year rolling average as highlighted in my example?
Thank you