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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
emma313823
Helper V
Helper V

How to calculate Average Monthly Revenue

Hi All,

 

I am working on a report build where the owners want to see card visuals showing Average Monthly Revenue for the last two full years and the current year. I created a measure which I beleieve is working for the full year of 2022 and 2023. I believe this is saying sum the Revenue (which I have restricted to each year on the card visual, then divide by 12 months). 

 

AvgMoRev = DIVIDE(SUM('Acctg Revenue'[Revenue]),
    COUNT('Acctg Revenue'[Month]))
 
I need to do this for 2024, but I'm stuck. Is there a way to modify the formula, so it will automatically sum up what I have for 2024 and then divide by the number of months completed? For example...Revenue for 2024 is in through June and we are still in July receiving revenue...so I only want the formula to calculate and provide the average revenue based on the previous month ended. Is this possible?
 
Emma
Emma
1 ACCEPTED SOLUTION
PhilipTreacy
Super User
Super User

Hi @emma313823 

 

Download example PBIX file

 

You can use this to calculate your Avg Monthly Revenue up to the end of the previous month in the current year

 

AvgMoRevCurrYear = DIVIDE(CALCULATE(SUM('DataTable'[Value]), FILTER('DataTable', 'DataTable'[Date] < EOMONTH(TODAY(),-1))) , (MONTH(TODAY())-1), 0)

 

Regards

 

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


View solution in original post

1 REPLY 1
PhilipTreacy
Super User
Super User

Hi @emma313823 

 

Download example PBIX file

 

You can use this to calculate your Avg Monthly Revenue up to the end of the previous month in the current year

 

AvgMoRevCurrYear = DIVIDE(CALCULATE(SUM('DataTable'[Value]), FILTER('DataTable', 'DataTable'[Date] < EOMONTH(TODAY(),-1))) , (MONTH(TODAY())-1), 0)

 

Regards

 

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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