Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Revenue PER client -- urgent help needed!

I want to calculate the Average Purchase Value for each of my clients. That is defined as: APV = Total revenue per client/ number of that client's orders. I will then take each average per customer, ...
  • PaulDBrown's avatar
    6 years ago

    Anonymous 

    Try this:

    the model:

     

    And the measures:

     

    Sum of Amount = SUM('DataTable'[Amount])
    Number of Transactions = DISTINCTCOUNT('DataTable'[Transaction ID])
    Average Purchase Value overall = DIVIDE([Sum of Amount]; [Number of Transactions])
    Average Purchase value per customer = AVERAGEX('User ID Table'; DIVIDE([Sum of Amount]; [Number of Transactions]))

     

     

    Which gets you this: