Forum Discussion

skv17's avatar
skv17
Icon for Helper II rankHelper II
3 years ago
Solved

Check if Asset is in a Location between two dates

ok I have a table "Fleetsu Time Asset In Fence" and has columns Ctc_FleetNo,Entered_EventDateStamp , Exited_EventDateStamp and FenceName and the DateDIM table has date column , I need to know what ...
  • Anonymous's avatar
    Anonymous
    3 years ago

    Hi skv17 

    You can consider to remove the relationship, then create the following measure

    Measure 2 = CALCULATE(SUM('Table'[Sum of Duration in Fence Minutes]),FILTER('Table','Table'[Entered_EventDateStamp]<=MAX('Date'[Date])&&'Table'[Exited_EventTimeStamp]>MAX('Date'[Date])))

    Output

    Best Regards!

    Yolo Zhu

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