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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
mespiritu
Helper I
Helper I

DAX formula for specific date range and also include (NULLS)

Can someone helps assist a DAX calculation - 

 

I'm trying to set a date range i.e. (06/01/2023 - May 30, 2024) 

 

and also want to create another DAX calculation that includes date range above and include NULLS (non-exited clients) 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @mespiritu ,

I create a table as you mentioned.

vyilongmsft_0-1717119333445.png

Then I create a calculated column and here is the DAX code.

Column = 
IF (
    (
        'Table'[Date] >= DATE ( 2023, 6, 1 )
            && 'Table'[Date] <= DATE ( 2024, 5, 30 )
    )
        && ISBLANK ( 'Table'[ClientStatus] ),
    "Done",
    "Nulls"
)

vyilongmsft_1-1717119566271.png

 

 

 

Best Regards

Yilong Zhou

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

1 REPLY 1
Anonymous
Not applicable

Hi @mespiritu ,

I create a table as you mentioned.

vyilongmsft_0-1717119333445.png

Then I create a calculated column and here is the DAX code.

Column = 
IF (
    (
        'Table'[Date] >= DATE ( 2023, 6, 1 )
            && 'Table'[Date] <= DATE ( 2024, 5, 30 )
    )
        && ISBLANK ( 'Table'[ClientStatus] ),
    "Done",
    "Nulls"
)

vyilongmsft_1-1717119566271.png

 

 

 

Best Regards

Yilong Zhou

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

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.