Forum Discussion

Walt1010's avatar
Walt1010
Icon for Helper V rankHelper V
1 year ago
Solved

Time Difference and Networkingdays Question

I have a measure, Working Days Difference = NETWORKDAYS([Start_Date],[End_Date]) -1, that I wish to use to calculate Current YTD and Previous YTD values.  I've tried setting  Current YTD Working Da...
  • v-menakakota's avatar
    v-menakakota
    1 year ago

    Hi Walt1010 ,
    Thanks for reaching out to the Microsoft fabric community forum.

    Using a manual filter on the Date table is generally a better approach than relying on NETWORKDAYS.

     

    It works more smoothly with YTD calculations :
    Functions like TOTALYTD and PREVIOUSYEAR give more accurate results when they're based on a well-structured Date table.

     

    Filtering a small Date table is much faster than calculating working days row by row in a large fact table.

     

     If your weekend or holiday rules change, you can just update the Date table instead of rewriting multiple measures.


    If I misunderstand your needs or you still have problems on it, please feel free to let us know.  

    Best Regards, 
    Community Support Team