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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Hiding blank rows for null categories

Hi all()

I want to remove thes 2 blank lines and show de values of "0", "40.0" and "32.2" for the "Product Category".

Why is powerbi showing these 2 "null" or "empty" categories?

Hiding blank lines.png

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Guys

Thank you all for responses. I ended up adding 2 more data cleansing rows in the query editor in order to correctly clean lines with null comments and lines with null categories.

View solution in original post

5 REPLIES 5
edhans
Super User
Super User

@Anonymous if you want to remove them from your data completely, if you go back to Transform Data and find those numeric fields, hit thie FILTER button and uncheck the null value. If it is a text field it wll show (blanks) instead of (null). You can uncheck for those as well.

edhans_0-1598051857569.png

 

Otherwise, @swise001 brings up a valid point. If you have items in your data that are not in the dimension table, Power BI will create the blanks. You can remove those from your measures using functions like ALLNOBLANKROW(), but I'd need to see some data to actually help with that.

And @Anonymous has shown a way to just filter them from a specific visual, but they will impact other visuals or aggregations, like COUNTROWS, AVERAGE, etc.

So it just depends on what you are trying to do. Let us know if these still haven't answered your question. Otherwise, please mark one or more as the solution and give a Kudos/Thumbs Up to those that helped. 

 



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting
Anonymous
Not applicable

Guys

Thank you all for responses. I ended up adding 2 more data cleansing rows in the query editor in order to correctly clean lines with null comments and lines with null categories.

Anonymous
Not applicable

HI @Anonymous 

 

Create filters on all the columns to say "is not blank"

pranit828_0-1598050077025.png

 

swise001
Continued Contributor
Continued Contributor

@Anonymous 

Usually - null categories like you're showing are artifacts of the relatonships.   Perhaps there are some rogue items that don't have a corresponding match in your lookup table.  

amitchandak
Super User
Super User

@Anonymous , refer if this can help

https://www.inkeysolutions.com/blogs/power-bi-hide-null-or-blank-values-in-matrix-visual/

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors