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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
Anonymous
Not applicable

Creating a count blank measure taking into account multiple object at once

Hey there. I am new to PowerBI and have been trying to create a function which would count the blanks in a range of columns to see how many data points are missing for each object. We are dealing with vendors and ask for information such as address, phone number, and email. The only way I found to do this was by creating a different COUNTBLANK measure for each object. Is there a way I can create a single measure instead?

5 REPLIES 5
Anonymous
Not applicable

Hi @Anonymous ,

 

Have trouble to reproduce the scenario.

This is the demo I created:

vjaywmsft_0-1657176092645.png

I used countblank() and get this result:

Measure = COUNTBLANK('Table'[value])
vjaywmsft_1-1657176136802.png

I'm not sure why you have to create multiple measures.

I guess I must missed some points.

Please share some sample data and expected result.

 

Best Regards,

Jay

Anonymous
Not applicable

There are "multiple measures" within a column rather than an all-encompassing measure covering the table for two reasons:

1) I couldn't find an equation covering the whole table which was able to tell me for each row whether there was a blank in it or not

2) I am only selecting some objects within the table and I want it to be easy for people to choose which objects to select when counting the blank row.

 

I can't share the data as it's sensitive. I did find an equation that works though similar to @Nathaniel_C's. I think the reason his equation didn't work is because some of my objects were strings and some whole numbers.

 

Blank Rows = IF(ISBLANK('List Of Approved Vendors'[ADDRESS]) || ISBLANK('List Of Approved Vendors'[COUNTRY]) || ISBLANK('List Of Approved Vendors'[PO BOX]) || ISBLANK('List Of Approved Vendors'[CR NO.]) || ISBLANK('List Of Approved Vendors'[City]) || ISBLANK('List Of Approved Vendors'[Country Code]) || ISBLANK('List Of Approved Vendors'[TELEPHONE #]) || ISBLANK('List Of Approved Vendors'[FAX #]) || ISBLANK('List Of Approved Vendors'[EMAIL]) || ISBLANK('List Of Approved Vendors'[CONTACT PERSON]) || ISBLANK('List Of Approved Vendors'[TELEPHONE NO.]) || ISBLANK('List Of Approved Vendors'[MOBILE NO.]), 1, 0)

 

Nathaniel_C
Community Champion
Community Champion

Hi @Anonymous ,
Please try this and then you may sum the values:

Countblank if any are blank = IF(MAX(Tableblank[Address])="" || MAX(Tableblank[Email]) =""|| MAX(Tableblank[Phone])="",1,0)

 

Nathaniel_C_0-1656949528359.png


Let me know if you have any questions.

If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos 👍are nice too.
Nathaniel

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Anonymous
Not applicable

Wow thank you, this really helped! As a follow up quastion, what do I do if some of the values are integers and some are strings?

Anonymous
Not applicable

Actually nevermind, I've converted all my columns to strings but it's just giving me 1 for all the answers, not sure why.

tfreundt_0-1657004926535.png

 

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

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