Skip to main content
Solved

Converting an Event's Property's Value in a Segmentation Graph


Forum|alt.badge.img

I’ve created a Segmentation graph that shows average shopping times. It takes a look at the shopping_time property of all shopping_completed events in a given day and plots the average of those values. I’m wondering if there is a way to apply a formula to the shopping_time values, which we are currently sending in milliseconds, so that we can show either seconds or minutes on the y-axis instead of what is currently milliseconds. Is this a possibility or do we just have to send the shopping_time values in whatever unit we are currently wanting to measure?

 

 

Best answer by Saish Redkar

Hey @michaelhandkins 

Two approaches might work in your case if you stick to sending the shopping_time value in milliseconds -

  • Use the derived property feature to create a property value in mins/sec and use it in your chart. This derived property will be computed on the fly and can be used in any chart [ part of the Govern Add-On ]
  • Use custom formula PROPAVG and convert each datapoint in aggregate into either seconds or minutes by arithmetic calculations. As seen in this chart - https://analytics.amplitude.com/demo/chart/new/bhx8kyu. This approach limited to custom formulas.

Let me know if I have interpreted your use case correctly. Hope this helps.

View original
Did this topic help you find an answer to your question?

2 replies

Saish Redkar
Expert
Forum|alt.badge.img+10
  • Expert
  • 1377 replies
  • Answer
  • October 6, 2022

Hey @michaelhandkins 

Two approaches might work in your case if you stick to sending the shopping_time value in milliseconds -

  • Use the derived property feature to create a property value in mins/sec and use it in your chart. This derived property will be computed on the fly and can be used in any chart [ part of the Govern Add-On ]
  • Use custom formula PROPAVG and convert each datapoint in aggregate into either seconds or minutes by arithmetic calculations. As seen in this chart - https://analytics.amplitude.com/demo/chart/new/bhx8kyu. This approach limited to custom formulas.

Let me know if I have interpreted your use case correctly. Hope this helps.


Forum|alt.badge.img
  • Author
  • Conversationalist
  • 5 replies
  • October 6, 2022

@Saish Redkar Awesome, these are perfect! Thanks!


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings