Forum Discussion

die_kruzen's avatar
die_kruzen
Frequent Visitor
2 years ago
Solved

Days between two dates. Kinda....

Hello all. I have a leave calendar where the customer is asking for a report that returns the number of days from. a date range. Here is a scenario   Person A is on leave 11/01/2023 - 11/15/2023.  ...
  • CoreyP's avatar
    2 years ago

    Additionally, if your data is in the traditional format with from/to dates like this:

    You can transform it into a more easy to use format with a calculated table using DAX:

    Leave Expanded = GENERATE( LeaveTable , CALENDAR( LeaveTable[From Date] , LeaveTable[To Date] ) )