Forum Discussion

juhoneyighot's avatar
juhoneyighot
Helper III
1 year ago
Solved

Conditional date formula dax

Hello! I have this data. With Mac Trans Date Column, I want to create a measure that is this Transdate is 1 and 1/2 yr older than a current date then " No Need to Request" elsa "". Thank you ...
  • rajendraongole1's avatar
    rajendraongole1
    1 year ago

    Ok, you can intergrate calculate and filter function as follows:

    SubAgreeCertRequest =
    VAR CutoffDate = TODAY() - 548
    RETURN
    IF (
    CALCULATE(
    MAX(_Facts[TransDate]),
    _Facts[GLName] = "Bank Account - USD",
    _Facts[FH_CurrentYN] = "Yes",
    _Facts[FH_Type] = "28 Legacy AS Transactions"
    ) <= CutoffDate,
    "No Need to Request",
    ""
    )

     

     

    Try the above.