Forum Discussion
% calculation per row
- 1 year ago
Anonymous
I think you forgot to write "Filter". so write it as follows:
Product_Share = 'Sales'[Total Cost (Calc)] / CALCULATE(SUM('Sales'[Total Cost (Calc)]),Filter ('Sales','Sales'[Month] = EARLIER('Sales'[Month]) && 'Sales'[Product_Group (Calc)] = EARLIER('Sales'[Product_Group (Calc)]))
* I highlight updated part*
If this post helps, then I would appreciate a thumbs up and mark it as the solution to help the other members find it more quickly.
I think so, pls see below :
Anonymous
I think you forgot to write "Filter". so write it as follows:
Product_Share = 'Sales'[Total Cost (Calc)] / CALCULATE(SUM('Sales'[Total Cost (Calc)]),Filter ('Sales','Sales'[Month] = EARLIER('Sales'[Month]) && 'Sales'[Product_Group (Calc)] = EARLIER('Sales'[Product_Group (Calc)]))
* I highlight updated part*
If this post helps, then I would appreciate a thumbs up and mark it as the solution to help the other members find it more quickly.
- Anonymous1 year agoNot applicableYes ! I changed the "," into "&&" at the filter:product_Share = 'Sales'[Total Cost (Calc)] / CALCULATE(SUM('Sales'[Total Cost (Calc)]),FILTER(Sales,Sales[Month] = EARLIER(Sales[Month])&& Sales[Product_Group (Calc)] = EARLIER(Sales[Product_Group (Calc)])))thank you !