Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MDX syntax problem

Status
Not open for further replies.

DictumFactum

Programmer
Apr 9, 2005
1
SE
I have a very simple cube consisting of two dimensions and one measure. The first dimensions is an ordinary Time-dimension (Year, Month, Quarter, Day) and the second Flow_type, is a flat dimension with just three members, 1= Opening Balance, 2 = In, 3 = Out.

In the Calculated Members Builder I created a Calculated Measure with the following syntax
Iif([Flow_Type] = 0, [Measures].[Quantity], Null)

I don’t get any syntax error when I click the Check-button, but something is wrong because the Calculated Measure just returns “Err”. What’s wrong?
 
I don't see why you chose to create such a calculated member but maybe you could try this :

=iif(flow_type.currentmember=0,measures.quantity,null)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top