Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I'm using the below logic as expression but it showing results starts from Jan.
But i need to show them FEB.
The year starts from Feb .
Logic:
=Sum({<SoldDate = {
"$(='>=' & Date(YearStart(Max(SoldDate), 0), 'M/D/YYYY') & '<=' & Date(AddYears(Max(SoldDate), 0), 'M/D/YYYY'))",
"$(='>=' & Date(YearStart(Max(SoldDate), -1), 'M/D/YYYY') & '<=' & Date(AddYears(Max(SoldDate), -1), 'M/D/YYYY'))",
"$(='>=' & Date(YearStart(Max(SoldDate), -2), 'M/D/YYYY') & '<=' & Date(AddYears(Max(SoldDate), -2), 'M/D/YYYY'))",
"$(='>=' & Date(YearStart(Max(SoldDate), -3), 'M/D/YYYY') & '<=' & Date(AddYears(Max(SoldDate), -3), 'M/D/YYYY'))"
}, SoldMonth, SoldYear>}ESTCUST)
Thanks..
Try this
=Sum({<SoldDate = {
"$(='>=' & Date(YearStart(Max(SoldDate), 0, 2), 'M/D/YYYY') & '<=' & Date(AddYears(Max(SoldDate), 0), 'M/D/YYYY'))",
"$(='>=' & Date(YearStart(Max(SoldDate), -1, 2), 'M/D/YYYY') & '<=' & Date(AddYears(Max(SoldDate), -1), 'M/D/YYYY'))",
"$(='>=' & Date(YearStart(Max(SoldDate), -2, 2), 'M/D/YYYY') & '<=' & Date(AddYears(Max(SoldDate), -2), 'M/D/YYYY'))",
"$(='>=' & Date(YearStart(Max(SoldDate), -3, 2), 'M/D/YYYY') & '<=' & Date(AddYears(Max(SoldDate), -3), 'M/D/YYYY'))"
}, SoldMonth, SoldYear>}ESTCUST)
Try this
=Sum({<SoldDate = {
"$(='>=' & Date(YearStart(Max(SoldDate), 0, 2), 'M/D/YYYY') & '<=' & Date(AddYears(Max(SoldDate), 0), 'M/D/YYYY'))",
"$(='>=' & Date(YearStart(Max(SoldDate), -1, 2), 'M/D/YYYY') & '<=' & Date(AddYears(Max(SoldDate), -1), 'M/D/YYYY'))",
"$(='>=' & Date(YearStart(Max(SoldDate), -2, 2), 'M/D/YYYY') & '<=' & Date(AddYears(Max(SoldDate), -2), 'M/D/YYYY'))",
"$(='>=' & Date(YearStart(Max(SoldDate), -3, 2), 'M/D/YYYY') & '<=' & Date(AddYears(Max(SoldDate), -3), 'M/D/YYYY'))"
}, SoldMonth, SoldYear>}ESTCUST)
Thanks..
How change the week start as Sunday by default the below logic shows from Monday.
=Sum({<SoldDate = {
"$(='>=' & Date(WeekStart(AddYears(Max(SoldDate), 0)), 'M/D/YYYY') & '<=' & Date(AddYears(Max(SoldDate), 0), 'M/D/YYYY'))",
"$(='>=' & Date(WeekStart(AddYears(Max(SoldDate), -1)), 'M/D/YYYY') & '<=' & Date(AddYears(Max(SoldDate), -1), 'M/D/YYYY'))",
"$(='>=' & Date(WeekStart(AddYears(Max(SoldDate), -2)), 'M/D/YYYY') & '<=' & Date(AddYears(Max(SoldDate), -2), 'M/D/YYYY'))",
"$(='>=' & Date(WeekStart(AddYears(Max(SoldDate), -3)), 'M/D/YYYY') & '<=' & Date(AddYears(Max(SoldDate), -3), 'M/D/YYYY'))"
}, SoldMonth, SoldYear>}ESTCUST)
Thanks..
Check here:
=Sum({<SoldDate = {
"$(='>=' & Date(WeekStart(AddYears(Max(SoldDate), 0), 0, 6), 'M/D/YYYY') & '<=' & Date(AddYears(Max(SoldDate), 0), 'M/D/YYYY'))",
"$(='>=' & Date(WeekStart(AddYears(Max(SoldDate), -1), 0, 6), 'M/D/YYYY') & '<=' & Date(AddYears(Max(SoldDate), -1), 'M/D/YYYY'))",
"$(='>=' & Date(WeekStart(AddYears(Max(SoldDate), -2), 0, 6), 'M/D/YYYY') & '<=' & Date(AddYears(Max(SoldDate), -2), 'M/D/YYYY'))",
"$(='>=' & Date(WeekStart(AddYears(Max(SoldDate), -3), 0, 6), 'M/D/YYYY') & '<=' & Date(AddYears(Max(SoldDate), -3), 'M/D/YYYY'))"
}, SoldMonth, SoldYear>}ESTCUST)