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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
JayV
Helper I
Helper I

Exclude whole group if value is not found

Hi
My problem is similar to this one, but excluding values when not found.
I have a "Store" column and a "Product" column and i want to show all products from the store only when it has the product "Paint", if a store doesn't have "Paint" in one of its rows i need a filter that excludes all of the store in all pages of my model.
If this is my Data:

IDStoreProduct
11Chips
21Paint
32Paint
43Soda
53Chips

I want my model to work only with this rows (Store 1 and 2):

IDStoreProduct
11Chips
21Paint
32Paint


Thanks a lot!

1 ACCEPTED SOLUTION
Jihwan_Kim
Super User
Super User

Hi,

Please check the below picture and the attached pbix file.

It is for creating a new table.

 

Jihwan_Kim_0-1677126557547.png

 

 

Expected result calculated table =
VAR _storewithpaint =
    SUMMARIZE ( FILTER ( Data, Data[Product] = "Paint" ), Data[Store] )
RETURN
    CALCULATETABLE ( Data, TREATAS ( _storewithpaint, Data[Store] ) )

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

View solution in original post

3 REPLIES 3
JayV
Helper I
Helper I

Worked perfectly! Thanks a lot @Jihwan_Kim !

Jihwan_Kim
Super User
Super User

Hi,

Please check the below picture and the attached pbix file.

It is for creating a new table.

 

Jihwan_Kim_0-1677126557547.png

 

 

Expected result calculated table =
VAR _storewithpaint =
    SUMMARIZE ( FILTER ( Data, Data[Product] = "Paint" ), Data[Store] )
RETURN
    CALCULATETABLE ( Data, TREATAS ( _storewithpaint, Data[Store] ) )

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

Thank you!

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.