With the lack of information you provide, all I can do is give you a general rule that I use:
- Study the schematic and decide where each of the power (and ground) nets originate. That can be at a battery, a connector, the output of a power regulation circuit, the output of a power filtering circuit, the output of a power isolation circuit, etc.) The PWR-FLAG symbol should go right where the power net originates.
Also refer (if you haven’t already) to these two posts (links also in the FAQ Index):
https://forum.kicad.info/t/understanding-power-port-components/8945/3