I agree. It's not trivial, and although very few people die from erectile dysfunction it was a bad example to use. My last paragraph talks about cough medicine.
Here's some information about medication costs in the NHS for 2011.
(http://www.ic.nhs.uk/webfiles/publications/007_Primary_Care/...)
A search for viagra shows the page for ED meds. Sildenafil totals are 1,279,500 prescribed, at a cost of £40,872,800 (Check my decimal places!) and the total for all ED meds is £84,033,500.
That might not sound like much - the UK wants to spend something like £500m per year just on malaria.
But spending on ED targets a small number of mostly old people. The QALY cost is about $11,000. Spending on malaria targets a very large number of people, many young, but people of all ages.
If you want an actual trivial medication let's look at cough medicine; mostly sugary syrup with strong flavorings, sometimes with paracetamol and sometimes with other stuff. Most doctors say it's pointless and expensive and that people do just as well with hot lemon and honey and correctly taken paracetamol. We spend about £500m in the UK on cough mixtures. Americans spend about $2Billion. (That B isn't a typo.)
Malaria spending (http://www.guardian.co.uk/global-development/2012/apr/25/wor...)
ED QALYs (http://www.ncbi.nlm.nih.gov/pubmed/10858175)
Cough medicine spending (http://www.mintel.com/press-centre/press-releases/410/consum...)