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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
olimilo
Responsive Resident
Responsive Resident

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
Responsive Resident
Responsive Resident

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

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.