Forum Discussion
Calculate percentage from same column
- Anonymous7 years ago
Hello Anonymous
Try this please:
Percentage= DIVIDE(CALCULATE(SUM(Table[Month Budget]);FILTER(Table;Table[Category]="Total Labor"));CALCULATE(SUM(Table[Month Budget]);FILTER(Table;Table[Category]="Total Cost")))
I hope this works.
PS, in "Table", you've to put the name of the table.
Hello Anonymous
Try this please:
Percentage= DIVIDE(CALCULATE(SUM(Table[Month Budget]);FILTER(Table;Table[Category]="Total Labor"));CALCULATE(SUM(Table[Month Budget]);FILTER(Table;Table[Category]="Total Cost")))
I hope this works.
PS, in "Table", you've to put the name of the table.
Sorry, I didn't fully explain my situation. I have dozens of clients and every client has those 5 rows with a client ID. Your solution, while elegant, it will only work if there was only one set if clients.
I ended up splitting the table into 5 smaller tables each containing one category and then doing calculations that way. I know it's not clean.