Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
i want to get the previous years data ,,for example ((=sum({<Date={">=$(=YearStart(today()))<=$(=today())"}>}Sales)) this is logic for current year ..by using this syntax how to get previous year.
Thanks in advance
May be like:
=sum({<Date={">=$(=YearStart(today(),-1))<=$(=AddMonths(today(),-12))"}>}Sales)
Hi,
1. Current Year
=Sum({$<Month=, Date=, Year={$(=Only(Year))}>} Sales)
or
=sum({<Month=, Date=, Year={$(=max(Year))}>}Sales)
2. Previous Year
=Sum({$<Month=, Date=, Year={$(=Only(Year)-1)}>} Sales)
or
=sum({<Month=, Date=, Year={$(=max(Year)-1)}>}Sales)
Thanks,
AS
May be like:
=sum({<Date={">=$(=YearStart(today(),-1))<=$(=AddMonths(today(),-12))"}>}Sales)
try like this
=sum({<Date={">=$(=YearStart(today(),-1))<=$(=AddMonths(today()))"}>}Sales)
Hi Amit,
What is use of =Sum({$<Month=
Thanks
Prashant
this is for considering selected Months
Thanks,
AS
Hi Amit,
Then why we are put blank values
Thanks,
Prashant
this will consider all months automatically say for MTD cal.
Thanks,
AS
means it doesn't accept any value from based on filter we have.
Prashantbi,
Please go through this attachment to understand Set analysis.
Thanks,
AS