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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Counting customers that used multiple channels

Hi all, I am trying to count the number of customer names who used both email AND mobile based on these two tables. Given the example data, I want to be able to show in a report that the number of customer names who used both email AND mobile was 1 (only customer A). Customer B did not use both. How would I do this?

I also would like to calculate the average number of Channels used (channel total > 0) for a Customer. Any ideas?

 

Customer Table

Customer Product ID
AA1
AA2
BB1
BB2

 

Feature Usage

Product IDChannelChannel Total
A1Email10
A2Mobile20
B1Email50
B2Mobile0

 

Sample output: 2 KPI cards

KPI Card 1: # of Customers who only used Email Channel (i.e. Customer B)

1

 

KPI Card 2 : # of Customers who used both Email and Mobile (i.e. Customer A)

 

 

 

7 REPLIES 7
amitchandak
Super User
Super User

@Anonymous , I doubt the data model is correct. You should have a customer table, product table, and customer product and feature tables.

 

If these two tables are joined on the product , this one should able to give you an answer

sumx(summarize(Feature,Customer [Customer],Customer[Product ID],Feature[Channel], "_1", max(Feature[Channel Total])),[_1])

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
dax
Community Support
Community Support

Hi @Anonymous 

As @parry2k  mentioned, your current data is based on relationship of table, and when the relationship are many to many or many to one, the result will be different. So if possible, could you please inform me more sample. You could refer to my sample for details.

Best Regards,
Zoe Zhi

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

 

Anonymous
Not applicable

@dax I have a many to many relationship between the two tables, which are related by Product ID. How can I modify the measures to account for this?

dax
Community Support
Community Support

Hi @Anonymous , 

If possible, could you please inform me more detailed information(such as your expected output and your sample data (by OneDrive for Business))? Then I will help you more correctly.

Please do mask sensitive data before uploading.

Thanks for your understanding and support.
Best Regards,
Zoe Zhi

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

 

Anonymous
Not applicable

Hi @dax , I have updated my post. It contains both the same data (2 tables), and expected output (2 KPI cards). Please let me know if you can assist. Thanks

parry2k
Super User
Super User

@Anonymous how come the customer table has duplicate customer records? How your data model looks like? The solution will heavily depend on the data model and the relationship between the tables



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Anonymous
Not applicable

@parry2k @amitchandak @dax there is a many to many relationship between two tables, and they are related by Product ID. I know it isn't an ideal data model, but it is what I have available to me.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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.

Top Solution Authors