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!

How to tier the results of a metric

Status
Not open for further replies.

entaroadun

Programmer
Sep 27, 2002
583
US
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?
 
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.
 
FYI: When you upgrade to 7i using thresholds / stoplighting will be an option.
 
agree with chael, the thresholds let you define a metric and its format based on another 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.
 
With the metrics in the version 7i we can use the thresholds but what happend with the attributes????

Thanks for your help..

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top