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

Metric conditional on attribute element

Status
Not open for further replies.

bmcwest

MIS
May 15, 2003
6
US
I am trying to create an olap metric (template level) that returns a hard-coded value based on the intersecting attribute element of an attribute. i.e. Attribute Gender: if attribute element in row is "M" then metric will display 1, if "F" then display 2. Nothing fancy just need to conditionally return a metric value based on an attribute value. I know how to solve with an applysimple but we want to use the i-server rather than pass-through. I have tried using a case but it will not validate (refuses to allow an attribute).

Any suggestions would be greatly appreciated.
 
more text on the case function from the manuals.

CASE (A=2, T, B>5, U, V)
When A=2, return T; when B>5, return U; otherwise return V.
Note
You must drag and drop all arguments onto the editor. If you type any arguments the function will not validate.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top