The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
Hi, I have a pivot table. Can I get the average of the last 13 records for each column?
Average by per1 column
Solved! Go to Solution.
Try this:
Average Last 13 = CALCULATE(AVERAGE('Table'[Value]),TOPN(13,VALUES('Table'[min_date]),'Table'[min_date],DESC))
Change the red to match your tables and columns!
You can add a matrix with just the columns and the new measure.
Did I answer your question? Mark my post as a solution! Proud to be a Super User!
Connect with me!
Stay up to date on
Read my blogs on
Try this:
Average Last 13 = CALCULATE(AVERAGE('Table'[Value]),TOPN(13,VALUES('Table'[min_date]),'Table'[min_date],DESC))
Change the red to match your tables and columns!
You can add a matrix with just the columns and the new measure.
Did I answer your question? Mark my post as a solution! Proud to be a Super User!
Connect with me!
Stay up to date on
Read my blogs on