Forum Discussion
Calculation on last value date,
- 5 years ago
Good morning!
Here's a couple measures...
Current Price:=AVERAGE(Tickers[Price]) Previous Price:=CALCULATE( [Current Price], PREVIOUSMONTH('Calendar'[Date]) ) Price MTM Change:=[Current Price] - [Previous Price] Price MTM % Change:=DIVIDE( [Price MTM Change], [Previous Price], BLANK() )Using AVERAGE() because I'm not sure if you'll have more than one price in any given month. If you do, you might want to change that to MIN(), MAX() or whatever suits your needs.
Results
Sachy123 , This month vs Last month for that with help of time intelligence and date table
MTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESMTD('Date'[Date]))
last MTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESMTD(dateadd('Date'[Date],-1,MONTH)))
last month Sales = CALCULATE(SUM(Sales[Sales Amount]),previousmonth('Date'[Date]))
this month =MTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESMTD(ENDOFMONTH('Date'[Date])))
last MTD (complete) Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESMTD(ENDOFMONTH(dateadd('Date'[Date],-1,MONTH))))
previous month value = CALCULATE(sum('Table'[total hours value]),previousmonth('Date'[Date]))
diff = [MTD Sales]-[last MTD Sales]
diff % = divide([MTD Sales]-[last MTD Sales],[last MTD Sales])
- Sachy1235 years ago
Helper V
THANK YOU!