Forum Discussion

VModani's avatar
VModani
Frequent Visitor
4 years ago
Solved

How to identify new customers

I have a sales table with reoccuring customers. I need to identify new customers over the entire table, not restricted by a time frame. The Distinctcount(Customers) function counts distinct customer...
  • David-Ganor's avatar
    4 years ago

    Hi VModani ,

    Generally, you can point out when was the first time a customer is shown on the table, and count thise rows or customers by that.

    Please create a Calculated column as follows:

    Customer first appearance=

    Var this_row_customer=Table[Customer Name]

    Var this_row_sale_date=Table[Sale Date]

    Var first_appreance=Calculate (MAX(Table [Sale Date])

    FILTER(Table, Table[Customer Name]=this_row_customer]))

    Return

    IF(this_row_sale_date=first_appreance, Table[Customer Name],"")

     

    Then - on the visual - count the Table[Customer first appearance] by Sale Date.

    Hope it helps

    David