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
Borednlost
Regular Visitor

Intraday Rolling Average

Hi all,

 

I'm very new to PBi and am trying to calculate SLA adherence at a call centre during a day.
My data has the % of calls handled in SLA by 30min interval, but all the rolling average solutions I've seen use 'DATESINPERIOD'.  A days data looks like:

IntervalsSLAExpected Result
7:00:00 AM100100
7:30:00 AM100100
8:00:00 AM8695.33333333
8:30:00 AM1775.75
9:00:00 AM3968.4
9:30:00 AM5666.33333333
10:00:00 AM757.85714286
10:30:00 AM050.625
11:00:00 AM645.66666667
11:30:00 AM041.1
12:00:00 PM037.36363636
12:30:00 PM034.25
1:00:00 PM031.61538462
1:30:00 PM3331.71428571
2:00:00 PM029.6
2:30:00 PM027.75
3:00:00 PM10032
3:30:00 PM9335.38888889
4:00:00 PM033.52631579
4:30:00 PM031.85
5:00:00 PM030.33333333
5:30:00 PM5031.22727273
6:00:00 PM8033.34782609
6:30:00 PM10036.125
7:00:00 PM10038.68
7:30:00 PM10041.03846154
8:00:00 PM10043.22222222
8:30:00 PM10045.25
2 REPLIES 2
amitchandak
Super User
Super User

@Borednlost , If Interval is datetime column then try a new column

new column =
avergageX(filter(Table,[interval] >earlier([interval]) -time(23:59:29) ),[SLA])

kumar27
Advocate V
Advocate V

can you expain a bit more? do you want to use datesinperiod ? or the goal is to get the rolling average as in column C?

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.

Top Solution Authors