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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
hokiefan1113
Advocate I
Advocate I

Average over the minute

Hi there,

 

I'm using a table that has data showing when punch transactions begin, when they've completed, and I've created a 3rd column that calculates the difference (i.e. processing time). Since there is such a massive inflow of data so frequently, I was wondering how I can calculate a column that shows the average inflow of punches (i.e. punch start) per minute, as well as the average processing time per minute. 

 

Thanks!

 

punch flow.PNG

1 ACCEPTED SOLUTION
v-yulgu-msft
Employee
Employee

Hi @hokiefan1113,

 

Please try:

average inflow per minute =
CALCULATE ( COUNT ( Table[Punch Start] ), ALL ( Table ) )
    / DATEDIFF ( MIN ( Table[Punch Start] ), MAX ( Table[Punch Complete] ), MINUTE )

average processing time =
CALCULATE ( SUM ( Table[Processing Time] )ALL ( table ) )
    / CALCULATE ( COUNTROWS ( Table )ALL ( Table ) )

Best regards,

Yuliana Gu

 

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

View solution in original post

1 REPLY 1
v-yulgu-msft
Employee
Employee

Hi @hokiefan1113,

 

Please try:

average inflow per minute =
CALCULATE ( COUNT ( Table[Punch Start] ), ALL ( Table ) )
    / DATEDIFF ( MIN ( Table[Punch Start] ), MAX ( Table[Punch Complete] ), MINUTE )

average processing time =
CALCULATE ( SUM ( Table[Processing Time] )ALL ( table ) )
    / CALCULATE ( COUNTROWS ( Table )ALL ( Table ) )

Best regards,

Yuliana Gu

 

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

Helpful resources

Announcements
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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