Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.
Check it out now!Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more
Hi Experts,
I want to calculate Tenure in months and have a Tenure start date column and a Termination date column.
If the termination date column is blank, I want to calculate the number of months between tenure start date and today.
The output would be like:
Any ideas for a nice DAX formula?
Best,
Soph
Solved! Go to Solution.
@SophRow TRy this DAX Column:
Tenure Month =
VAR NewTermDate = IF(TerminationDate=BLANK(), TODAY(),TerminationDate)
RETURN DATEDIFF(Tenure Start Date, NewTermDate, MONTH)
@SophRow TRy this DAX Column:
Tenure Month =
VAR NewTermDate = IF(TerminationDate=BLANK(), TODAY(),TerminationDate)
RETURN DATEDIFF(Tenure Start Date, NewTermDate, MONTH)