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

Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more

Reply
globe11123
Helper I
Helper I

Monthly Turnover Average YTD

I'm trying to work out the monthly turnover for 22/23, we want the calculation to only take into account full months.

 

For example average for this month would be April+May / 2 then next month it would be April+May+June / 3 etc.

 

MonthlyAvg22-23 = (CALCULATE(SUM(INVOICE[NetTurnoverGBP]),('Calendar'[Fiscal Year])="22-23", filter 2)))
 
I've tried by using the above calculation but it becomes tricky when your trying to compare the month you are on against the fiscal month number. Any suggestions?
1 ACCEPTED SOLUTION
v-jayw-msft
Community Support
Community Support

Hi @globe11123 ,

 

You could create a column to check if the month is a full month.

For example:

isfullmonth = 
IF(ENDOFMONTH('Table'[date]) = DATE(YEAR('Table'[date]),MONTH('Table'[date])+1,1)-1,1,0)

 Then add this column as a filter condition to your formula.

 

Best Regards,

Jay

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.

View solution in original post

2 REPLIES 2
v-jayw-msft
Community Support
Community Support

Hi @globe11123 ,

 

You could create a column to check if the month is a full month.

For example:

isfullmonth = 
IF(ENDOFMONTH('Table'[date]) = DATE(YEAR('Table'[date]),MONTH('Table'[date])+1,1)-1,1,0)

 Then add this column as a filter condition to your formula.

 

Best Regards,

Jay

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.
amitchandak
Super User
Super User

@globe11123 , to get monthly avg of measure, You can try a measure like

 

AvergaeX(Values('Date'[Month Year]), [Measure])

 

Prefer to use date table, else use month year from your table

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
March PBI video - carousel

Power BI Monthly Update - March 2025

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

March2025 Carousel

Fabric Community Update - March 2025

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

Top Solution Authors
Top Kudoed Authors