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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
mumair
Helper I
Helper I

Averaging Minimums not Working Correctly

So ultimately what I want to do is calculate the average minimum time between two different events at each location.

 

In order to do this, I started with making a column:

NOR2CargoLoading = datediff('Time Log'[Notice of Readiness Tendered],'Time Log'[Commenced Cargo Loading],minute)

 

After this, I needed to find the minimum time per voyage.

Min of NOR2CargoLoading min per Voyage # =
MINX(
 KEEPFILTERS(VALUES('Time Log'[Voyage #])),
 CALCULATE(MIN('Time Log'[NOR2CargoLoading]))
)

 

At this point, everything is working correctly. Next I tried to average the minimums and this is where things start to go south:

Min of NOR2CargoLoading min per Voyage # average per Location =
AVERAGEX(
 KEEPFILTERS(VALUES('Time Log'[Location])),
 CALCULATE('Time Log'[Min of NOR2CargoLoading min per Voyage #])
)

 

Instead of calculating the average for each location, it is calculating the minimum for each location. Any advice?

1 REPLY 1
v-ljerr-msft
Microsoft Employee
Microsoft Employee

Hi @mumair,

 

Could you also post some sample data and your expected result? So that we can better assist on this issue. Smiley Happy

 

Regards

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.