Hi, I'm new to SSAS and I'm working in a data source view of a cube and creating a named calculation.I'm wanting to create a special field that accounts for 0's. I'll try to explain, I want a special "AppliedVolume" field that becomes 0 if a corresponding AppliedRate = 0 or if a ProducerValue = 0, otherwise I want the listed value for AppliedVolume. The logic seems pretty simple to me, I just can't seem to figure it out.What I currently have in two separate fields:AlteredVolumeByAppliedRate: IIF(AppliedRate = 0, 0, AppliedVolume)AlteredVolumeByProdValue: IIF(ProducerValue = 0, 0, AppliedVolume)I basically want a combination of the two so I thought maybe below would work but it doesn't seem to.AlteredVolumeCombined: IIF(AppliedRate = 0 OR ProducerValue = 0, 0, AppliedVolume) Some example results are:AlteredVolumeByAppliedRate: 2,561,935,210AlteredVolumeByProdValue: 2,892,435,804AlteredVolumeCombined: 2,561,935,144I would think the combined should be much lower. Any tips or different MDX approaches?
↧