cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
kayw Visitor
Visitor

How to exclude table rows from a Slicer

I have 3 tables, Sales Records, Products, Customer.

 

Sales Records

CustomerProductPurchaseDate
AP120170101
Ap220170501
BP120171022
CP320170507

 

Is it possible to create a Product Slicer to give me all the customer who have never purchase the selected product?

 

For example, 

in my slicer, i have the ability to choose P1 to P4. When P1 is selected, the result should display Customer C..

ProductNameUnit Price
P1n11
P2n22
P3n33
P4n44
1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: How to exclude table rows from a Slicer

@kayw,

 

You may drag [Customer] from Customer Table and the following measure to a Table visual.

flag =
VAR c =
    MAX ( Customer[Customer] )
RETURN
    IF (
        COUNTROWS (
            FILTER (
                'Sales Records',
                'Sales Records'[Customer] = c
                    && 'Sales Records'[Product] IN VALUES ( Products[Product] )
            )
        )
            = 0,
        1
    )
Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
1 REPLY 1
Community Support Team
Community Support Team

Re: How to exclude table rows from a Slicer

@kayw,

 

You may drag [Customer] from Customer Table and the following measure to a Table visual.

flag =
VAR c =
    MAX ( Customer[Customer] )
RETURN
    IF (
        COUNTROWS (
            FILTER (
                'Sales Records',
                'Sales Records'[Customer] = c
                    && 'Sales Records'[Product] IN VALUES ( Products[Product] )
            )
        )
            = 0,
        1
    )
Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Virtual Launch Event

Microsoft Business Applications October Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

Power BI Helps Homeless and Trouble Youth

Power BI Helps Homeless and Trouble Youth

We spoke with Power BI Super User, Greg Deckler, about his charity work

MBAS Gallery

Watch Sessions On Demand!

Continue your learning in our online communities.

Top Kudoed Authors
Users Online
Currently online: 307 members 3,154 guests
Please welcome our newest community members: