Skip to content

Instantly share code, notes, and snippets.

@joel-bernstein
Last active September 11, 2018 15:33
Show Gist options
  • Save joel-bernstein/470ecc87fdac15f1097aed048a90987b to your computer and use it in GitHub Desktop.
Save joel-bernstein/470ecc87fdac15f1097aed048a90987b to your computer and use it in GitHub Desktop.
select(timeseries(collection1, q=“*:*”,
field="Reported_Date_dt",
start="2018-07-20T00:00:00Z",
end="2018-08-20T23:59:59Z",
gap="+1DAY",
format="YYYY-MM-dd",
sum(a),
sum(b)),
Reported_Date_dt,
sum(a) as sumA,
sum(b) as sumB,
add(sumA, sumB) as combinedSum)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment