Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi community,
I have an expression with set analysis like this:
sum({<[BRAND]={"=RANK(SUM({<[SALES]-={0}>}-[SALES]),4)<=10"}>}[SALES])
Then I want to put this analysis on that expression:
MONTHYEAR={'$(vMTD)'}
where vMTD =DATE(ADDMONTHS(NOW(),-1),'MMM-YYYY')
Can anyone help me what is the correct script of set analysis to cover the two expressions above?
Thank you
May be one of these:
Sum({<[BRAND] = {"=Rank(Sum({<[SALES]-={0}>}-[SALES]), 4) <= 10"}, MONTHYEAR={'$(vMTD)'}>}[SALES])
or
Sum({<[BRAND] = {"=Rank(Sum({<[SALES]-={0}, MONTHYEAR={'$(vMTD)'}>}-[SALES]), 4) <= 10"}, MONTHYEAR={'$(vMTD)'}>}[SALES])
or
Sum({<[BRAND] = {"=Rank(Sum({<[SALES]-={0}, MONTHYEAR={'$(vMTD)'}>}-[SALES]), 4) <= 10"}>}[SALES])
Try:
sum({<[BRAND]={"=RANK(SUM({<[SALES]-={0}>}-[SALES]),4)<=10"},MONTHYEAR={'$(vMTD)'}>}[SALES])
May be one of these:
Sum({<[BRAND] = {"=Rank(Sum({<[SALES]-={0}>}-[SALES]), 4) <= 10"}, MONTHYEAR={'$(vMTD)'}>}[SALES])
or
Sum({<[BRAND] = {"=Rank(Sum({<[SALES]-={0}, MONTHYEAR={'$(vMTD)'}>}-[SALES]), 4) <= 10"}, MONTHYEAR={'$(vMTD)'}>}[SALES])
or
Sum({<[BRAND] = {"=Rank(Sum({<[SALES]-={0}, MONTHYEAR={'$(vMTD)'}>}-[SALES]), 4) <= 10"}>}[SALES])
Try this expression,
sum({<[BRAND]={"=RANK(SUM({<[SALES]-={0}>}-[SALES]),4)<=10",MONTHYEAR={"=$(vMTD)"}>}[SALES])
Thank you Sunny.
The best answer is Sum({<[BRAND] = {"=Rank(Sum({<[SALES]-={0}, MONTHYEAR={'$(vMTD)'}>}-[SALES]), 4) <= 10"},MONTHYEAR={'$(vMTD)'}>}[SALES])