Skip to main content
Announcements
SYSTEM MAINTENANCE: Thurs., Sept. 19, 1 AM ET, Platform will be unavailable for approx. 60 minutes.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Average Sales based on month selection

Hi All,

I want to show YTD Sales Average for Dept1  in a pivot table with month selection as shown below:

 

MonthSalesYTD Avg Sales
Jan-161010
Feb-162015
Mar-163020
Apr-164025
May-165030
Jun-166035
Jul-167040
Aug-168045
Sep-169050
Oct-1610055

Please help me. Thanks in advance.

1 Solution

Accepted Solutions
tresesco
MVP
MVP

Use Exp:

Aggr(Rangeavg(Above( sum({<Month>}Sales),0,RowNo())), Dept,Month)

View solution in original post

12 Replies
tresesco
MVP
MVP

Replace your Dept dimension with Month like in attached sample.

Not applicable
Author

Hi Tresco,

Thanks for the reply.

My chart is with Dept,Sales,YTD Sales.

For Dept1 and Jan-16 selection , I want to show YTD Sales 10,

For Dept1 and Feb-16 selection , I want to show YTD Sales 15,

For Dept1 and Mar-16 selection , I want to show YTD Sales 20,

For Dept1 and Apr-16 selection , I want to show YTD Sales 25.

Please help me !

Capture.PNG

tresesco
MVP
MVP

Jack 061685 wrote:

Hi Tresco,

Thanks for the reply.

My chart is with Dept,Sales,YTD Sales.

For Dept1 and Jan-16 selection , I want to show YTD Sales 10,

And you are not selecting the month to see the result. I am a bit confused.

Not applicable
Author

Yes. Selecting the month. But I want to show Dept dimension in the chart/table.

tresesco
MVP
MVP

Capture.PNG

This is not what you want. Then what do you want it to be like with the same selection?

Not applicable
Author

I want to show for Feb-16 selection,

Dept1, Sales 20, YTD Sales 15.

susovan
Partner - Specialist
Partner - Specialist

You can try this attachment,

9.JPG

Warm Regards,
Susovan
tresesco
MVP
MVP

Use Exp:

Aggr(Rangeavg(Above( sum({<Month>}Sales),0,RowNo())), Dept,Month)

Not applicable
Author

Hi Susovan,

For Feb-16 your solution showing YTD Avg Sales 20. But it should show 15.

Capture.PNG