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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
Eder_JG
Regular Visitor

How to filter, "Only" customers with products A, B and C and return in a table?

Hey guys.

Please help me in the following case, in the table below, I need you to return to customers who had products A, B and C, the return needs to be "Only" the filtered values and a table.

 

Eder_JG_0-1688574347860.png

I tried the formulas:

CALCULATE (
    COUNTA ( 'Sheet1' [Client] );
        KEEPFILTERS ( Sheet1 [Product] IN { "A" ; "B" ; "C" }

 

CALCULATE (
    COUNTA ( 'Sheet1' [Client] );
    'Sheet1' [Product] IN { "A" ; "B" ; "C" }

 

But they return all the values, I would like only the customers who have my "Conditions" to be displayed.

Eder_JG_0-1688577863800.png

I tried that, but it returns nothing.

CALCULATE(
    CONTA('Sheet1'[Client]);
        'Sheet1'[Product] = "A" &&
           'Sheet1'[Product] = "B" &&
              'Sheet1'[Product] = "C"

 

2 ACCEPTED SOLUTIONS
Nathaniel_C
Community Champion
Community Champion

Hi @Eder_JG 
If I understand your issue, correctly, please try this:

Clients who own all = 

Var _client = MAX(ClientProd[Client])

var _calc = CALCULATE(DISTINCTCOUNT(ClientProd[Product]), FILTER(ALL(ClientProd),ClientProd[Client]=_client))



return IF(_calc =3,3)

Nathaniel_C_0-1688580496139.png

Table on the left is my original table. Table on the right are the owners and the Distinct Count.


Let me know if you have any questions.

If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos 👍are nice too.
Nathaniel








Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

Thanks a lot for your help, perfect.

View solution in original post

2 REPLIES 2
Nathaniel_C
Community Champion
Community Champion

Hi @Eder_JG 
If I understand your issue, correctly, please try this:

Clients who own all = 

Var _client = MAX(ClientProd[Client])

var _calc = CALCULATE(DISTINCTCOUNT(ClientProd[Product]), FILTER(ALL(ClientProd),ClientProd[Client]=_client))



return IF(_calc =3,3)

Nathaniel_C_0-1688580496139.png

Table on the left is my original table. Table on the right are the owners and the Distinct Count.


Let me know if you have any questions.

If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos 👍are nice too.
Nathaniel








Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Thanks a lot for your help, perfect.

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.