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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Anonymous
Not applicable

Average of a Measure over time to gauge seasonality

Hi all, I'm having trouble calculating an average of a measure, and after trawling the forums for an hour or two unsuccessfully I thought someone might be able to assist.

 

I have an SQL query pulling data into Power BI desktop from a shipping database and the following measure which gives me the number of vessel movements where the movement type is not X:

 

Vessel Movements = CALCULATE(COUNT('Tug Movements'[VM_MovementType]), 'Tug Movements'[VM_MovementType]<>"X")

 

I have matrix visualisation that is displaying this by month (columns) and financial year (rows) where each financial year runs Oct - Sep. I'd like to include an average by Month by FY, similar to the Total, which gives me the average (for example) of each October across all the FY. This is to measure seasonality. Can anyone assist, please?

1 ACCEPTED SOLUTION

@Anonymous,

 

Modify your measure like below:

Vessel Movements = CALCULATE(COUNT('Tug Movements'[VM_MovementType]), 'Tug Movements'[VM_MovementType]<>"X") / DISTINCTCOUNT('Tug Movements'[Financial  Year])

Capture.PNG  

 

Appendix attached.

 

Regards,

Jimmy Tao

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Added screenshot as below

Anonymous
Not applicable

Here is what I currently have in PBi. Want to be able to use my Vessel Movement measure to calculate an average by month, grouped by FY (eg instead of the total, 434, for October, I'd like to get the average as another measure that I can use in a graph visualisation as well as another table or matrix). FY is a calculated column from my date table.

 

 PBI image.PNG

@Anonymous,

 

Modify your measure like below:

Vessel Movements = CALCULATE(COUNT('Tug Movements'[VM_MovementType]), 'Tug Movements'[VM_MovementType]<>"X") / DISTINCTCOUNT('Tug Movements'[Financial  Year])

Capture.PNG  

 

Appendix attached.

 

Regards,

Jimmy Tao

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!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.