Nonviable Pregnancy

What does this mean?

I got a positive on the Pregnancy Test but wasnt feeling well for a few days. Tested my HCG levels, it went from 60 to 30 to 12.

Doc says that the pregnancy is not viable. She says i WAS pregnant but I lost it. Is this considered a miscarriage? What are the possible reasons or explanation for this?