Forum Discussion
Help: Where date is null.
- 7 years ago
hi, ToddMate
Just adjust your formula as below:
Connects = CALCULATE(SUM('X_Detail'[Count]),FILTER('X_Detail','X_Detail'[Product] in {"A","B"}),FILTER('X_Detail','X_Detail'[Connect Date] =BLANK() ))or use ISBLANK Funtion
Connects = CALCULATE(SUM('X_Detail'[Count]),FILTER('X_Detail','X_Detail'[Product] in {"A","B"}),FILTER('X_Detail',ISBLANK('X_Detail'[Connect Date] ) ))
https://docs.microsoft.com/en-us/dax/isblank-function-dax
is null couldn't be used in DAX.
Best Regards,
Lin
Hi TomMartens
Yes that is correct, x_detail contains rows, one of the columns in this table is the connect date which can either contain a date or be null.
I can't upload the .pbix at this stage i'm sorry but i have attached a screenshot of the table field lists.
hi, ToddMate
Just adjust your formula as below:
or use ISBLANK Funtion
Connects = CALCULATE(SUM('X_Detail'[Count]),FILTER('X_Detail','X_Detail'[Product] in {"A","B"}),FILTER('X_Detail',ISBLANK('X_Detail'[Connect Date] ) ))
https://docs.microsoft.com/en-us/dax/isblank-function-dax
is null couldn't be used in DAX.
Best Regards,
Lin