I am trying to work out the correct available Hrs in TAvailableHrs Column of the EMALLCompanyAvailableHrs table in the attached PBIX file but coming with the wrong answer.
_ If the transdate is between the CustPreviousworkinghoursstartdate and CustPreviousworkinghoursenddate I want it to give me the CustAvailableHrsPerday Column in the AllRows column if not give me the Available Hours Column.
Your guidance will be very much appreciated. Thanks
Thanks for this but on checking it does not seem to give the correct number I am looking for. If you look at this screenshot I have filtered to employee number 127036. Where I have circled in red the trans date of 01/07/2021 is between Custprev start date and end date so I am expecting 6.4 hrs in TAvailbleHrs Column and not 8hrs. Anything beyond the 06/09/2021 gets the available hours.