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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
olimilo
Continued Contributor
Continued Contributor

DATEDIFF calculated column returning incorrect value

I have a DATEDIFF calculated column that's returning incorrect values for all rows whose Review Due is past the current date:

 

olimilo_0-1701342131313.png

 

olimilo_0-1701342222155.png

 

 

 

 

 

Days Due = 
    SWITCH(
        TRUE(),
        'Data'[Review Date] = BLANK(), BLANK(),
        'Data'[Review Due] <= TODAY(), 0,
        DATEDIFF('Data'[Review Date], 'Data'[Review Due], DAY)
    )

 

 

E: My bad, it was computing properly 😂

2 REPLIES 2
Dangar332
Super User
Super User

Hi, @olimilo 

it seems  correct 
can you elaborate detailed problem where you stuck?

olimilo
Continued Contributor
Continued Contributor

I just realized I was supposed to use the current date instead of the Review Date. My bad 😂

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors
Top Kudoed Authors