Forum Discussion
Logical Count Function.
Hi TSP
Please consider this solution and leave kudos
COUNTBLANK(<columnname>)
this will count the number of rows with a blank value in the column.
Note it will return 0 if there are rows but no blanks,
but will retrun blank if the table has no rows at all.
Thanks for the suggestion, but I am wanting to count "B" Date if "A" date is blank.
- speedramps6 years agoSuper User
Hi again TSP
Please consider this solution and leave kudos
Mycounter =
CALCULATE(COUNT('MyTable'[MyColumnB),
FILTER('MyTable'[MyColumnA)=BLANK())
)The filter just selects the rows with ColumnA = blankthen the count counts the remaining rows with a populated ColumnB.Any rows with a blank ColumnB will not be counted.- Anonymous6 years agoNot applicable
Would it matter if the blank date is in a different table? I am not getting any errors, but the count is not showing on a card.
Thank you,
- speedramps6 years agoSuper User
Please can you elborate and describe the 2 files.
Are you saying you have 2 files each with a list of dates and you want to count which dates are on table A but not on table B?
This will count dates on B but not on A
My count =
VAR lista = VALUES(tableA[date])
VAR listb = VALUES(tableB[date])
RETURN
COUNTROWS(EXCEPT(listb, lista)
)