Forum Discussion

Shpongle's avatar
Shpongle
Icon for Helper III rankHelper III
6 years ago
Solved

Calculating date opened and date closed in same report

I know, I know! This question has been asked a million times 😁   The problem is, I can not figure it out.   I have a ServiceData table with the following fields: TicketNbr, Date_Opened_UTC, Dat...
  • v-yingjl's avatar
    v-yingjl
    6 years ago

    Hi Shpongle ,

    Based on my test, it is indeed related to the data type. The data type of the date in calendar table and fact table should be the same from the beginning.

    For example, when your calendar table is date type, your fact table is date/time type but you have changed them to date already, it will show the result just like your latest reply.

    If your fact table and calendar table are date types or date/time types initially, it will work fine.

     

    My test sample file is attached that you can refer, hopes to help you understand it: Calculating date opened and date closed in same report.pbix 

     

    Best Regards,
    Yingjie Li

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