Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
NicoAbsil
New Member

How to calculate average of a balance at filter date (month-end and balance at previous year-enddate

Assume y/e is Jun and current reporting or filter date is Oct-23. How do I calculate the simple average of a balance at at Oct-23 and as at Jun-23. I only have month-end values in table. Needs to be dianamic, i.e. if I filter on Sep-23, average to change to values as at Sep-24 and Jun-23 devided by 2.

1 REPLY 1
Akash_Varuna
Super User
Super User

 

Identify Year-End: Dynamically calculate the closest June date before or equal to the selected month (e.g., jun-23 for oct-23).

Fetch Balances: Get the balance for the selected month (e.g., oct 23) and the most recent year-end (e.g., jun 23).

Calculate Average: Add the two balances and divide by 2.

 

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.