Forum Discussion

konradjonsson's avatar
konradjonsson
Icon for Helper II rankHelper II
3 years ago
Solved

How to get networkdays for previous period?

Hi. I have created a networkdays measure that gives me the correct number of net working days, per country. This is the measure 'Workdays - Net' below.   The challenge I have is to get net working...
  • Anonymous's avatar
    Anonymous
    3 years ago

    HI konradjonsson,

    So you mean these calculations also need to be filtered with the current region? If that is the case, does any fields in your holiday table can be used to distinguish these records? 

    If that is the case, you can try to modify the holiday variable to add filter with regions to get accurate holiday date list to use in formula calculations.

    For the total level calculation, you can try to use summarize function to create a temp table to summary detail level records and calculation correspond result, then you can use iterator function sumx to summary the temp table records.

    Measure Totals, The Final Word 

    Regards,

    Xiaoxin Sheng