cancel
Showing results for
Did you mean:
Frequent Visitor

## Difference between current month and previous month

I am trying to calculate the difference of AHT between the two months for different categories. The AHT displayed is already a measure and i am using a month slicer to filter the data as per months.

 Category October AHT November AHT A 2.65 2.75 B 2.35 2.45 C 1.28 1.64 D 1.78 1.45 E - 2.14 F 1.91 1.95 G 1.17 0.72 H 2.65 3.14 I 1.43 1.59

what i want to accomplih is this.

 Category October AHT November AHT Difference A 2.65 2.75 -0.10 B 2.35 2.45 -0.10 C 1.28 1.64 -0.36 D 1.78 1.45 0.33 E - 2.14 - F 1.91 1.95 -0.04 G 1.17 0.72 0.45 H 2.65 3.14 -0.49 I 1.43 1.59 -0.16

This is an just an example of this month and the month prior. The month slicer has other months too and the difference should change based on the months selected in the slicer. Thank you for you help!!

3 REPLIES 3
Super User

## Re: Difference between current month and previous month

So do you actually have an October AHT measure and another November AHT measure or is it just one measure?

Proud to be a Datanaut!

Frequent Visitor

## Re: Difference between current month and previous month

Just one measure for all months

Highlighted
Community Support Team

## Re: Difference between current month and previous month

hi, @allwin_1510

What is your data structure? do you mean that you select two months then calculate the difference between two months?

If so, if you select three or more months, how to calculate the difference?

if not, do you mean that calculate difference between two consecutive months?

you could create a date table then use PREVIOUSMONTH  to create a measure bease on [AHT]

like

difference = CALCULATE([AHT],PREVIOUSMONTH('Date'[Date]))