Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
Dears....I have a excel database and ther are some cells not filled. From Power BI, I need to know the count of those blank cells based on which column the blank cells is available. Please advise for the DAX query for this
For Eg: Column A = 4, Column D = 6
Solved! Go to Solution.
there are several ways to do this, I would suggest you to use the column statistics in DAX query view. It gives all the statistics in view. 
https://learn.microsoft.com/en-us/power-bi/transform-model/dax-query-view
Open DAX query view, on the right hand side you will find all the tables in your model. 
Right click on the table, click on Qucik queries -> click on Show column statistics.
In the result tab, you will see a column caled Null count.
You can also find blank or empty values from power query column profiling options. 'Column quality'
https://learn.microsoft.com/en-us/power-query/data-profiling-tools
However by default it will only profile top 1000 rows and the results would show in percentage.
Need a Power BI Consultation? Hire me on Upwork
Connect on LinkedIn
  | 
Count_Blanks_ColumnA = COUNTROWS(FILTER(YourTable, ISBLANK(YourTable[ColumnA])))
Count_Blanks_ColumnD = COUNTROWS(FILTER(YourTable, ISBLANK(YourTable[ColumnD])))
Replace YourTable, ColumnA, and ColumnD with your actual table and column names.
Unpivot the columns in Power Query: Select your columns and use Unpivot Columns. Add a custom column: IsBlank = IF(ISBLANK([Value]), 1, 0). Group by the column name and sum IsBlank.
Option 3: Dynamic Measure for All Columns. To calculate blanks across all columns: |
Count_Blanks_All = 
SUMX(ADDCOLUMNS(
VALUES(YourTable[ColumnName]),"BlankCount", COUNTROWS(FILTER(YourTable, ISBLANK(YourTable[ColumnName])))),[BlankCount])
Use in a table/matrix visual for column-wise blank counts.
Hello @Sajay_Prathap24 ,
the way it will work for you is to do it per column
BlankCount_ColumnA = 
calculate(
COUNTROWS(Table), table[columnName] = blank)
					
				
			
			
				 
 
 
 Proud to be a Super User!  |   | 
You can try:
CountBlanks_ColumnA = COUNTROWS(FILTER('Table', ISBLANK('Table'[ColumnA])))
CountBlanks_ColumnD = COUNTROWS(FILTER('Table', ISBLANK('Table'[ColumnD])))💌 If this helped, a Kudos 👍 or Solution mark ✅ would be great! 🎉
Cheers,
Kedar
Connect on LinkedIn
Hi @Sajay_Prathap24 ,
Thanks for reaching out.
I reviewed this case and I think everyone's insights and workarounds are great.
Do you have any solutions provided by other users to solve the problem? Or you solved it by your own workaround, you are also welcome to share it.
If you still have doubts, please provide a more detailed description, preferably some virtual sample data, and the expected results.
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.
You can try:
CountBlanks_ColumnA = COUNTROWS(FILTER('Table', ISBLANK('Table'[ColumnA])))
CountBlanks_ColumnD = COUNTROWS(FILTER('Table', ISBLANK('Table'[ColumnD])))💌 If this helped, a Kudos 👍 or Solution mark ✅ would be great! 🎉
Cheers,
Kedar
Connect on LinkedIn
Hello @Sajay_Prathap24 ,
the way it will work for you is to do it per column
BlankCount_ColumnA = 
calculate(
COUNTROWS(Table), table[columnName] = blank)
					
				
			
			
				 
 
 
 Proud to be a Super User!  |   | 
Count_Blanks_ColumnA = COUNTROWS(FILTER(YourTable, ISBLANK(YourTable[ColumnA])))
Count_Blanks_ColumnD = COUNTROWS(FILTER(YourTable, ISBLANK(YourTable[ColumnD])))
Replace YourTable, ColumnA, and ColumnD with your actual table and column names.
Unpivot the columns in Power Query: Select your columns and use Unpivot Columns. Add a custom column: IsBlank = IF(ISBLANK([Value]), 1, 0). Group by the column name and sum IsBlank.
Option 3: Dynamic Measure for All Columns. To calculate blanks across all columns: |
Count_Blanks_All = 
SUMX(ADDCOLUMNS(
VALUES(YourTable[ColumnName]),"BlankCount", COUNTROWS(FILTER(YourTable, ISBLANK(YourTable[ColumnName])))),[BlankCount])
Use in a table/matrix visual for column-wise blank counts.
there are several ways to do this, I would suggest you to use the column statistics in DAX query view. It gives all the statistics in view. 
https://learn.microsoft.com/en-us/power-bi/transform-model/dax-query-view
Open DAX query view, on the right hand side you will find all the tables in your model. 
Right click on the table, click on Qucik queries -> click on Show column statistics.
In the result tab, you will see a column caled Null count.
You can also find blank or empty values from power query column profiling options. 'Column quality'
https://learn.microsoft.com/en-us/power-query/data-profiling-tools
However by default it will only profile top 1000 rows and the results would show in percentage.
Need a Power BI Consultation? Hire me on Upwork
Connect on LinkedIn
  | 
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.