I`d like to make a comparison on an average for this year, 2018 and 2017.
the expression for this year is
Avg({ < CurYTDFlag = {1}, Year, YearWeek, YearMonth, Week, Month > } [Brix])
The expression for 2018 is:
Avg({ < LastYTDFlag = {1}, Year, YearWeek, YearMonth, Week, Month > } [Brix])
What expression do I have to use for a linechart to show 2017?
Inside your script you can define a new field something like
LOAD
field1,
...
fieldn,
date,
if(year(date) = year(today()) - 2, 1, 0) as TwoYearsAgoFlag
or in the master calendar. Inyeartodate(date, -2).
Greetings
Inside your script you can define a new field something like
LOAD
field1,
...
fieldn,
date,
if(year(date) = year(today()) - 2, 1, 0) as TwoYearsAgoFlag
or in the master calendar. Inyeartodate(date, -2).
Greetings