Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
ToddMate
Helper II
Helper II

Help: Where date is null.

Hi Guys,

 

Hopefully a quick one, i know the measure below doesn't work but for the life of me i can't work out how to say "where the connect date is null" ... Can anyone help out here please.

 

Its a date field which is only populated when the service is connected, hence it is blank / null when it hasn't been connected.

 

 

Connects = CALCULATE(SUM(X_Detail[Count]),FILTER(X_Detail,X_Detail[Product] in {"A,"B"}),FILTER(X_Detail,X_Detail[Connect Date] is null)
1 ACCEPTED SOLUTION

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

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
TomMartens
Super User
Super User

Hey,

 

just to be sure: the table X_Detail contains rows where the column "Connect Date" contains blank values?

 

Can you pleae provide a pbix file that contains some sample data, upload the file onedrive or dropbox and share the link.

 

Regards,

Tom

 



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

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.

 

Capture7.JPG

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

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.