Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago
Solved

Counting Working Days with criteria

Hi All, Hope everyone is doing well. I need some more help with adding a column instead of a measure, please  Find the # of Days Working between Start Date and First Open Time with the criteria of...
  • Migasuke's avatar
    3 years ago

    Hi Anonymous ,

    I solved your issue but it consists of several steps. The results are the same as you sent me later in the printscreen.

    Solution is following:

    1. Create an Index column in Power Query. This will help identify which data input is earlier or later.

    2. Create new column called DateDiff. This will be used later for filtering + giving results. Formula is following:



    3. Create new column with the Result. This DAX formula copies the logic you have. The most crucial part is within CALCULATE and MINX, where we specify which data we need to filter. Here the Index column is needed.


    Let me know if you have any other question!