Forum Discussion
Anonymous
7 years agoNot applicable
Getting negative value, help
Hey! I am trying to calculate the consumed energy, by calculating current energy minus previous (from TotalEnergy_MWh), since it is an accumulating number, with following formula (see data below)...
v-xicai
7 years agoCommunity Support
Hi Anonymous ,
You can change the Rank in DAX below.
Rank = RANKX(FILTER(Data, Data[Device] = EARLIER(Data[Device])), Data[TotalEnergy_MWh], ,ASC)
Best Regards,
Amy
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- v-xicai7 years agoCommunity Support
Hi Anonymous ,
Does that make sense? If so, kindly mark my answer as a solution to help others having the similar issue and close the case.
Best regards
Amy Cai