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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MDX Function Iif

Status
Not open for further replies.

Belka

IS-IT--Management
Apr 25, 2002
2
US
Here is the scenario: I need to build a calculated member based on specific member (value) of the dimension. Let's say dimension product has members A,B and C. The calculated member should be:
If (Product = 'A', (measures.qty * measures.price),null)
Thanks
 
IIf(Product = A, (Measures.[qty]* Measures.[price]),''))

I think this is right - but I'm on the wrong computer to check it out. Let me know if not and I'll try again!


Fi.

:)


 
Did the reponse from Willif work? I tried the same on a custom rollup function and got an error. I don't think it liked the empty ELSE part but I'm not sure.

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top