Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and a 50 percent discount on exams.
Get startedEarn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
I am trying to calculate a dynamic average for the highest 3 Total Sales Quarters averaged to use as a target, so in theory if a new quarter had the highest bookings then it would replace number 1 ranked and all others drop down by 1 position.
I have a table that looks like this:
I have Total Bookings
Any help with this would be great
@Anonymous , Try one of the two
CALCULATE(AverageX(values('Calendar Table'[Year Quarter]),[Total Bookings]) ,TOPN(3,allselected('Calendar Table'[Year Quarter]),[Total Bookings],DESC),VALUES('Calendar Table'[Year Quarter]))
CALCULATE(AverageX(values('Calendar Table'[Year Quarter]),[Total Bookings]) ,TOPN(3,allselected('Calendar Table'[Year Quarter]),[Total Bookings],DESC))