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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
TonyPearce1963
Regular Visitor

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. 

1 ACCEPTED SOLUTION
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))

 

vstephenmsft_1-1689562422632.png

vstephenmsft_0-1689562408881.png

Or just add a custom column to dispaly the number.

vstephenmsft_2-1689562484147.png

 

                                                                                                                                                         

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.           

View solution in original post

2 REPLIES 2
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))

 

vstephenmsft_1-1689562422632.png

vstephenmsft_0-1689562408881.png

Or just add a custom column to dispaly the number.

vstephenmsft_2-1689562484147.png

 

                                                                                                                                                         

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.           

Punithurs
Frequent Visitor

 
Create a measure 
BlankDates = COUNTBLANK(FactTable[Paid date])
Hope you are looking for this. 
This should work.

Thanks,
Punith

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.