Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
Hi ,
Date hire date
05-Aug-2020 05-aug-19
I need how many months diffrence Date and hire date,please help on this issues.
Regards,
Solved! Go to Solution.
@Anonymous , as new column
datediff([hire date],today(),Month)
or
datediff([hire date],[date],Month)
as a new measure // you need to take care of row context
datediff(min([hire date]),today(),Month)
or
datediff(min([hire date]),Max([date]),Month)
@Anonymous , as new column
datediff([hire date],today(),Month)
or
datediff([hire date],[date],Month)
as a new measure // you need to take care of row context
datediff(min([hire date]),today(),Month)
or
datediff(min([hire date]),Max([date]),Month)
@Anonymous,
Create a new column and use the DATEDIFF function.
Here's a link to how DATEDIFF works: https://docs.microsoft.com/en-us/dax/datediff-function-dax
For months difference between Hire_Date and Date, you will have to use below formula:
Month_Diff Col = DATEDIFF([hire date], [Date], MONTH)
For days difference between Hire_Date and Date, you will have to use below formula:
Day_Diff Col = DATEDIFF([hire date], [Date], DAY)
Give a thumbs up if this post helped you in any way and mark this post as solution if it solved your query !!!
Hi @Anonymous
try new column
Column = DATEDIFF([hire date], [Date], MONTH)
@Anonymous - Maybe:
Column =
VAR __HireYear = YEAR([hire date])
VAR __HireMonth = MONTH([hire date])
VAR __DateYear = YEAR([Date])
VAR __DateMonth = MONTH([Date])
RETURN
(__DateYear - __HireYear)*12 + (__HireMonth - __DateMonth)
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 60 | |
| 54 | |
| 43 | |
| 20 | |
| 17 |
| User | Count |
|---|---|
| 122 | |
| 108 | |
| 44 | |
| 32 | |
| 24 |