Forum Discussion
Aha2022
3 years agoRegular Visitor
Unit sales by product formula
Hello I have a table shows the products name and I want to know what is the product percentage from all the quantity sold. the formula is Unit Sales by Product (%) = Product Quantity Sold/ total Qu...
- 3 years ago
Hi,
To your visual, drag the product name column from the Data Table and write these measures
Qty sold = sum(Data[Quantity])
Qty sold across all products = calculate([Qty sold],all(Data[Product name]))
Qty sold (%) = divide([Qty sold],[Qty sold across all products])
Hope this helps.
Anonymous
3 years agoNot applicable
Hi Aha2022 ,
measure =
var Product Quantity Sold = calculate(sum(sales),allexcept(table,[product]))
var total Quantities Sold = calculate(sum(sales),all(table))
return
Product Quantity Sold/Quantities Sold
Best Regards,
Jay