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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. 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
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.