entaroadun
Programmer
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?
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?