Skip to main content
Contributor I
December 27, 2023
Solved

Calculate total order value of one customer across all their orders

  • December 27, 2023
  • 2 replies
  • 430 views

For every purchase we contribute 5% of sales value to conservation projects. We want to send an email every so often that tells each customer what their total contribution to these projects is.

Subsequently, within the email we need to sum the customer’s total order value across all purchases they’ve made (and then multiply it by 0.05 - this part we can do)

I have not been able to find a way to accomplish this. If someone could advise, it would be greatly appreciated. Thanks in advance.

    This topic has been closed for replies.
    Best answer by In the Inbox

    Hi @JordanDA 

    Thank you for posting your question in the community. I love your idea of personalizing the emails to show how your customers have contributed to your conservation projects. That said, unfortunately, there is not a way to pull in historical spend or run any calculations based on metric values. One way you’d be able to achieve the personalization is to upload the amount spent and total contributions as a custom profile property that you manually upload into the account. 

    Alternatively, you could use the amount spent and create a segment and then send a version of the email with the values hardcoded in the content of the email.

    I wish I knew of a more real-time automated process to share.

    Best,

    @In the Inbox 

    2 replies

    In the Inbox
    Partner - Platinum
    2025 Champion
    December 28, 2023

    Hi @JordanDA 

    Thank you for posting your question in the community. I love your idea of personalizing the emails to show how your customers have contributed to your conservation projects. That said, unfortunately, there is not a way to pull in historical spend or run any calculations based on metric values. One way you’d be able to achieve the personalization is to upload the amount spent and total contributions as a custom profile property that you manually upload into the account. 

    Alternatively, you could use the amount spent and create a segment and then send a version of the email with the values hardcoded in the content of the email.

    I wish I knew of a more real-time automated process to share.

    Best,

    @In the Inbox 

    Bryan Richey // Klaviyo Champion & Email Strategist at In the Inbox // https://intheinbox.co/
    JordanDAAuthor
    Contributor I
    December 28, 2023

    That’s a shame! Thanks for taking the time Bryan, appreciate it.