Forum Discussion

Asantos2020's avatar
Asantos2020
Icon for Advocate II rankAdvocate II
7 years ago
Solved

DATEDIFF(TODAY();Table[Date]) not working...

I have a table showing:   Date          PO Number   Customer 07/06/19      88888          InterCompany "dd/mm/yyyy"   I need to come up with a column showing how many days the PO has been sitti...
  • chayanupadhyay's avatar
    chayanupadhyay
    7 years ago

    Asantos2020  I have tried with the sample data present in snapshot and i am getting the correct difference days.I have the DataPedido column which has dates in "MM/DD/YYYY" format which i changed in the "DD-MMM-YY" and then created a calculated column to find out the days using the DATEDIFF() function and even if i don't change the format of DataPedido and still be in DD/MM/YYYY i am getting the correct difference days.

     

    I know this won't help much for you to solve the issue.. but you can try to change the date format of DataPedido column to DD/MM/YYYY and check if you are getting the correct result.

    Please do let us know if you are able to solve the issue.

     

    Thank you,

    Chayan Upadhyay

  • Asantos2020's avatar
    Asantos2020
    7 years ago

    Hi chayanupadhyay ,

     

    My problem persisted, even after I've changed the date format to match each other's. But I have just found out what was causing it: 

    The field was aggregating, considering the fact that there is more than one row containing that PO number and dates. So it was summing the days!

     

    Thank you for your help!

     

    Regards,

    Antonio