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
Anonymous
Not applicable

Filter out all blank values except one specific row

Hello guys i have an employee payroll table

 

I have a visual table in dax that looks like this

 

Employee   hours   pay in local   pay in usd 

EmpA            100           0                 200

EmpB            125           0                 250

EmpC                           1000

EmpD              

 

So as you see empD is showing but i dont want him to show so i use the filter tab next to the visual and fields tab and filter out where hours is blank so empC and empD are goen now

 

But i want to make an exception for empC to show anyways what can i do?

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

 

If your table looks like as below, I think EmpD will be hidden by default as  tamerj1  mentioned.

RicoZhou_0-1665543780869.png

You can try to turn off "Show items with no data" in columns field.

RicoZhou_1-1665543850993.png

Or you can try to create a measure to filter your visual.

Measure = 
IF(SUM('Table'[hours])+SUM('Table'[pay in local])+SUM('Table'[pay in usd]) >0,1,0)

Add this measure into visual level filter and set it show items when value = 1.

RicoZhou_2-1665543993352.png

 

Best Regards,
Rico Zhou

 

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

3 REPLIES 3
tamerj1
Super User
Super User

@Anonymous 
Blank rows should not appear in the report by default. Please provide more context.

Anonymous
Not applicable

ok so my table has payment per hour and transportation per day whixh are fixed this is why they will show when hours id blank 

Anonymous
Not applicable

Hi @Anonymous ,

 

If your table looks like as below, I think EmpD will be hidden by default as  tamerj1  mentioned.

RicoZhou_0-1665543780869.png

You can try to turn off "Show items with no data" in columns field.

RicoZhou_1-1665543850993.png

Or you can try to create a measure to filter your visual.

Measure = 
IF(SUM('Table'[hours])+SUM('Table'[pay in local])+SUM('Table'[pay in usd]) >0,1,0)

Add this measure into visual level filter and set it show items when value = 1.

RicoZhou_2-1665543993352.png

 

Best Regards,
Rico Zhou

 

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

 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

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.