Forum Discussion
Finding New/Existing Customers
- 7 years ago
Hi,
Try this calculated column formula
=if(CALCULATE(COUNTROWS(Data),FILTER(Data,Data[Account Code]=EARLIER(Data[Account Code])&&Data[Created Date]<EARLIER(Data[Created Date])))=0,"New","Existing")
Hope this helps.
- 7 years ago
Hi,
That will happen if the date is the Account code appears more than once on the same date. If you want the second instance on the same day to be marked Existing, then there should a column of Time as well. Share the dataset where you also have a Time column.
Hi,
Try this calculated column formula
=if(CALCULATE(COUNTROWS(Data),FILTER(Data,Data[Account Code]=EARLIER(Data[Account Code])&&Data[Created Date]<EARLIER(Data[Created Date])))=0,"New","Existing")
Hope this helps.
- Anonymous7 years agoNot applicable
Hey! I just noticed that there are multiple entries (mostly 2) of "New" for a single account code in many cases.
Anyway that it can be rectified?
Thanks
- Ashish_Mathur7 years agoSuper User
Hi,
I do not know whom you are replying to. Did my solution not work?
- Anonymous7 years agoNot applicable
Sorry, should've tagged. Ashish_Mathur your solution did work partially, I later noticed that there are multiple entries (mostly 2) of "New" for a single account code in many cases.