Forum Discussion
Working out difference between rows
- 5 years ago
Hi, MrGriff
Please check the below picture and the formula for creating a new column.
Power Used CC =VAR currentname = 'Table'[Name]VAR currentpower = 'Table'[Power]VAR nextpower =CALCULATE (MIN ( 'Table'[Power] ),FILTER ( 'Table', 'Table'[Name] = currentname && 'Table'[Power] > currentpower ))RETURNIF ( NOT ISBLANK ( nextpower ), nextpower - currentpower )Hi, My name is Jihwan Kim.
If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.
Linkedin: linkedin.com/in/jihwankim1975/
Twitter: twitter.com/Jihwan_JHKIM
Hi, MrGriff
Please check the below picture and the formula for creating a new column.
Hi, My name is Jihwan Kim.
If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.
Linkedin: linkedin.com/in/jihwankim1975/
Twitter: twitter.com/Jihwan_JHKIM
Sorry to re-open this again but I have seen that the calculation is wrong, If the current and next power are the calculation just looks a the next value that is higher in value... but really I if the value is the same the result should be 0..
If you can help that would be great