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
Anonymous
Not applicable

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.,will store, my requirement is i want to create a column where i have to mention all the created requests(Even completed to be captured) as Inflow and the requests which are completed(Only completed out of all) as Outflow in new column.

 

Thanks in Advance

1 ACCEPTED SOLUTION

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])

 

5.PNG

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

5 REPLIES 5
vanessafvg
Super User
Super User

@Anonymous its very difficult to read and easily understand what you are asking

 

please provide a table of the information with an example of what you want.

 

ta





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




Anonymous
Not applicable

Hi vanessafvg

 

Below screenshot is my requirement and i have mentioned the Data link below.

            Capture.PNG

Data

 

Thanks

Hi @Anonymous,


Can you please share some sample date test? I have can't open your sharepoint link.

 

Regards,
Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
Anonymous
Not applicable

Hi

 

I can Able to load only screenshoot

 

Capture1.PNG

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])

 

5.PNG

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

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.