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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
v-jayw-msft
Community Support
Community Support

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

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.
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
Super User
Super User

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

AugPowerBI_Carousel

Power BI Monthly Update - August 2024

Check out the August 2024 Power BI update to learn about new features.

August Carousel

Fabric Community Update - August 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors