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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
thaonguyen
Frequent Visitor

If not filter, show value table with condition

Hi all, 

I have a problem about slicer and table list.

I have an example table:

thaonguyen_0-1663063901086.png

I have a slicer BU. When I don't filter any slicers, I want the table only shows records that have NOTE = off/ null.

If I filter BU, the table will show all NOTE.

Please help me with it,

Thanks so much.

 

1 ACCEPTED SOLUTION
tamerj1
Super User
Super User

Hi @thaonguyen 

Please follow attached sample file for the solution

1.png1.png2.png

 

 

Filter Measure = 
IF (
    ISFILTERED ( 'BU Selection'[BU] ),
    1,
    COUNTROWS ( 
        FILTER ( Data, Data[NOTE] IN { "off", BLANK ( ) } )
    )
)

 

 

View solution in original post

3 REPLIES 3
thaonguyen
Frequent Visitor

Hi @tamerj1 ,

I really got it. Thank you so much for your comment

@thaonguyen 
I notice a small mistake in the code. Please refer to the updated one in the "Marked as accepted solution" reply.

tamerj1
Super User
Super User

Hi @thaonguyen 

Please follow attached sample file for the solution

1.png1.png2.png

 

 

Filter Measure = 
IF (
    ISFILTERED ( 'BU Selection'[BU] ),
    1,
    COUNTROWS ( 
        FILTER ( Data, Data[NOTE] IN { "off", BLANK ( ) } )
    )
)

 

 

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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