Forum Discussion

kamalbandam's avatar
kamalbandam
Icon for Helper III rankHelper III
6 years ago

Rolling months until the current Month

Hi Everyone,

 

I have a  measure of sum of sales i.w SUM_SALES and I have a calendar Tablei.e Y which has Month_Year values and other Date column which is n other tablei.e X where the calendar table is defined from. So, I want the Rolling Months 12 months average of SUM_SALES until the max month of the Original Table X where I have used Mpnth_Year column values from the Y Table.

 

I have tried many other ways to find a solution but couldn't get it. Currently I am getting Rolling average values until december which is not the required, the required is like I need to see the Rolling avg values only until the July Month where the Maximum months exists in the X Table.

 

Can Anyone Help me with this ?

 

Thanks in advance

2 Replies