Forum Discussion
siddharth3101_
6 years agoNew Member
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...
- 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.
v-frfei-msft
6 years agoCommunity Support
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.
- siddharth3101_6 years agoNew Member
Thanks, v-frfei-msft !
This worked for me, much appreciated.