Forum Discussion
Logical Count Function.
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,
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)
)
- Anonymous6 years agoNot applicable
See Below: All of my tables are Related Direct Queires from SQL. I am wanting to track how many loans are in the application process.
To do so, I am using dates. So in my main database, I am wanting to know how many loans that have an application date, but do not have an assigned date.
- speedramps6 years agoSuper UserPlease conisder a solution like this which creates a list of assigned loans and compares it to a list of applications =
My count =VAR AssignedLoans =CALCULATETABLE(VALUES(LoanTable[LoanID]),FILTER(ALL(LoanTable),LoanTable[AssignedDate] <> BLANK() ))VAR Applications =VALUES(ApplicationsTable[LoanID])RETURNCOUNTROWS(EXCEPT( Applications, AssignedLoans))- Anonymous6 years agoNot applicable
This works almost exactly how I need it to, but I think I need to specify that the loan "has" to have an application date. Would I include that filter in the 2nd VAR?
Thank you for your help,