Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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)
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
96 | |
77 | |
66 | |
53 |
User | Count |
---|---|
144 | |
105 | |
102 | |
89 | |
63 |