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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
Anonymous
Not applicable

How to get duplicate repeated/existing customers and new customers

Hi, We have requirement to identify how many new customers and repeated/existing(duplicate) customers.

User wants see them based on the date selection. The output they are example like below . 

CustNoDate
8122746571Jan-02-2008
8309664704Jan-02-2008
7207295883Jan-02-2008
7207295883Jan-03-2008
7569650119Jan-03-2008
8978806748Jan-03-2008
8122746571Jan-04-2008
8309664704Jan-04-2008
7207295883Jan-04-2008

 

Suppose, if user select 4th of Jan 2008, there are 3 customers vistited. Since,they also visited on 2nd & 3rd of Jan.

Hence, they want to consider them as existing customers.

2nd of Jan

8122746571
8309664704

3rd of Jan

7207295883

But, if the select 3rd of Jan to 4th of Jan.

There are there 6 customers 3 out of 6 customers are visited on 2nd of Jan. Hence, they want consider them 3 are existing customers and other 3 customers are new customers.

 

Please help me providing solution in POWER BI Desktop. Its bit urgent, i have been reading lots of posts last one week onwards, but could not find correct solution/logic to full fill this

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

 

For a single date, you can create the following measure. 

Measure = IF(CALCULATE(COUNT('Table'[CustNo]),FILTER(ALLEXCEPT('Table','Table'[CustNo]),[Date]<=SELECTEDVALUE('Table'[Date])))>1,1)

Then create the visuals as follows, put the measure into Filters and set show items when the value is 1.

11.png

 

For your second request, it seems a bit difficult to complete.

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @Anonymous ,

 

For a single date, you can create the following measure. 

Measure = IF(CALCULATE(COUNT('Table'[CustNo]),FILTER(ALLEXCEPT('Table','Table'[CustNo]),[Date]<=SELECTEDVALUE('Table'[Date])))>1,1)

Then create the visuals as follows, put the measure into Filters and set show items when the value is 1.

11.png

 

For your second request, it seems a bit difficult to complete.

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.