Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
hello everyone
i have date column names as date in the format of yyyy-mm-dd
and it consist of date ranging from 2017-01-01 till today that is 2019-10-09
now i want to compare sum(sales) of today with last year
for ex:-
date | sales| lastyear| sales
2019-10-09| 500$ |2018-10-09| 800$
please help
also i dont want to use calendar script as it is complicated
i want to keep it simple like set analysis.
i have solved it by creating 4 variables like:
currentyearstart=2019-01-01
currentyearend=2019-12-31
previousyearstart=2018-01-01
previousyearend=2018-12-31
and attached calendar to it
Hi,
try to use Addyears(Today(),-1) in set analysis
hello sir
now date is showing of previous year but how to get sales data in it?
my column for sales data is sales
Sum({<Date = {">=$(=YearStart(Today(), -1)) <=$(=AddYears(Today(), -1))"}>} Sales)
sir its showing same sales data as of today.
i have solved it by creating 4 variables like:
currentyearstart=2019-01-01
currentyearend=2019-12-31
previousyearstart=2018-01-01
previousyearend=2018-12-31
and attached calendar to it