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

Count of Customers with no Sales

Hello Experts,

 

I need to create a card that show the Count of Customers with no Sales filtered by date and brand. I tried the following measure

 

No of Customers with no Sales =
CALCULATE(
COUNT(Customer[Customerid]),
FILTER(salesinvoices,[Count of Sales invoice]=0)
)
 
But it always show blank.
 
Thanks all in advance~
 
This is my sample data.
Sales Invoice
Customer IDTotal AmountDateSales Invoice ID
A10043101ID1
B20043133ID2
30043134ID3
D40043194ID4
    

 

 Invoice Line
Invoice Line IDSales Invoice IDBrand 
LINE1ID1Brand A
LINE2ID2Brand B
LINE3ID3Brand A
LINE4ID4Brand B
LINE5ID1Brand A
LINE6ID2Brand B
LINE7ID3Brand A
LINE8ID4Brand B

 

Customer
Customer ID
A
B
D
E
1 ACCEPTED SOLUTION

Accepted Solutions
Microsoft v-cherch-msft
Microsoft

Re: Count of Customers with no Sales

Hi @Geniebelle123

 

You may create the measures as below and change the relationships. Attached the sample file.

Measure =
IF (
    NOT ( MAX ( Customer[Customer ID] ) ) IN VALUES ( 'Sales invoice'[Customer ID] ),
    1
)
Customers with no sales = SUMX(Customer,[Measure])

Regards,

Cherie

Community Support Team _ Cherie Chen
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

5 REPLIES 5
Microsoft v-cherch-msft
Microsoft

Re: Count of Customers with no Sales

Hi @Geniebelle123

 

Could you show us the measure [Count of Sales invoice] you created? Please show the relationships. If you could share the .pbix file, we could provide an accurate solution. You can upload it to OneDrive and post the link here. Do mask sensitive data before uploading.

 

Regards,

Cherie

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Super User
Super User

Re: Count of Customers with no Sales

Hi,

 

Based on the data you have shared, please let us know the exact result you are expecting and rationale for the same.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Geniebelle123 Frequent Visitor
Frequent Visitor

Re: Count of Customers with no Sales

Geniebelle123 Frequent Visitor
Frequent Visitor

Re: Count of Customers with no Sales

@Ashish_Mathur

 

This is my expected result!

expected result.PNG

 

 

Thanks

Microsoft v-cherch-msft
Microsoft

Re: Count of Customers with no Sales

Hi @Geniebelle123

 

You may create the measures as below and change the relationships. Attached the sample file.

Measure =
IF (
    NOT ( MAX ( Customer[Customer ID] ) ) IN VALUES ( 'Sales invoice'[Customer ID] ),
    1
)
Customers with no sales = SUMX(Customer,[Measure])

Regards,

Cherie

Community Support Team _ Cherie Chen
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

Helpful resources

Announcements
New Kudos Received Badges Coming

New Kudos Received Badges Coming

Kudos to you if you earned one of these! Check your inbox for a notification.

Microsoft Implementation for Communities Wins Award

Microsoft Implementation for Communities Wins Award

Learn about the award-winning innovation that was implemented across Microsoft’s Business Applications Communities.

Power Platform World Tour

Power Platform World Tour

Find out where you can attend!

Top Kudoed Authors (Last 30 Days)
Users online (3,847)