Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Gokul_G16
Resolver I
Resolver I

Date difference dax logics

Dear friends,

Here, I'm showcasing the quick snap for the kind reference for while calculating the Datedifference in dax level and excel sources.

Gokul_G16_0-1686833939122.pngGokul_G16_2-1686834353513.png

 


I'm appling the dax logics for date comparesion same logics in excel also. but excel calculating fine. dax level shocasing something wrong.
Logic 1 =  6-16-2021 - 6-15-2023 = 23  excel
logic 2 =  6-16-2021 -6-15-2023 = 24 DAX power bi.

Kindly support team,

Regards,
Gokul

1 ACCEPTED SOLUTION
Mahesh0016
Super User
Super User

@Gokul_G16 I hope this helps you!THANK YOU!!

DateMonth =
DATEDIFF ( DATE ( 2021, 06, 16 ), DATE ( 2023, 06, 15 ), MONTH ) - 1
 

Mahesh0016_0-1686836408499.png

 

View solution in original post

1 REPLY 1
Mahesh0016
Super User
Super User

@Gokul_G16 I hope this helps you!THANK YOU!!

DateMonth =
DATEDIFF ( DATE ( 2021, 06, 16 ), DATE ( 2023, 06, 15 ), MONTH ) - 1
 

Mahesh0016_0-1686836408499.png

 

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.