I have been googling for a few hours for a solution of this simple task with no luck. I have a simple table
Cat Sales
Apples 30
Apples 50
Apples 100
Cherries 50
Cherries 80
How do I make Power BI calculate subtotals? Tried Quick Measures, but neither of them works. This is what I get when applying Sum of Sales total for Cat = CALCULATE(SUM('Table1'[Sales]), ALLSELECTED('Table1'[Cat])) :
Cat Sales Sum of Sales total for Cat
Apples 30 30
Apples 50 100
Apples 100 100
Cherries 50 100
Cherries 80 80
I am looking to get something like this:
Cat Sales Sum of Sales total for Cat
Apples 30 30
Apples 50 80
Apples 100 180
Cherries 50 50
Cherries 80 130