Forum Discussion

torbenani's avatar
torbenani
Frequent Visitor
6 years ago
Solved

Count open support case

For a service desk application, I want to count the number of open cases a any given time. I have tow date columns "CreatedDate" and "SolutionDate". I case is considered to be open at any "given date...
  • az38's avatar
    az38
    6 years ago

    torbenani 

    Oh, sorry, my bad

    Open Cases = 
    CALCULATE(COUNTROWS(Table), 
    FILTER(ALL(Table), 
    Table[CreatedDate] < SELECTEDVALUE('Calendar Table'[Date]) && 
    (Table[SolutionDate] > SELECTEDVALUE('Calendar Table'[Date]) || ISBLANK(Table[SolutionDate]))
    )
    )