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!

Metric that qualifies on attribute??

Status
Not open for further replies.

bittmapp

Technical User
Jul 21, 2003
56
US
Can a metric built with a qualification on an attribute. I mean someting like this.


if indicator = Y, then sum(amt) else (sum(amt)*.86)

Thanks in advance.

bitt
 
You could either use an ApplySimple or use a Threshold.
Thresholds do not require you to come up with any fantastic solutions, but are pretty powerful.
The only catch though is that both your Indicator attribute and your Sum(Amt) metric should be on your grid
 


Look at technical note TN5200-071-0120 on Microstrategy's knowledge base. It has some exmpales on how to use Case fuctions.
 
No need to use applysimple on that one, the case statement and a compound metric will do (the max(flag) metric is just going to need to have the right dimensionality)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top