Forum Discussion

ChrisB1977's avatar
ChrisB1977
Frequent Visitor
7 years ago
Solved

Issue with rolling 6 month average

Hi,   I'm having some trouble with a rolling 6 month average. I have the following order data:     The data is taken from a count of orders - each order has its own row, and the order numb...
  • v-danhe-msft's avatar
    7 years ago

    Hi ChrisB1977,

    Based on my test, you could refer to below steps:

    Create a calender table:

    Table = CALENDARAUTO()

    Create a measure:

    Orders R 6M Ave = DIVIDE(CALCULATE(SUM(Table1[Order number]),DATESINPERIOD('Table'[Date],MAX('Table1'[Month]),-6,MONTH)),6)

    Result:

    You could also download the pbix file to have a view.

     

    Regards,

    Daniel He