Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

Running Sum in Power BI for Ticket Backlog

I have IT Tickets data with below shown columns Ticket Number Ticket Status Ticket CreatedDate Ticket ResolvedDate I would like to create a report like below...   Month Created Count Re...
  • carlomoretto's avatar
    7 years ago

    Hi!

     

    I think you could make a calendar table and establish relationships between the calendar table date and the creation and resolution dates. You can then use these relationships to compute the measures you need.

     

    Here's what I've done.

     

    Created a calendar table called DimDate using CALENDARAUTO()

    Created relationships between the Date variable from the Calendar table and the Creation and Resolution Date.

     

    I then created the 3 measures:

     

    Created Count = CALCULATE(COUNT(data[ID]))

    Resolved Count = CALCULATE(COUNT(data[ID]);USERELATIONSHIP(data[Resolution Date];DimDate[Date]);data[Resolution Date]<>BLANK())

    Backlog = CALCULATE([Created Count]-[Resolved Count];FILTER(ALLSELECTED(DimDate);DimDate[Date]<=max(DimDate[Date])))

     

    Created, Resolved, Backlog

     

    I hope this works for you!