Skip to main content
Announcements
July 15, NEW Customer Portal: Initial launch will improve how you submit Support Cases. IMPORTANT DETAILS
cancel
Showing results for 
Search instead for 
Did you mean: 
Apporv_Anand
Partner - Contributor II
Partner - Contributor II

Pivot Table Sum/Avg Incorrect

When I am making no selection the values are correct but when I use any filter or select any dimension from pivot table for filtering the values get incorrect.

The same expression and variables  works  fine on a straight table but incorrect  on pivot.

Can Someone please help in this scenario !!!!!!!

 

Labels (1)
3 Replies
stevejoyce
Specialist II
Specialist II

Can you share your expressions and screenshots.

Apporv_Anand
Partner - Contributor II
Partner - Contributor II
Author

num(Sum({<MonthYear=,CalenderDate={">=$(=Date(MonthStart(AddMonths(Max(CalenderDate),-2)), 'DD/MM/YYYY'))<=$(=Date(MonthStart(AddMonths(Max(CalenderDate),0)), 'DD/MM/YYYY'))"}>}[Units])/3,'##0.00')

This is the expression for last 3 months and similarly for 6,12 months.Basically I am getting 9 times the value on selecting a particular filter.

 

stevejoyce
Specialist II
Specialist II

Can you ignore MonthYear in your calendardate calculation like this:

 

num(Sum({<MonthYear=,CalenderDate={">=$(=Date(MonthStart(AddMonths(Max({<MonthYear=>}CalenderDate),-2)), 'DD/MM/YYYY'))<=$(=Date(MonthStart(AddMonths(Max({<MonthYear=>}CalenderDate),0)), 'DD/MM/YYYY'))"}>}[Units])/3,'##0.00')