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)
User | Count |
---|---|
141 | |
84 | |
62 | |
61 | |
55 |
User | Count |
---|---|
211 | |
108 | |
88 | |
75 | |
72 |