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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! 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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.