which first – niche or product?

Hi Brooke, I am currently in the stage of brainstorming ideas for a product/program I’d like to create. I have a few areas in which I’m interested in, and I was wondering.. should I figure out my niche market first or create my program/product and then figure out my target audience? Thank you!