What type of nonfiction book should you write?

What type of nonfiction book should you write to tell your story? Memoir might seem like the obvious choice, but based on a number of factors, a knowledge-based book could be better.