cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
samirkhan
Frequent Visitor

Returning and New Members

Hi All,

 

Can somone help me to find out the count of customers and the corresponding sales for customers who are members.

 

1. Returning Members = Unique count of Customers who have "1" in Member Column for this period but also have "1"  before the min date in this period if they booked anything in past.

2. New Members = Unique Count of Customers who have "1" in this period but "0" in previous periods. Again they may me returning customers but became members this period.

 

Customer Email(UniqueID)Booking DateMember (1/0)Booking Amount
abc01/01/19901£
abc02/01/19900£
abc03/01/19901£
abc04/01/19900£

 

I used the queries below for New/ Returning Customers but stuck with the Membership metrics.

 

NewCustomers = COUNTROWS(FILTER(ADDCOLUMNS(VALUES(AllAdvam[CustomerEmailAddress]),"PreviousSale",CALCULATE(COUNTROWS(AllAdvam),FILTER(ALL(AllAdvam[Booking Date].[Date]),AllAdvam[Booking Date].[Date]<MIN(AllAdvam[Booking Date].[Date])))),[PreviousSale]=0))

 

Returning Customer = COUNTROWS(FILTER(ADDCOLUMNS(VALUES(AllAdvam[CustomerEmailAddress]),"PreviousSale",CALCULATE(COUNTROWS(AllAdvam),FILTER(ALL(AllAdvam[Booking Date].[Date]),AllAdvam[Booking Date].[Date]<MIN(AllAdvam[Booking Date].[Date])))),[PreviousSale]>0))

 

May be, I need to add another filter for Members columns to the codes above?

 

Sam

 

0 REPLIES 0

Helpful resources

Announcements
Power BI Show Episode 10 Recap

The Power BI Community Show

Watch the playback when Amit Chandak, a Power BI Super User, demos how to use Field Parameters to make reports more dynamic.

Power BI Dev Camp Session 26

Ted's Dev Camp - October 6, 2022

Watch the playback of Session 26 with Ted Pattison!

Health and Life Sciences Power BI User Group

Health and Life Sciences Power BI User Group

Power BI specialists at Microsoft have created a community user group where customers in the provider, payor, pharma, health solutions, and life science industries can collaborate.

Ignite 2022

What's Next at Microsoft Ignite 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Top Kudoed Authors