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
dwelsh
Advocate I
Advocate I

Filter Selection for Visuals Excluded on another Table

I am making an item sale Power BI with many different visuals.   For most of the visuals, I want to see sales on an item selected in my Item filter.  For example, if Apples is selected in the Item filter, one of my tables would show something like this:

 

ProductQty SoldAmount SoldMarginAvgSpent
Apples20$4025%$15

 

I also want to have a table showing items and qauntities sold with Apples.   My issue is, I don't know how to keep Apples from appearing like the below on my Sold With table: 

 

Sold WithQty Sold
Apples20
Bananas17
Oranges17
Grapes15
Avacodos14
Strawberries13

 

Is there a way to automatically exlude whatever is choosen in the Item Filter from a table? 

1 ACCEPTED SOLUTION

Thanks @v-xuding-msft for the reply.  This doesn't quite do what I want it to as I need it to interact.   The table needs to show everything that sold in the same transaction as Apples.   I just need Apples to be excluded from the table.   

 

I found a way to get this to work by using a measure with the SELECTEDVALUE function.

 

ItemExclude = IF(MAX('Items2'[ItemName]) = SELECTEDVALUE('Items'[ItemName]), "TRUE", "FALSE")

 

Then I added the ItemExclude measure as a filter set to False on the Table.   The Item then is excluded from the 'Sold With' table.

View solution in original post

2 REPLIES 2
v-xuding-msft
Community Support
Community Support

Hi @dwelsh ,

You could try editing interactions. For more details, please reference the document: Change how visuals interact in a Power BI report .

SampleSampleSampleSample

Best Regards,

Xue Ding

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

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

Thanks @v-xuding-msft for the reply.  This doesn't quite do what I want it to as I need it to interact.   The table needs to show everything that sold in the same transaction as Apples.   I just need Apples to be excluded from the table.   

 

I found a way to get this to work by using a measure with the SELECTEDVALUE function.

 

ItemExclude = IF(MAX('Items2'[ItemName]) = SELECTEDVALUE('Items'[ItemName]), "TRUE", "FALSE")

 

Then I added the ItemExclude measure as a filter set to False on the Table.   The Item then is excluded from the 'Sold With' table.

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.