Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
2 years ago
Solved

Date calculation problem, need help

How would I solve the following?

 

"Anniversary",  "Date Pulled" and "Tenure Years" are "Columns" in my table 

I  will also be needing "Todays date" 

 

I believe I need to write a  dax measure to correctly find the correct answer  as "Todays  Date" will change based on when the user accesses the power bi dashboard.   If I used a column to contain  "Todays Date", it  would always stay the same to the date and time it was published if I understand correctly.

 

Here is what I am trying to do:

If "Anniversary" > "Date Pulled" and < "Todays Date"

then Tenure Years + 1 else Tenure Years 

 

Is there an easy answer for this ?  Thank you for any help