Forum Discussion
Anonymous
5 years agoNot applicable
Count Blank Values in a Column
Hi Experts
I am trying to count the number of blank values in my table based on another column
Blank Values = CALCULATE(
COUNTROWS('STG Fact_To_Do'),
'STG Fact_To_Do'[Created_Date]=BLANK(),
FILTER('STG Fact_To_Do',ISBLANK('STG Fact_To_Do'[Closed]
So if the Created Date Column has blank rows based on the closed column which always has a value in - count the blank cells in Created date column
See Example Data - here we have 3 blank rows...
| Created_Date | Closed |
| 14 August 2020 | 1 |
| 1 | |
| 23 July 2020 | 1 |
| 19 August 2020 | 1 |
| 1 | |
| 28 July 2020 | 1 |
| 1 | |
| 22 November 2019 | 1 |
| 20 August 2020 | 1 |
11 Replies
- amitchandakSuper User
Anonymous , Try like
countrows(filter('STG Fact_To_Do', isblank(Created_Date)))
or
calculate(countrows('STG Fact_To_Do'),filter('STG Fact_To_Do', isblank(Created_Date)))
- AnonymousNot applicable
Both DAX formula return back blank as oppsed to the value 3
- amitchandakSuper User
- VijayPCommunity Champion
Anonymous
Count = CALCULATE(COUNTROWS('Table (2)'),FILTER('Table (2)',ISBLANK('Table (2)'[Created_Date])))Try thisRegardsVijay Perepa- AnonymousNot applicable
HI Vijay
I am getting blank result in score card....not the value 3
- amitchandakSuper User
Anonymous , I was able to get 3 . Posted file in last update