Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreWe'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
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?
Hi @mumair,
Could you also post some sample data and your expected result? So that we can better assist on this issue. ![]()
Regards
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 51 | |
| 37 | |
| 35 | |
| 19 | |
| 17 |
| User | Count |
|---|---|
| 72 | |
| 70 | |
| 39 | |
| 34 | |
| 23 |