Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

How to tier the results of a metric

How to tier the results of a metric

How to tier the results of a metric

I need to build a metric that takes the output of another metric at a given attribute level, then assigns a score based on the tier it falls in.  Example:

Total Revenue at the Customer level
If Rev >= 75000, then 12
Elseif Rev >=25000, then 10
Elseif Rev >=10000, then 8
Else 0
End If

What can I use in MSI 7.0 SP2 to accomplish this?  The warehouse is SQL Server 7.0 SP4, with default VLDB settings.

The tiers will be maintained by the line of business, so we don't want to put this into our ETL.

I have tried ApplySimple with case statements, however, this just passes thru to the SQL engine.  The Revenue metric is a VERY complex definition, and using ApplySimple causes the SQL statement to go over 65K chars, which the ODBC driver rejects.

There must be an analytical engine function that does this, right?

RE: How to tier the results of a metric

I think I found a function to do this:  BandingP.

I can't get it to work properly, though, and the documentation is sparse.

Any help would be greatly appreciated.

RE: How to tier the results of a metric

FYI: When you upgrade to 7i using thresholds / stoplighting will be an option.  

RE: How to tier the results of a metric

agree with chael, the thresholds let you define a metric and its format based on another metric.

RE: How to tier the results of a metric

Thanks chael.  I should have just called you.  :)

What can we do in 7.0 SP2?  ApplySimple generates a SQL statement that is simply too long.

RE: How to tier the results of a metric

With the metrics in the version 7i we can use the thresholds but what happend with the attributes????

Thanks for your help..

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close