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

metric calculation involving prompt answer

Status
Not open for further replies.

138006

IS-IT--Management
Dec 30, 2003
101
IN
Hi
My requirement is to creat a metric which calculates depending on a prompt value.

For example,

If prompt_flag=1 the fact 1 else fact2*fact3

Now prompt_flag is a prompt.

If I use an attribute elememt list prompt then I can't include it in tghe metric definition. However, if I create a static value prompt then it can be used. But for that the user needs to enter the value which I don't want.

Please let me know if this attribute element prompt is not possible in metric and if there are any work arounds.
Thanks
 
Why not create a metric with the attribute definition? e.g.
Assuming you have an Sum metric

Sum(Applysimple("case when #3 in (x, xx, xxx) then #0 else #1*#2 end", [fact1], [fact2], [fact3], [attrbiute]@id))

Currently there seem to have a limitation that this metric would require a separate pass for itself. Other than that, this should work.

Hopefully I got what you wanted correctly.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top