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

Try your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now

Reply
Frost
Frequent Visitor

New table filter including zero

I have a table of 15 rows with two columns (A+B), where A has values from zero to five (3 rows zero and 7 rows with values=10 rows) but also some blank values (5 rows). I want to create a new table where I filter out only blanks, but including 0-5 using:

 

  1. Table = FILTER (Sheet1, Sheet1[A] <> BLANK ()) - gives me no blanks and no zeros (7 rows)
  2. Table = FILTER (Sheet1, Sheet1[A] <> BLANK () || Sheet1[A]=0) - gives me all values including blanks and zeros (15rows)???

 

I added a column in the original table:

 

CheckNumberOfNoBlanks =
CALCULATE (
    COUNTA ( Sheet1[A] ),
    FILTER (Sheet1, Sheet1[A] <> BLANK () || Sheet1[A] = 0)
)

 

which gives me the correct number of NoBlanks (10 rows) but for some reason this does not work when creating the Table?

 

Any help to get me out of confusing state...

 

 

 

1 ACCEPTED SOLUTION
vanessafvg
Community Champion
Community Champion

@Frost

 

use

 

if(isblank(column), "value if blank", "value if not blank")





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




View solution in original post

4 REPLIES 4
vanessafvg
Community Champion
Community Champion

@Frost

 

use

 

if(isblank(column), "value if blank", "value if not blank")





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




Thanks, but is there a way to do this without creating a extra column in the original table? I have a number of these to filter out...

Frost
Frequent Visitor

....and yes there is:

 

Table = Filter(Sheet1, if(ISBLANK(Sheet1[A]), FALSE(), TRUE()))

 

Thanks for your help!

vanessafvg
Community Champion
Community Champion

@Frost ok so just so understand what you trying to do, you trying to create a new table based on the condition that nothing is blank?

 

how are you creating the new table?





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




Helpful resources

Announcements
Fabric Data Days is here Carousel

Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.