Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi experts
I have this formula, it should be freezed also against filter selection on YearMonth:
Sum(
{<[YearMonth]={"$(='>=' & MonthStart(yearstart(max(YearMonth))) & '<=' & MonthEnd(Max(YearMonth)))"}>}
Quantity)
Any ideas?
Thanks, tom
Try this: Sum({<[YearMonth] = {"$(=(>=MonthStart(YearStart(Max(YearMonth)))<=MonthEnd(Max(YearMonth))))"}>} Quantity).
Make sure that the results given of your inner expression matches the values contained in YearMonth.
Thanks, but this is not working....it gives zero as result...
Try theses:-
If you want to freeze against Only YearMonth:-
Sum(
{<[YearMonth]={"$(='>=' & MonthStart(yearstart(max({1}YearMonth))) & '<=' & MonthEnd(Max({1}YearMonth)))"}>}
Quantity)
If you want to freeze against every filter:-
Sum(
{1<[YearMonth]={"$(='>=' & MonthStart(yearstart(max({1}YearMonth))) & '<=' & MonthEnd(Max({1}YearMonth)))"}>}
Quantity)
try this
Sum(
{1<[YearMonth]={"$(='>=' & MonthStart(yearstart(max(YearMonth))) & '<=' & MonthEnd(Max(YearMonth)))"}>}
Quantity)
Thanks, but this is also not working:
Sum(
{<[YearMonth]={"$(='>=' & MonthStart(yearstart(max({1}YearMonth))) & '<=' & MonthEnd(Max({1}YearMonth)))"} >}
Quantity)
thanks, not working.
try this
sum({<YearMonth={">=$(=date(Yearstart(max(YearMonth)),'MMM-YYYY')) <=$(=date(max(YearMonth),'MMM-YYYY'))"},YearMonth=>}Quantity)
Thanks, still not working...it still doesn't ignore the filter selection YearMonth:
Sum(
{1<[YearMonth]=
{"$(='>=' & MonthStart(yearstart(max({1}YearMonth),'YYYY-MMM')) & '<=' & MonthEnd(Max({1}YearMonth),'YYYY-MMM'))"} >}
Quantity)
Use TOTAL qualifier
Sum(
TOTAL
{<[YearMonth]={"$(='>=' & MonthStart(yearstart(max(YearMonth))) & '<=' & MonthEnd(Max(YearMonth)))"}>}
Quantity
)