Forum Discussion

siddharth3101_'s avatar
siddharth3101_
New Member
6 years ago
Solved

Dyanmic Time Issue

Hi,  I have a data table that gives us the ideal 'Start Time' and 'End Time' of a product's journey (common for all products) for a particular Mall (sample data below). Similarly, another data table...
  • v-frfei-msft's avatar
    6 years ago

    Hi siddharth3101_ ,

     

    We can create two calcualted columns in table 2 as below.

    start time = var a = 'Table 2'[Product Movement Time] + TIME(0,10,0)
    return
    CALCULATE(MIN('Table 1'[Start Time]),FILTER('Table 1','Table 1'[Mall] = 'Table 2'[Mall] && 'Table 1'[Start Time]>=a))
    endtime = LOOKUPVALUE('Table 1'[End Time],'Table 1'[Start Time],'Table 2'[start time],'Table 1'[Mall],'Table 2'[Mall])

     

    Pbix as attached.