Forum Discussion

Syndicate_Admin's avatar
Syndicate_Admin
Administrator
2 years ago

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

  • Anonymous's avatar
    Anonymous
    Not applicable

    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.