Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello,
I have a situation where I need to compute cancelled quantity based off a different calendar from the Master Calendar. Invoice reporting is based on the following Master Calendar:
Master Calendar:
Cancelled orders reporting is based on the following orders calendar:
Orders Calendar:
I am trying to use the following set expression to sum cancelled quantity per month based in the Orders Calendar.
=Sum({$<SOMonth={‘Jan’}, SOYear={"Selected Invoice Year"}>} CancelledQty)
Question, is there a set modifier function that allows the use of "Master Calendar” where, as I select a year from the Master Calendar, the value of the year (i.e. 2015) is used as the parameter for the SOYear={"Selected Invoice Year"} set modifier?
Thank you in advance for any assistance with this question.
Smith, Please create a variable Let vInYear = Max(InYear) & use the variable in set analysis
Sum({$<SOMonth={‘Jan’}, SOYear={"$(vInYear)"}>} CancelledQty)
If you not interested adding the variable try like below.
Sum({$<SOMonth={‘Jan’}, SOYear={"$(=Max(InYear))"}>} CancelledQty)
try using a canonical date
Smith, Please create a variable Let vInYear = Max(InYear) & use the variable in set analysis
Sum({$<SOMonth={‘Jan’}, SOYear={"$(vInYear)"}>} CancelledQty)
If you not interested adding the variable try like below.
Sum({$<SOMonth={‘Jan’}, SOYear={"$(=Max(InYear))"}>} CancelledQty)
=sum({$<SOMonth={‘Jan’}, SOYear={"$(=max(InvYear))"}>} CancelledQty)
=sum({$<SOMonth={‘Jan’}, SOYear={"$(=only(InvYear))"}>} CancelledQty)
Works Great!! Thank you dathu.qv
Thank you Massimo. This option works perfectly as well.