Help with ASO MDX member formula CASE IIF
Hello,
My ASO member formula works correctly below:
-------------------------------------
/* Working but not complete*/
CASE WHEN IsAccType ([Account].CurrentMember, Last) AND Contains ([Period].CurrentMember,{[Feb]:[Dec]})
THEN ([Period].CurrentMember,[View].[Load]) - ([Period].CurrentMember.PrevMember,[View].[Load])
ELSE [View].[Load]
END
-------------------------------------
I would now like to layer in the additional condition if the member is also an ancestor of the Asset Account member use the THEN logic. But my attempts have not worked:
-------------------------------------
/* Validates but logic is returning the IIF FALSE for everything*/
CASE WHEN IsAccType ([Account].CurrentMember, Last) AND Contains ([Period].CurrentMember,{[Feb]:[Dec]})
THEN
IIF(IsAncestor([Assets], [Account].CurrentMember),