Just wondering how do I test whether a cell is blank (or empty/null) as opposed to containing a zero. My issue is as below:
Cube: Stock (Inventory)
My cube rule looks like this:
Code: Select all
['Average Cost Balance'] = If((['Average Cost'] = 0), DB('Stock' , !Item, !Company, If(ATTRS('Period',!Period,'Prior') @= 'Dec', ATTRS('Year',!Year,'Prior'), !Year), ATTRS('Period',!Period,'Prior'), 'Average Cost Balance', 'XXX'), ['Average Cost' ]);
Therefore it would be great if I could start the cube off by setting all values to empty instead of zero and then change the rule to match against empty or '' or something like that. Therefore I would only be replacing empty cells and not zero value cells.
Any ideas?