Hiding row members based on calculation
I have a cross tab with item ids on rows and dates on columns. I need to present the accumulated sum (on-hand inventory) for each item for the last fourteen days. In the cube only the movement on quantity is available, so I created a calculated measure in TargIT for on-hand using the formula "sum(d1:0,0,m1)". This works well and I get the crosstab as expected.
I hid a range of dates starting from the first to fourteen days before the last (offset by 1 day to exclude "today", but that is besides the point).

However, I would like to exclude those item ids that have all zeroes in the calculated measure for the visible dates and created a calculated column for this purpose using the formula "if sum(all(v),0,m2)>0.01 then 1 else 0" (m2 being the calculated on-hand per date) yielding a 1 if the row should be hidden and a 0 if not.

But I am unable to use the calculated column for a visibility agent. As can be seen from the below, I have only m1 (Qty) and m2 (On-hand qty).

I also did try to use the formula directly as an agent condition, but all that did was to invalidate the formula calculating the column.

Any ideas as to why this happens?
I tried changing the calculation from a column to a measure, but without any change in the behaviour of the visibility agent.

Comments
4 comments