Add a static number using a calculated metric | Community
Skip to main content
Level 3
Dec 10, 2020 9:23 AM UTC
Solved

Add a static number using a calculated metric

Hello,

 

I want to create a calculated metric that is a static number. For example, say the site has a fixed sales target for the year. I can create a graph in workspace to show cumulative sales as the year progresses using a calculated metric, but would like to be able to add an additional "target line" to the graph so I can easily see progress relative to the target. What I'm looking to replicate is something similar in look to the server call usage graph in the Admin console, where the annual limit is a flat line on the graph and the cumulative metric creeps towards it.

Is there a simple way to do this?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Andrey_Osadchuk
Andrey_OsadchukAccepted solution
Level 10
Dec 10, 2020 11:10 AM UTC

@tcrewes1 , it's already supported by the metric builder:

 

 

5 replies

David_Jerome
Level 6
Dec 10, 2020 11:14 AM UTC

Hi there,

 

Hopefully this is what you are after (based on a target of 120K orders) with 4 custom metrics:

 

 

 

 

 

Cumulative Orders:

 

 

 

 

Translate
Andrey_Osadchuk
Andrey_OsadchukAccepted solution
Level 10
Dec 10, 2020 11:10 AM UTC

@tcrewes1 , it's already supported by the metric builder:

 

 

Translate
tcrewes1Author
Level 3
Dec 10, 2020 11:19 AM UTC
Thank you @andrey_osadchuk, this is perfect, I was searching the components list and not seeing it. Appreciate the quick response.
Translate