Forum Discussion

adoalan's avatar
adoalan
Icon for Helper III rankHelper III
3 years ago

Compare the Created on Dates

Hi,

 

I need to compare the Created on Dates to determinte if there is a new or existing Giftaiddeclaration. 

Basically I'm saying if the GAD is <= than the date of the contact create on, 1(one month). 

 

New Existing = IF('nfp_giftaiddeclaration'[Created On] <= EDATE(RELATED('contact'[Created On]),1),
    "New","Existing")
 

 

But I m getting this error

 

Can you help please

 

Many thanks

 

 

 

3 Replies

  • Arjun_SP's avatar
    Arjun_SP
    Frequent Visitor

    Have you tried creating a calculated column that would give you the durations between these two dates and then using that you can derive your answer?

     

    • adoalan's avatar
      adoalan
      Icon for Helper III rankHelper III

      This is a column Arjun but not sure why why is not working. I might try your option as well but that will be more complicated!

      Thanks for sugestion 

  • v-zhangti's avatar
    v-zhangti
    Icon for Community Support rankCommunity Support

    Hi, adoalan 

     

    Can you provide sample data for testing? Sensitive information can be removed in advance. What kind of expected results do you expect? You can also show it with Excel. I look forward to your response.

     

    Best Regards,

    Community Support Team _Charlotte

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.