Forum Discussion
michaeldonnelly
6 years agoFrequent Visitor
Rolling/Moving Average - Sports form guide
HI all, im looking to create a rolling average of the last 6 matches played by a team, so in the data below, what are the average points per game from the last 6, obviously this would be different pe...
- 6 years ago
Hi michaeldonnelly ,
try this.
Rolling AVG Points last 6 matches = CALCULATE ( AVERAGE ( 'Table'[Points] ), TOPN ( 6, FILTER ( ALLSELECTED ( 'Table'[Date] ), 'Table'[Date] <= MAX ( 'Table'[Date] ) ), 'Table'[Date], DESC ) )Regards,
Marcus
Dortmund - Germany
If I answered your question, please mark my post as solution, this will also help others.
Please give Kudos for support.
mwegener
6 years agoMost Valuable Professional
Hi michaeldonnelly ,
I don't have access to your link.
Please check the authorization.
It should be "Anyone with this link".
michaeldonnelly
6 years agoFrequent Visitor
Doesnt seem to want to allow me the option to share without and email from my one drive, so uploaded to dropbox, link below
- mwegener6 years agoMost Valuable Professional
Hi michaeldonnelly ,
try this.
Rolling AVG Points last 6 matches = CALCULATE ( AVERAGE ( 'Table'[Points] ), TOPN ( 6, FILTER ( ALLSELECTED ( 'Table'[Date] ), 'Table'[Date] <= MAX ( 'Table'[Date] ) ), 'Table'[Date], DESC ) )Regards,
Marcus
Dortmund - Germany
If I answered your question, please mark my post as solution, this will also help others.
Please give Kudos for support.