Forum Discussion

Hamdan1234's avatar
Hamdan1234
Icon for Helper III rankHelper III
4 years ago
Solved

New vs Established Customers

I have two tables. One with customer entry to business and other one representing their sales. I want to calculate to daxes. One representing New and Established based on their created date column in table. Let me share the both table. 

locationIDdateCreatedID
10217/06/2020658800
10229/10/2020658803
10209/12/2020658806
10229/03/2021658809
10217/06/2020658797
10317/06/2020658798
10316/06/2020658795
10302/07/2021658812
10311/06/2020658792
10302/12/2020658804
10322/06/2020658801
10316/06/2020658796
10412/04/2021658810
10411/06/2020658793
10422/12/2020658807
10417/06/2020658799
10411/06/2020658794
10617/05/2021658811
10607/12/2020658805
10622/02/2021658808
10613/10/2020658802
10624/02/2015164931

The second table is :

Client IdSalesTicket IDStart Date time
1022000123311/2/2020
10213000123412/7/2020
10329404124421/11/2020
104928125529/12/2020
1045421572312/7/2020
1062112124519/4/2020
103443456202/8/2020
1021234152302/8/2020
106974456221/1/2020

I want to get two dax one for new and established customers and second one representing sales for both of the new and established. Kindly help.

  • Hi Hamdan1234 ,

    According to your description, heres my solution,

     

     

     

     

    Best Regards,
    Community Support Team _ kalyj

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

5 Replies