I have a Dataflow that uses "each [Date] > Date.AddDays(Date.From(DateTime.LocalNow()),-60" to filter on the last 60 days. I'd like to create a 2nd Dataflow that does the same thing, except for Prior Year.
Dataflow #1: 5/16/2020 - 7/14/2020 (Working)
Dataflow #2: 5/18-2019 - 7/16/2019 (Need Help)
I tried adding a column to mark every day between 365 days ago and 425 days ago:
if [Date] > Date.AddDays(Date.From(DateTime.LocalNow()),-425) and [Date] < Date.AddDays(Date.From(DateTime.LocalNow()),-365) then 1 else 0
It doesn't error until I filter on 1. By the way, this is Google API, which seems to hate many things. The error: "dataformat.error: we can't report a single value for this dimension as it represents a rollup of multiple values whose details are not available. details (other)"
Any other ways to accomplish this?
Thanks!