Forum Discussion
YTD Average
- 5 years ago
Anonymous , Try like this with a date table
calculate(averageX(values(Table[period]), calculate(sum(Table[grade A]))), datesytd('Date'[Date]))
If you year period, make sure they are in a separate table join to this table
YTD= CALCULATE(saverageX(values(Table[period]), FILTER(ALL('Date'),'Date'[Year]=max('Date'[Year]) && 'Date'[period] <= Max('Date'[period]) ))
LYTD = CALCULATE(averageX(values(Table[period]), FILTER(ALL('Date'),'Date'[Year]=max('Date'[Year])-1 && 'Date'[period] <= Max('Date'[period])))
Hi Anonymous ,
The link you share isnt available,could you pls modify it and share again?
Best Regards,
Kelly
Did I answer your question? Mark my post as a solution!
- Anonymous5 years agoNot applicable
Hello v-kelly-msft
Can you try again please and tell me if it works? (or may be my organization blocks it).
Hervé
- v-kelly-msft5 years agoCommunity Support
Hi Anonymous ,
Still unavailable,could you pls paste some sample data for test?
Best Regards,
KellyDid I answer your question? Mark my post as a solution!