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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
July 2024 Power BI Update

Power BI Monthly Update - July 2024

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

PBI_Carousel_NL_June

Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.