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
Andy_W_UK
Resolver I
Resolver I

Error with a measure using a date filter

Hi everyone,

 

I am a novice and trying to create a measure which filters records where a date column called ETD has no date entry.
The column is formatted as date.
I am getting an error that the syntax is incorrect, so please can someone tell me what is wrong?

m total tasks no etd =
CALCULATE( COUNTA('SDT Clarity Tasks'[ID]) ,
KEEPFILTERS('SDT Clarity Tasks'[Phase] = "Delivered"),
KEEPFILTERS('SDT Clarity Tasks'[ETD] = BLANK),
KEEPFILTERS('SDT Clarity Tasks'[Customer] <> "SAP Concur"))
Andy_W_UK_0-1720700365614.png

 

Many thanks !

 
2 ACCEPTED SOLUTIONS
jdbuchanan71
Super User
Super User

When you use BLANK it is looking for open and close paren after it so BLANK():

m total tasks no etd =
CALCULATE (
    COUNTA ( 'SDT Clarity Tasks'[ID] ),
    KEEPFILTERS ( 'SDT Clarity Tasks'[Phase] = "Delivered" ),
    KEEPFILTERS ( 'SDT Clarity Tasks'[ETD] = BLANK () ),
    KEEPFILTERS ( 'SDT Clarity Tasks'[Customer] <> "SAP Concur" )
)

View solution in original post

Simple when you know how I guess !

Thank you, it is now working fine which is great.

View solution in original post

2 REPLIES 2
jdbuchanan71
Super User
Super User

When you use BLANK it is looking for open and close paren after it so BLANK():

m total tasks no etd =
CALCULATE (
    COUNTA ( 'SDT Clarity Tasks'[ID] ),
    KEEPFILTERS ( 'SDT Clarity Tasks'[Phase] = "Delivered" ),
    KEEPFILTERS ( 'SDT Clarity Tasks'[ETD] = BLANK () ),
    KEEPFILTERS ( 'SDT Clarity Tasks'[Customer] <> "SAP Concur" )
)

Simple when you know how I guess !

Thank you, it is now working fine which is great.

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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