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

MDX Functions

Status
Not open for further replies.

Mantle51

Programmer
Aug 17, 2006
97
US
Hello,
After installing OLAP Services, I thought I'd be able to incorporate the MDX functions(specifically IIF) into my SELECT statements with something like this:

SELECT [Evaluation_Date],fn_tblEvalSwitch([Period_Code])AS
'Period',fn_tblEvalSwitch([Audit_Indicator])AS
'Audited',fn_tblEvalSwitch([Trade_Settle_Indicator]),IIf([Trade_Settle_Indicator])='M', 'Yes', 'No')

FROM tblEvaluation

..but I keep getting "'IIf' is not a recognized function name" error.

Thanks for any assistance........
 
I know you are doing this get at more than just IIF,
but why don't you just use Case When?

Does it only install to a single datase? or is it for the entire server?

-The answer to your problem may not be the answer to your question.
 
How about asking this in the SQL Server OLAP forum?

[COLOR=black #d0d0d0]When I walk, I sometimes bump into things. I am closing my eyes so that the room will be empty.[/color]
 
Here is a link to the analysis services forum.

forum960

My guess is you are trying to execute against a standard database, not an analysis services database.

Someone there ought to be able to help though.

Good LUck,

Alex

Ignorance of certain subjects is a great part of wisdom
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top