Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
If I want to only see sales from Canada I would do this in set analysis:
sum({<Country={'Canada'}>} Sales)
similarly (but not ideally) I could do;
if (Country='Canada', Sales)
Now if I only want to see sales from this last year (YTD) I might do:
if( min(%Date)>(today()-365), Sales)
What is the set analysis equivalent of this?
May be something like this:
Sum({<%Date={"$(='>=' & Date(Today() - 365, 'DateFieldFormatHere'))"}>} Sales)
Also look here:
May be something like this:
Sum({<%Date={"$(='>=' & Date(Today() - 365, 'DateFieldFormatHere'))"}>} Sales)
Also look here:
Yes great, thanks. And thanks for the link.
sum({$ <Date={">=$(=AddYears(Today(),-1))<=$(=Today())"}>} Sales)