Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
9 years ago
Solved

How do i get Inflow and Outflow count

Hi  I have requirement that, in a table we have capturing requests made by user so in Request Id column ids will create and in status column status of the rquests like Assigned,pending,completed etc...
  • Anonymous's avatar
    Anonymous
    9 years ago

    HI Anonymous,

     

    You can try to use below formula calculate the inflow and outflow count:

     

    Prerequisite: you need a calendar table as the axis.

     

    Inflow Count = COUNTX(FILTER(ALLSELECTED(Records),[SubmitDateTime]<=MAX('CALENDAR'[Date])&&[CompletedDateTime]>MAX('CALENDAR'[Date])),[ID])
    
    Outflow Count = COUNTX(FILTER(ALLSELECTED(Records),[SubmitDateTime]>MAX('CALENDAR'[Date])||[CompletedDateTime]<MAX('CALENDAR'[Date])),[ID])

     

     

    Regards,

    Xiaoxin Sheng