Forum Discussion
Anonymous
6 years agoNot applicable
Pie Chart to show the Completed % and In Progress % and Defect %
Please find my below manufacturing data. I need to create a pie chart which gets total order quanity and completed quanity and gives the completed % in green color, then the remaining pending orders ...
AllisonKennedy
Community Champion
6 years agoThis may not be the most efficient solution but you could create 4 separate measures and add them to the values of a pie chart:
Completed = SUM(table[Completed Quantity])
Pending = SUMX(FILTER(table, ISBLANK(table[defect reason])), table[Order Quantity] - table[Completed Quantity])
Machine Break= SUMX(FILTER(table, table[defect reason] = "Machine Break"), table[Order Quantity] - table[Completed Quantity])
Lubricant Order= SUMX(FILTER(table, table[defect reason] = "Lubricant Order"), table[Order Quantity] - table[Completed Quantity])
Completed = SUM(table[Completed Quantity])
Pending = SUMX(FILTER(table, ISBLANK(table[defect reason])), table[Order Quantity] - table[Completed Quantity])
Machine Break= SUMX(FILTER(table, table[defect reason] = "Machine Break"), table[Order Quantity] - table[Completed Quantity])
Lubricant Order= SUMX(FILTER(table, table[defect reason] = "Lubricant Order"), table[Order Quantity] - table[Completed Quantity])