![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi all, An often heard solution to the inventory problem (where you want to know the last status in contrary to summing over periods) is the next formula (MEASURES.[NR OF ITEMS], TAIL( FILTER( DESCENDANTS(TIME.CURRENTMEMBERĀ*, TIME.MONTH) , NOT ISEMPTY(MEASURES.[NR OF ITEMS])) ,1).ITEM(0)) This formula looks at the last month for which there are nr of items available. For example, lets say the following figures (nr of items) are available Nov 2004 Dec 2004 Pens 5 3 Pencils 8 9 The formula above will then return 3 Pens and 9 Pencils for 2004. This is exactly what we want. However, lets say you also have markers, but did not have any available in december 2004: Nov 2004 Dec 2004 Pens 5 3 Pencils 8 9 Markers 10 NULL The formula now returns 3 Pens, 9 Pencils and 10! Markers for 2004. What we want to achieve is that the formula returns NULL Markers for 2004. This because there are items available in december, but no Markers. How can we accomplish this in a generic way? With kind regards, Sjoerd |
#3
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |