Forum Discussion

Zarlot531's avatar
Zarlot531
Helper V
6 years ago
Solved

DAX formula for Calendar month difference between two dates ?

So I know there are complicated ways to do this, but I was wondering what the simplest way would be to the following types of differences between dates:

 

Some examples: 

 

1/31/2019 - 2/1/2019 = 1 

1/25/2019 - 1/26/2019 = 0

3/1/2019 - 4/30/2019 = 1 

3/1/2019 - 5/1/2019 = 2 

 

In other words, it's built off the month rather than the days. Datediff doesn't seem to be consistent here... 

2 Replies