Solução gawk complexa para alcançar o objetivo:
awk 'BEGIN{ FS=OFS="|" }NR==1{ next }{ sum[$1]+=$5 }
$4=="TIMES"{ d[$1]["t"]+=$5 }
$4=="ROADS"{ d[$1]["r"]+=$5 }$3=="NYC" && $4=="ROADS"{ d[$1]["r&n"]+=$5 }
END{ print "DATE|REV|TIMES|ROADS|ROADS&NYC";
for(i in d) print i, sum[i], int(d[i]["t"]), int(d[i]["r"]), int(d[i]["r&n"]) }' file
A saída:
DATE|REV|TIMES|ROADS|ROADS&NYC
20170807|2012027|1919150|92877|92877
20170808|494626|361625|133001|0