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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
steambucky
Helper III
Helper III

A measure OR calculated column to work our how man cells have no data

My project involves me working out poor our data is,  We would like to work out how much info has not being entered. We then want express this as percentage per row 

 

Example data:

 

Animal - Name - Cost - Date

Dog      Danny    $50  - 1/1/2018     =  0%    Empty

Dog        null      $50     null              =  50 % Empty

Dog        null      null     null              =  75%  Empty

 

I have played around with caluclated feilds and measures doing simple things but NOTHING like this.

 

All I can think is something like a variable -  like If Animal =null then Row Empty = +1,  and then repeat something like this for each cell. From the Row empty value i could write a foumula to convert it into a percentage easily enough but I am stumped on everything before that.   

 

Any ideas, pointers, or simple examples would be most welcome.

 

 

1 ACCEPTED SOLUTION
Ormesome
Helper II
Helper II

I'd create a column

_HowManyAreBlank= IF(ISBLANK([ANIMAL]), 1, 0) + IF(ISBLANK([NAME]), 1, 0) + IF(ISBLANK([COST]), 1, 0) + IF(ISBLANK([DATE]), 1, 0)

 

This would allow you to create a measure that works for rows, groups, and filters.

 

View solution in original post

1 REPLY 1
Ormesome
Helper II
Helper II

I'd create a column

_HowManyAreBlank= IF(ISBLANK([ANIMAL]), 1, 0) + IF(ISBLANK([NAME]), 1, 0) + IF(ISBLANK([COST]), 1, 0) + IF(ISBLANK([DATE]), 1, 0)

 

This would allow you to create a measure that works for rows, groups, and filters.

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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