You have to work backward from your requirement.
You have a point where you have a requirement of xx l/s @ yy bar (only stating flow is incomplete information). If you are supplying to a sprinkler, an orifice, a heat exchanger, or a hose, pressure is linked to flow.
Then you have to add losses...