Forum Discussion

akendrick15's avatar
akendrick15
Frequent Visitor
5 years ago
Solved

Percent Change By Month per Customer

I am a Power BI newbie and am needing some help calculating the percent change each month by customer. I would also like to be able to see the amount changed each month as well. 

My table looks like the below screenshot, with the highlighted column being the info I want to use for the change.

 

I tried creating two measures to accomplish what I wanted but I am not getting any information on my report. 

 

Measure 1:

Vol_PreMonth = CALCULATE(SUM('Sales FYE 02-2021'[Gallons]),PREVIOUSMONTH('Sales FYE 02-2021'[Date of Sale]))
Measure 2:
Vol_Monthly%Change = VAR Vol_CurrentMonth = CALCULATE(SUM('Sales FYE 02-2021'[Gallons])) RETURN(IF(NOT(ISBLANK([Vol_PreMonth])),DIVIDE(Vol_CurrentMonth - [Vol_PreMonth], [Vol_PreMonth])))
 
Any help would be greatly appreciated.

2 Replies