Forum Discussion
Wresen
3 years agoPost Patron
Calculate on each row
Hi and thx for reading this.
I have a simple problem i belive but i cant get it to work as i want.
I have a table like below:
I want to have a measure that multiplys each rows "Sum of Value" with "Proc Value.
I want to be able to remove all columns except Month and measure to get a resulat like:
Thanks so much for any help..
I think i have found a solution: (maybe not the best but i seems to work)
Measure = var _proc = CALCULATE(sum(Sheet1[Proc]),filter((Sheet1),Sheet1[Proc] <> BLANK()))var _value = CALCULATE(sum(Sheet1[value]),filter((Sheet1),Sheet1[Proc] <> BLANK()))Var div = _proc/_valuereturndiv * _value
3 Replies
- WresenPost Patron
I think i have found a solution: (maybe not the best but i seems to work)
Measure = var _proc = CALCULATE(sum(Sheet1[Proc]),filter((Sheet1),Sheet1[Proc] <> BLANK()))var _value = CALCULATE(sum(Sheet1[value]),filter((Sheet1),Sheet1[Proc] <> BLANK()))Var div = _proc/_valuereturndiv * _value - WresenPost Patron