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 Quantities Sold
but I dont know how to write it as a measure. I need your help
Solved! Go to Solution.
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.
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
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.
@Aha2022 , The measure should be
Unit Sales by Product (%) = Divide(Sum(Table[Product Quantity Sold]), Sum(Table[total Quantities Sold]))
Assume above are columns
Power BI release plans for 2023 release wave 1 describes all new features releasing from April 2023 through September 2023.
Make sure you register today for the Power BI Summit 2023. Don't miss all of the great sessions and speakers!
User | Count |
---|---|
225 | |
54 | |
44 | |
44 | |
43 |
User | Count |
---|---|
274 | |
210 | |
75 | |
71 | |
64 |