Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

need help identifying customers first, 2nd and so on orders

Hi,   i have a data set which contains customer orders and im trying to find a way to identify the customers purchases from their 1st order to their latest but i cant find a solution to the problem...
  • Anonymous's avatar
    Anonymous
    5 years ago

    Hi Anonymous 

    Try "Dense" in Rank function. I update your code.

    New calculated column:

    New Rank = 
    RANKX(FILTER(Fact_table,Fact_table[business_partner_code]=EARLIER(Fact_table[business_partner_code])),Fact_table[demand_date_id],,ASC,Dense)

    Result is as below.

    Best Regards,

    Rico Zhou

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.