Forum Discussion
Eric_Guli
8 years agoFrequent Visitor
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 ...
Ashish_Mathur
Super User
8 years agoHi,
Please share some data and show the expected result.
Eric_Guli
8 years agoFrequent Visitor
Here is a snippet of data to give you an idea that I need to use the MIN date from Created Date column to be able to calculate new customer sales. In this instance I don't care about the legal entity or cutomer account number as it's the same customer.
Thanks!
Legal Entity Customer account Name Created date
| SXW | 101050860 | All American Containers | 7/31/2014 |
| SXCN | 201062105 | All American Containers | 12/23/2015 |
| SXW | 123000298 | Allied Wine Corp. | 12/10/2014 |
| SXCN | 201060659 | Allied Wine Corp. | 9/29/2013 |
| SXW | 101051459 | Altitude Spirits | 2/18/2015 |
| SXE | ALTI01 | Altitude Spirits | 6/15/2017 |
| SXW | 123000353 | Auston Design Group | 1/16/2015 |
| SXE | AUST02 | AUSTON DESIGN GROUP | 12/3/2013 |
| SXW | 101022930 | Axe And The Oak Distillery | 7/31/2014 |
| SXE | AXEO01 | Axe And The Oak Distillery | 9/7/2016 |
| SXE | BACB01 | BACK BAY BREWING | 5/9/2017 |
| SXCN | 201062143 | Back Bay Brewing | 6/5/2017 |
| SXW | 101052708 | Bay Etching & Imprinting | 2/7/2017 |
| SXCN | 201062158 | Bay Etching & Imprinting | 1/4/2018 |
| SXW | 101016842 | Bayhawk Ales, Inc. | 7/31/2014 |
| SXW | 101052101 | Bayhawk Ales, Inc. | 8/15/2016 |
| SXW | 101011229 | Berlin Packaging | 7/31/2014 |
| SXE | BERL01 | BERLIN PACKAGING | 5/23/2014 |
- Ashish_Mathur8 years ago
Super User
Hi,
Please also share the exact result you are expecting.
- Eric_Guli8 years agoFrequent Visitor
Sorry for the delay. Please see the expected results below.
Legal Entity Customer account Name Created date Min Created Date SXW 123000298 Allied Wine Corp. 12/10/2014 9/29/2013 SXCN 201060659 Allied Wine Corp. 9/29/2013 9/29/2013 SXW 101053074 ALLTECH 2/16/2018 12/3/2013 SXE ALLT01 ALLTECH 12/3/2013 12/3/2013 SXW 123000374 Aloha Medicinals Inc. 1/26/2015 7/31/2014 SXW 101019758 Aloha Medicinals, Inc 7/31/2014 7/31/2014 SXW 101051459 Altitude Spirits 2/18/2015 2/18/2015 SXE ALTI01 Altitude Spirits 6/15/2017 2/18/2015 - Ashish_Mathur8 years ago
Super User
Hi,
These are the 2 measures that i wrote:
Create Date = MIN(Table1[Created Date])
Min Create Date = CALCULATE([Create date],ALL(Table1[Customer Account]),ALL(Table1[Legal Entity]))
Hope this helps.