Quantcast
Channel: Service topics
Viewing all articles
Browse latest Browse all 62563

Negative expense variances

$
0
0

Hello. I'm reading a financial tutorial for powerpivot dax. They have revenues that are negatives and expenses that are positive. They handle this issue with the formula below. I don't have this issue, my values are mostly positive. However, there are a few expense items that can sometimes be either negative or positive. How can I calculate a proper year over year % change? 

 

For example, in my picture. The calculation is Yoy= current year-prior year. This calculation works correctly and makes sense. The year over year percentage change= YoY change/prior year. This calculation does not always make sense because the prior year/current year could be negative/negative, positive/negative, negative/positive. How can I write a formula to address this issue? 

 

 

IF(

    CONTAINS(Accounts, Accounts[Class], "Net Revenue"), -([Actual $]-[Prior $]),

([Actual $]-[Prior $])

 

 

10-28-2016 4-04-06 PM.png


Viewing all articles
Browse latest Browse all 62563

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>