Forum Discussion

dogt1225's avatar
dogt1225
Helper III
6 years ago
Solved

Average Days to Resolve by Fiscal Week

Hi All, 

I am looking to create a bar chart for the Average Days to Resolve(ADR) a ticket per Fiscal Week and a line that has the Running Average. Exactly like the screen shot below. 

ADR = cumulative sum of days to resolve / Total resolved ticket


I currently have a [Days to Resolve] field = DATEDIFF(Dataset[Submitted_Date], Dataset[Date Resolved], DAY). And I currently have a separate Calendar table that has Date, Fiscal Year, and Fiscal Week


Sample data set listed below Based on the sample data set, for the week of August 22 -August 28 2020 the ADR should be 58 days. 

 

IDSubmitted DateDate Resolved
12/17/20208/26/2020
22/27/20208/27/2020
34/29/20208/24/2020
44/30/20208/24/2020
55/4/20208/24/2020
65/7/20208/26/2020
75/22/20208/24/2020
86/4/20208/28/2020
96/10/20208/24/2020
106/11/20208/28/2020
117/9/20208/24/2020
127/14/20208/27/2020
137/21/20208/24/2020
148/4/20208/27/2020
158/5/20208/28/2020
168/10/20208/24/2020
178/11/20208/24/2020
188/14/20208/24/2020
198/19/20208/25/2020
208/21/20208/28/2020
218/24/20208/27/2020
228/26/20208/27/2020
238/27/20208/27/2020
248/27/20208/28/2020
252/9/20207/4/2020
265/20/20207/26/2020
277/4/20208/1/2020
288/10/20208/11/2020


Thank you in advance!

  • dogt1225 - I get 57.75 for my ADR for that week! 🙂

     

    Anyway, take a look at the attached PBIX file below my sig, Page 16, Table 16, Measure 16:

    Measure 16 = 
        VAR __Table = 
            ADDCOLUMNS(
                FILTER('Table (16)',[Date Resolved]<=MAX('Calendar'[Date]) && [Date Resolved]>=MIN('Calendar'[Date])),
                "Days",([Date Resolved] - [Submitted Date]) * 1.
            )
    RETURN
        DIVIDE(SUMX(__Table,[Days]),COUNTROWS(__Table),0)

3 Replies