Forum Discussion

prabhuk's avatar
prabhuk
Helper I
4 years ago

Not Billed customer

Dear All,

 

I am using the below code to find new customer billed for specific period. now i need to modify this code the list of not billed customer for a specific period.

Kindly help

 

New Customers Sales =
VAR CustomerTM = VALUES(SALES[CUSTOMER] )
VAR PriorCustomers = CALCULATETABLE( VALUES(SALES[CUSTOMER] ),
FILTER( ALL( 'Time'[Date]),
time[Date] > MIN( 'Time'[Date]) - [Time Frame Value] &&
'Time'[Date]<= MIN('Time'[Date]) ) )

RETURN
CALCULATE( [Ttl Revenue] ,
EXCEPT( CustomerTM, PriorCustomers ) )

1 Reply