Reply
avatar user
Anonymous
Not applicable
Partially syndicated - Outbound

COUNTBLANK function issues

I have a COUNTBLANK function in my Power BI to show the columns where someone has forgotten to put in a number of details but it counts where there is an empty entry in the name column. For some reason this isn't pulling through any numbers. Presumably because other columns next to it are blank too.

 

What is the best way to highlight when data is missing in an entry so it can be fixed as quick as possible?

1 ACCEPTED SOLUTION

Syndicated - Outbound

@Anonymous - I would use Clean and Trim operations in Power Query to get rid of any stray characters. You could also try:

 

Count Blanks =
  COUNTROWS(FILTER(ALL('Table'),ISBLANK([Column]) || [Column]="" || LEN([Column])<3))

 

Also, why are you not flagging rows with missing data versus columns? 



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

4 REPLIES 4
amitchandak
Super User
Super User

Syndicated - Outbound

@Anonymous , is it blank or have some space.

 

countrows(filter(table,isblank(Table[Column]) || Table[Column]= "" || Table[Column] = " " ))

 

or try to use trim

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here
avatar user
Anonymous
Not applicable

Syndicated - Outbound

@amitchandak Annoying that function still returns (Blank) meaning there is nothing to count, however, I can see there is a space in my data column still.

 

 

Syndicated - Outbound

Hi @Anonymous ,

 

Have you resolved this issue? Is the answer above helpful? If you still need help, can you please share more details, like your sample data and your expected results. Thanks!

 

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

Syndicated - Outbound

@Anonymous - I would use Clean and Trim operations in Power Query to get rid of any stray characters. You could also try:

 

Count Blanks =
  COUNTROWS(FILTER(ALL('Table'),ISBLANK([Column]) || [Column]="" || LEN([Column])<3))

 

Also, why are you not flagging rows with missing data versus columns? 



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...
avatar user

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!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.

Top Solution Authors (Last Month)
Top Kudoed Authors (Last Month)