Forum Discussion
Anonymous
6 years agoNot applicable
Identify new Customers
Hi, I have a list of sales by customer and by week. I'd like to identify how many new customers I have each week. In my database, I have data for last 3 years, howerver, I want to apply the formu...
v-eachen-msft
6 years agoCommunity Support
Hi Anonymous ,
You could also use DAX to create a new column.
Column =
VAR a =
RANKX (
FILTER (
'Table',
'Table'[Customer] = EARLIER ( 'Table'[Customer] )
&& 'Table'[Week] >= 12
),
'Table'[Week],
,
ASC,
DENSE
)
RETURN
IF ( a = 1, "yes", "no" )
Here is the result.
Anonymous
5 years agoNot applicable
Works Perfectly. Thanks for the solution