Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
lprbi
Advocate I
Advocate I

DAX: New, Returning Customers and Base of Customers

Hello,

 

Trying to get a calculated Measure that shows me the New Customers I get by month(for example).

Tryed several DAX samples but none have the effect.

 

Distinct Customers = My Active Customers in the month OK!

PreExisting Customers = My Base of Customers to the period

New Customers 

 

This one give me the result but only day by day, if I have any agreggate returns Blank:

 

DistinctCustomers =
DISTINCTCOUNT(CUSTOMERS[CUSTOMER_ID])
 
PreExisting Customers =
CALCULATE([DistinctCustomers];
DATESBETWEEN(ORDERS[ORDER_DATE];
0;
FIRSTDATE(ORDERS[ORDER_DATE])-1
)
)
 
NewCustomers = DistinctCustomers - PreExisting Customer



Please help!

Thank You

1 ACCEPTED SOLUTION
greggyb
Resident Rockstar
Resident Rockstar
1 REPLY 1
greggyb
Resident Rockstar
Resident Rockstar

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.