Forum Discussion

Banan's avatar
Banan
Frequent Visitor
2 years ago
Solved

Different days usinf custom column

Hi, I'm using DirectQuery and i want to calculate the start date - end date without the weekend (Friday and Saturday) through a custom column. Can you help me?
  • Anonymous's avatar
    Anonymous
    2 years ago

    Hi Banan 

    When you use the calendar() funciton, then first date you need to input the start date, then second date you need to input the end date, the end date need to be greater than the start date, for the error message you offered , you didn't put the start date in the first date. You can refer to the following link.

    CALENDAR function (DAX) - DAX | Microsoft Learn

     

    Best Regards!

    Yolo Zhu

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