Forum Discussion
Customer First Time Calculation Without Earlier
- 5 years ago
Hi Anonymous ,
You can change your [First Time] column to
First Time = RANKX(FILTER('Table','Table'[Customer] = EARLIER('Table'[Customer])),'Table'[Date],,ASC,Dense)Use another measure for counting customer for 3 year break:
_3 Year Break = CALCULATE(DISTINCTCOUNT('Table'[Customer]),'Table'[3 Year Break] = 1)+0If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Best Regards,
Dedmon Dai
Anonymous , You can create a column like this
Last Date = maxx(filter('Table' ,[Date] < EARLIER ( [Date] ) && 'Table'[Customer] = EARLIER ( 'Table'[Customer])),'Table'[Date])
If this null then it first visits
Now a new column
datediff([Last Date ],[Date] ,DAY) // diff from last order
datediff([Last Date ],[Date] ,Month)
You can change such a column in measure with two changes
Last Date = maxx(filter(allselected('Table') ,[Date] < max( [Date] ) && 'Table'[Customer] = max( 'Table'[Customer])),'Table'[Date])
- Anonymous5 years agoNot applicable
Hi amitchandak ,
I tried your measure but it doesn't return the expected result.
I want to find customer count for each date. I shared the screenshot in the previous post.
I need something like that.- v-deddai1-msft5 years agoCommunity Support
Hi Anonymous ,
You can change your [First Time] column to
First Time = RANKX(FILTER('Table','Table'[Customer] = EARLIER('Table'[Customer])),'Table'[Date],,ASC,Dense)Use another measure for counting customer for 3 year break:
_3 Year Break = CALCULATE(DISTINCTCOUNT('Table'[Customer]),'Table'[3 Year Break] = 1)+0If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Best Regards,
Dedmon Dai