Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Rolling 3 month avg and previous 3 month avg

Hi All,

I am trying to get a rolling average for the three months prior to the current three month average. (Displaying this in a text box)

Here is the formula that I am using for the current three month rolling average.

Capture.PNG

Thank you for the help in advance!

1 Solution

Accepted Solutions
sinanozdemir
Specialist III
Specialist III

I guess you can try:

MSPClinStartDateClean>=AddMonths(today(), -6) And MSPClinStartDateClean<=AddMonths(today(), -3)

View solution in original post

5 Replies
sunny_talwar

Can you paste your expression as a text so that we can offer modification?

Anonymous
Not applicable
Author

Sure, Thank you.

=round(sum(if(MSPClinStartDateClean>AddMonths(today(),-3), [MSPClin Overall facility experience]))/count(distinct(if(MSPClinStartDateClean>AddMonths(today(),-3), [MSPClinResponseID]))),0.01)

sinanozdemir
Specialist III
Specialist III

I guess you can try:

MSPClinStartDateClean>=AddMonths(today(), -6) And MSPClinStartDateClean<=AddMonths(today(), -3)

Anonymous
Not applicable
Author

Thank you for the help Sinan, that did the trick.

Cheers

sinanozdemir
Specialist III
Specialist III

You are welcome.