Kindly create two measures for Total Sales and profit margin then you can drag them to value column and drag your multiple dimensions to row of table visual to filter the data as per your requirement.
Thanks Harish