Forum Discussion

Eric_Guli's avatar
Eric_Guli
Frequent Visitor
8 years ago

New Customer Sales

Hello Power BI Community,

 

I am looking for a solution on capturing New Customer Sales but I have the following issue that I haven't been able to overcome. We have three (3) Legal Entities in our company and it's possible to have the same customer setup in each unit. The customer name may be the exact spelling but a new account number is created in each unit.

 

I have created calculated columns to identify the duplicate customer names and then tried to use either MIN or FIRSTDATE to capture the Created Date. I have even tried to use first invoice date but it always brings back the MIN date of the Legal Entity the customer was created in, not the MIN of the multiple accounts. I am racking my head against a wall here and thought I would reach out the you to see if there is a solution.

 

The second issue which may be solved by the first is when a customer is setup in the prior year but a sale doesn’t take place until the following year this should be classified as a new sale in the current year but due to the created date being in the prior year it shows as an existing customer.

 

Thank you for your help.

14 Replies

    • Eric_Guli's avatar
      Eric_Guli
      Frequent Visitor

      Thank you very much for your reply. I may have been a little too excited for my first post and didn't provide enough background info.

      We are running Microsoft AX 2012 for our entire company, there are three legal entities within our environment. SXE for East, SXW for West and SXCN for Canada. All the data is dumped into a data warehouse and into common tables. i.e. DWCustMaster. I have pasted in screen shot for better understanding.

       

      When looking for new customers it would see the created date of 2015 as new when in fact it's a current account from 2013. The only way I see to check for duplicate customers is by checking the Name Column but the fact the account num and legal entity are different is the challenge.

       

      I'll look at the TREATAS function to see if there is an option for me.

      • Thyago_Rezende's avatar
        Thyago_Rezende
        Icon for Resolver I rankResolver I

        What´s the correct rules for count? Are the Name, AccountNum, others? Is it necessary count for entity or global entities?