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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
Anonymous
Not applicable

Filter out blanks when the table is sliced

Hi,

I have a dataset as below:

Upload.JPG

I'm using the 'Description' column as a filter. When I filter it for any value, I want power bi to filter out blank cells from the 'Value' column and just show me cells with values.

Again when I remove the filter it should show me back all values including blank cells.

 

Is this something possible?

 

Thanks in advance for your time and help!.

1 ACCEPTED SOLUTION
v-yulgu-msft
Microsoft Employee
Microsoft Employee

Hi @Anonymous ,

 

Add below measure into visual level filter and set its value to 0.

Measure value =
IF (
    CALCULATE ( ISFILTERED ( Sample3[Description] ), ALLSELECTED ( Sample3 ) ),
    IF ( SELECTEDVALUE ( Sample3[Value] ) = BLANK (), 1, 0 ),
    0
)

1.PNG2.PNG

Best regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-yulgu-msft
Microsoft Employee
Microsoft Employee

Hi @Anonymous ,

 

Add below measure into visual level filter and set its value to 0.

Measure value =
IF (
    CALCULATE ( ISFILTERED ( Sample3[Description] ), ALLSELECTED ( Sample3 ) ),
    IF ( SELECTEDVALUE ( Sample3[Value] ) = BLANK (), 1, 0 ),
    0
)

1.PNG2.PNG

Best regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

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

Top Kudoed Authors