Forum Discussion

Chanleakna123's avatar
Chanleakna123
Icon for Post Prodigy rankPost Prodigy
8 years ago

Need HELP New Customers Calculation

Hi , i make a calculation here over the New Customers . below is my calculation. 

but i don't know what i'm doing here :D , i dun understand the calculation result of New Customer. 
I still dun get it why New cusotmers show 1 or 2 in someday . Can somebody Explain me why ? i think for few hours still do not make any sense for me. 

 

New Cusotmers =
VAR CustomerTM = VALUES( 'Daily Sale PC'[Customer Name - Store])
VAR PriorCusotmers = CALCULATETABLE(VALUES( 'Daily Sale PC'[Customer Name - Store] ),
FILTER(ALL('Date'),
'Date'[Date] > MIN('Date'[Date]) -30 &&
'Date'[Date] < MIN('Date'[Date] ) ) )

RETURN
COUNTROWS(
EXCEPT(CustomerTM, PriorCusotmers))

2 Replies