9 Replies Latest reply: Nov 10, 2014 11:33 PM by anbu cheliyan

# Set Analysis with Multiple Modifiers

Hi,

I'm trying to pull the quantity on hand (QOH) from a table that contains QOH per year per period.  The set analysis below has multiple modifiers to filter the QOH for the year and period.  I'm not getting errors, but the result is 0 (zero).  I'm not sure where my set expression is failing.  Any assistance would be very much appreciated.

=Num((Sum({\$<FiscYear={\$(=Max(FiscYear))}, FiscPer={\$(=Max(FiscPer))}> } QtyOnHand)))

• ###### Re: Set Analysis with Multiple Modifiers

Hi Alec,

It's hard to say without app.

Regards,

Sergey

• ###### Re: Re: Set Analysis with Multiple Modifiers

Hi Sergey,

See attached app.  I added a Bookmark called Item: 8202030.  This particular item has QOH.

Thank you,

Alec

• ###### Re: Set Analysis with Multiple Modifiers

=Num((Sum({\$<FiscYear={\$(=Max(FiscYear))},  FiscPer={\$(=Month(Date#(Max({<FiscYear = {\$(=Max(FiscYear))}>} FiscPer),'MM')))}> } QtyOnHand)))

• ###### Re: Set Analysis with Multiple Modifiers

=Num((Sum({\$<FiscYear={\$(=Max(FiscYear))},  FiscPer={\$(=Date(Max(FiscPer),'MMM'))}> } QtyOnHand)))

• ###### Re: Set Analysis with Multiple Modifiers

Anbu,

Thank you for the fix.  I am now getting numbers.  However, the quantity is not agreeing to the source system.  Also, when I filter on any FiscPer, the quantity does not change.  It is remaining at 1,352.

• ###### Re: Re: Set Analysis with Multiple Modifiers

Check this

• ###### Re: Set Analysis with Multiple Modifiers

Works!!!  Thank you Anbu!!!

• ###### Re: Re: Set Analysis with Multiple Modifiers

Alec,

I just can't understand why do you use set analysis here..

Try to use the following expression

=Num(Sum(QtyOnHand))

PFA

• ###### Re: Set Analysis with Multiple Modifiers

Sergey,

You are correct in what you are saying.  The full purpose of the expression will be to calculate inventory turnover.  I need to first compute the average inventory for the period -  (beginning inventory + ending inventory)/2

Now that I have the current period working, I need to calculate the beginning inventory which is the ending inventory from the previous period using -1 in the modifier.