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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. 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
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 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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