Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

Check date within a date range

Hi, see my problem below in the photo. here is also a link https://www.dropbox.com/s/03l9extd2ox8wvw/Check%20date%20within%20a%20date%20range.xlsx?dl=0    
  • PattemManohar's avatar
    7 years ago

    Anonymous Please try this as a "New Column" in EmpContract table. 

     

    Isworked2ClientsInFirst3Months = 
    VAR _CountCheck = CALCULATE(DISTINCTCOUNT(Test91ClientContract[Client]),
                                        FILTER(Test91ClientContract,Test91ClientContract[Name]=Test91EmpContract[Name] 
                                                                && Test91ClientContract[EndDateAtClient] <= EDATE(Test91EmpContract[ContractStart],3)
                                                ) )
    RETURN IF(_CountCheck=2,"Y","N")