Forum Discussion

TonyPearce1963's avatar
TonyPearce1963
Regular Visitor
3 years ago
Solved

Counting null date entries

Hi, I need to create a new card that displays the number of blank entries in a column. I can do this when the value is shown as 0 in the Power Query Editor, but I need to count blank date entries which appear as 'null'. 

Basically, I want to count the number of 'null' date entries in a column. 

  • Anonymous's avatar
    Anonymous
    3 years ago

    Hi TonyPearce1963 ,

     

    You can use the following code to count the number of null date entries in a column in Power Query:

     

    = Table.RowCount(Table.SelectRows(#"Previous Step", each [Column Name] = null))

     

    Or just add a custom column to dispaly the number.

     

                                                                                                                                                             

    Best Regards,

    Stephen Tao

     

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

2 Replies

  • Punithurs's avatar
    Punithurs
    Frequent Visitor
     
    Create a measure 
    BlankDates = COUNTBLANK(FactTable[Paid date])
    Hope you are looking for this. 
    This should work.

    Thanks,
    Punith
  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi TonyPearce1963 ,

     

    You can use the following code to count the number of null date entries in a column in Power Query:

     

    = Table.RowCount(Table.SelectRows(#"Previous Step", each [Column Name] = null))

     

    Or just add a custom column to dispaly the number.

     

                                                                                                                                                             

    Best Regards,

    Stephen Tao

     

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