The Danish had a "fat tax" but abolished it back in 2012. At the time approximately 47% of Danes were overweight. A study conducted in 2016 suggested that the Danes brought 4% less saturated fat products, consumed more fruit and veg but also consumed more salt, salt which causes high blood pressure which leads to more serious health conditions... The study also ignored the fact that one of the reasons it was scrapped was because Danes were hopping over the border to Germany and stocking up there, so how much of that 4% actually was 4% is another factor... The reversal lead to the cancelling of a planned sugar tax...
It didn't work for Denmark...