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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors