Use this phrase when you're switching from talking about a negative idea to a positive one. For example:
It ended up costing a lot more than I thought it would. But on the bright side, I think the resale value will be high if we ever decide to sell it.
You can also tell someone to "look on the bright side".