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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Syndicate_Admin
Administrator
Administrator

COUNT IF MULTIPLE CONDITIONS

Hello

I need to get the distribution of customers based on the products they buy. To contemplate that I have a capated customer, they must have purchased certain products from different categories. For example:

CAT. PRODUCT000001010102
PRODUCT123456
AXX X
B XXX X
CX XXX
DXX XXX

In this case, the distribution of product category 00 would be 2 customers, because only customer A and customer D have purchased the two products in the category.

The distribution of category 01 would be 1 customer, because only customer C has purchased all 3 products.

And the distribution of category 02 would be 3 customers (A, B and D).

I thought I could do it with a conditional, but I need a lot of conditions. Is there a way to do this count in PowerBi?

Thank you

1 REPLY 1
v-binbinyu-msft
Community Support
Community Support

Hi @Syndicate_Admin ,

In order to better understand your demands and give the right solution, could you please provide some more specific information? such as your desensitized example data and a screenshot of your desired results?

Thanks for your efforts & time in advance.

 

Best regards,
Community Support Team_Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.