Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

Check date within a date range

  • 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")  

1 Reply

  • PattemManohar's avatar
    PattemManohar
    Community Champion

    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")