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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.