Forum Discussion

RyanNewportJP's avatar
RyanNewportJP
Frequent Visitor
1 year ago
Solved

Average LTV Measure

Hi all,   I'm trying to create a measure that returns the average LTV for all customers in table. The table has individual product purchases for rows, so I want to add up all the instances of a pr...
  • bhanu_gautam's avatar
    1 year ago

    RyanNewportJP First create a measure for Total Sales per Customer

     

    TotalSalesPerCustomer =
    SUMX(
    VALUES(Table[CustomerID]),
    CALCULATE(SUM(Table[Sales]))
    )

     

    Then create a measure for Average LTV

    AverageLTV =
    AVERAGEX(
    VALUES(Table[CustomerID]),
    [TotalSalesPerCustomer]
    )