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
Anonymous
Not applicable

Countrows where a customer is mailed more than one time

I have a mailers table where each row shows a mailer sent to a customer.

 

There are times when we send more than one mailer in a month to a customer.

 

I'd like to create a measure that tells me how many customerIDs show up more than once?

Basically count rows where count(customerids)>1

 

Example table

Example Count Table.PNG

1 ACCEPTED SOLUTION
Arjunarao
Resolver I
Resolver I

 

 

Capture.PNG

 

Calculation1 = COUNTROWS(
FILTER( VALUES (Sheet1[CustomerID]), COUNTROWS(Sheet1)>1 )
)

Calculation2 = COUNTROWS(
FILTER( VALUES ( Sheet1[CustomerID] ) , [Count of CustomerID] > 1 )
)

https://drive.google.com/file/d/17TZgQPIN18Ri8LoeNsJpkWNz_1fJKnbB/view?usp=sharing

 

View solution in original post

5 REPLIES 5
ChandeepChhabra
Impactful Individual
Impactful Individual

@Anonymous 

 

This measure results in number of customers who were sent more than once
Count = COUNTROWS(FILTER(VALUES(Mailers[CustomerID]),COUNTA(Mailers[CustomerID])>1))
 
 
Arjunarao
Resolver I
Resolver I

 

 

Capture.PNG

 

Calculation1 = COUNTROWS(
FILTER( VALUES (Sheet1[CustomerID]), COUNTROWS(Sheet1)>1 )
)

Calculation2 = COUNTROWS(
FILTER( VALUES ( Sheet1[CustomerID] ) , [Count of CustomerID] > 1 )
)

https://drive.google.com/file/d/17TZgQPIN18Ri8LoeNsJpkWNz_1fJKnbB/view?usp=sharing

 

Anonymous
Not applicable

Thank you so much @Arjunarao !

Many folks had similar answers, appreciate the feedback from everyone, thanks!!

Ashish_Mathur
Super User
Super User

Hi,

In a slicer, select any one month.  Drag this measure to a card visual

=COUNTROWS(FILTER(VALUES(Table1[CustomerID]),COUNTROWS(Table1)>1))

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
d_gosbell
Super User
Super User

You could use logic like the following:

 

COUNTROWS( FILTER( VALUES( Table1[CustomerID] ) , [Count of CustomerID] > 1 ) )

 

 

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.