Forum Discussion
Anonymous
3 years agoNot applicable
Rolling Average Using Index (NOT DATE)
Dear all, I would like to ask , "What are examples of workable coding that I can try using if I need to perform rolling average of 30 weeks using the INDEX row and NOT Dates?" because based on my re...
- 3 years ago
Anonymous So like:
Better RA = VAR __Index = MAX('Table'[Index]) VAR __MinIndex = __Index - 30 VAR __Table = FILTER(ALLSELECTED('Table'),[Index] < __Index && [Index] >= __MinIndex) RETURN AVERAGEX(__Table,[Value])Note, I pretty much just replaced [Date] with [Index]...
Greg_Deckler
Community Champion
3 years agoAnonymous Not the first clue. I don't have any data to compare one with the other so impossible to say.
Anonymous
3 years agoNot applicable
Dear Mr Greg_Deckler ,
here are the screenshots of my data (we are looking at row 276's total in Excel and the Rolling Average Sample 1 in Power BI). As you can see, the data does not match. Therefore, I would like to know if there are DAX amendments that I can make to ensure that this does not happen?
Further advice is much appreciated.
Yours sincerely,
Kaili
- Greg_Deckler3 years ago
Community Champion
Anonymous What is your Excel formula for your G276 cell?
- Anonymous3 years agoNot applicable
Greg_Deckler =SUM(M246:M276)/30