You should able to create measures for individual companies and the number of companies is not big than numbers and keep them in "Line values"
CompanyA = calculate(sum(sales), filter(tbl, [company] = "CompanyA"))
and create the same companies for the next 4 companies
Check the Power bi training provided by Intellipaat
Also, check out our YouTube video more insights