Forum Discussion
Anonymous
6 years agoNot applicable
Modify table tricks needed
Hei, I need some help with this table. For each Trip, I need to define its start and end time by: Lets take a unique Trip number and when the second column is Loading, take the Depart time as th...
- 6 years ago
Alright, give this a try:
I begin with this table:
Create a duplicate of this table, now we have Table 1 & Table 2.
In Table 1, filter reason for call on "Loading":
In Table 1, highlight [Trip number] and [Unit Number] then press "Group By". Use the same setting as the picture below:
Now we move onto Table 2. Filter the table on discharging then do anoth "Group By" with these settings:
Finally we want to merge the two tables. Press "Merge as New" then use the following settings (Ctrl click to highlight more columns):
Finally expand the "End" column:
Should give you the following result, which i hope is correct:
Br,
J - 6 years ago
Happy to hear! I can actually help you out with that 😉
Br,
J
amitchandak
Super User
6 years agoAnonymous
Try a new table like
summarize(table, table[Trip number],"Depart",firstnonblank(Table[Depart],blank()),"Arrive",lastnonblank(Table[Arrive],blank()))
or
summarize(table, table[Trip number],"Depart",min(Table[Depart]),"Arrive",max(Table[Arrive]))