In order to calculate net flows, you need data how fund size evolved over time, and fund returns. Then the change in the fund size beyond the fund return can be attributed to fund flows.
to discover how paid out profits influence the flows estimate: In a similar way charges and fees should also influence flow estimates, but are seldom mentioned.