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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
Anonymous
Not applicable

Calculate percent of none blank cells in one column

Have a column 'ID', there are 413 rows with 399 being populated,  The percentage of non-blank cells is 96.6%.  I want to show this percent in a visulization.

1 ACCEPTED SOLUTION
VahidDM
Super User
Super User

Hi @Anonymous 

 

Try this measure an add that to the visuals:

Measure = (count('Table'[ID])-COUNTBLANK('Table'[ID]))/count('Table'[ID])

 

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
LinkedIn: 
www.linkedin.com/in/vahid-dm/

 

 

View solution in original post

4 REPLIES 4
Ashish_Mathur
Super User
Super User

Hi,

Drag this measure to a card visual

Measure = divide(count(data[id]),countrows(data))

Format this as a %.

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
v-yanjiang-msft
Community Support
Community Support

Hi @Anonymous ,

According to your description, here’s my solution.

Measure = DIVIDE(COUNTROWS(FILTER(ALL('Table'),NOT(ISBLANK([ID])))),COUNTROWS('Table'))

Best Regards,
Community Support Team _ kalyj

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

VahidDM
Super User
Super User

Hi @Anonymous 

 

Try this measure an add that to the visuals:

Measure = (count('Table'[ID])-COUNTBLANK('Table'[ID]))/count('Table'[ID])

 

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
LinkedIn: 
www.linkedin.com/in/vahid-dm/

 

 

SM321
Frequent Visitor

@VahidDM - How do we do this if it's multiple columns, let's say 'Table'[Name], 'Table'[Address], 'Table'[Locality] and we want to identify the % of completeness of each within a measure in addition to 'Table'[ID)?

Measure = (count('Table'[ID])-COUNTBLANK('Table'[ID]))/count('Table'[ID])

 

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

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! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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