Forum Discussion
PrasadPatil
3 years agoRegular Visitor
Row wise calculation
Hi Community..!! please refer below sample data Catergory sales A 6 B 4 C 6 D 4 Total 20 ...
- 3 years ago
Create a Measure to calculate Total Sales:
TotalSales = CALCULATE( SUM( Sales1[Sales] ), ALL( Sales1 )) // Where "Sales1" is the name of your tableThen create a Calculated Column:
Sales_Percent = DIVIDE( [Sales], [TotalSales], 0 )Use the column tools menu to format as percent or decimal, whichever your preference.
Trust this is what you are looking for.
Regards,
rsbin
3 years agoCommunity Champion
Create a Measure to calculate Total Sales:
TotalSales = CALCULATE( SUM( Sales1[Sales] ),
ALL( Sales1 )) // Where "Sales1" is the name of your table
Then create a Calculated Column:
Sales_Percent = DIVIDE( [Sales], [TotalSales], 0 )
Use the column tools menu to format as percent or decimal, whichever your preference.
Trust this is what you are looking for.
Regards,
PrasadPatil
3 years agoRegular Visitor
Thanks for the Quick response rsbin