Forum Discussion

Viswa1127's avatar
Viswa1127
Frequent Visitor
4 years ago
Solved

Count values in a column

Hi All, I am trying to count the values in one column in my table but it is counting blank values also. How to neglect blank values. Any ideas? When i apply count it is counting blank val...
  • BA_Pete's avatar
    4 years ago

    Hi Viswa1127 ,

     

    Try using either of these:

    _option1 = DISTINCTCOUNTNOBLANK(yourTable[yourColumn])
    
    _option2 = COUNT(yourTable[yourColumn]) - COUNTBLANK(yourTable[yourColumn])

     

    Pete