Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Check if Time Exist between Time Range in different Table

Hello,   I've two table, the first one is a Generated Table:   Table_A= GENERATESERIES ( DATEVALUE(MIN ( Table_B[Start_Time])) , TODAY()+1, TIME ( 0, 1, 0 ) ) Result is a table with...
  • wdx223_Daniel's avatar
    5 years ago

    delete the relationships between these tables. and try this code

    NewMeasure=SUMX(VALUES(TableA[Time]),VAR _t=TableA[Time] RETURN IF(COUNTROWS(FILTER(TableB,TableB[StartTime]<=_t&&TableB[EndTime]>=_t))>0,1))