Forum Discussion

PaulVanS267's avatar
PaulVanS267
Frequent Visitor
3 years ago
Solved

Using SUMMARIZE as a variable in NETWORKDAYS expression

Good afternoon,   Please could someone help me with an issue I am struggling with.  I have a Calendar dimension table that contains flags ("Y") for all UK Bank Holidays.     I am trying to create...
  • Greg_Deckler's avatar
    Greg_Deckler
    3 years ago

    PaulVanS267 Yep, that did it, here is the fix:

    NetWorkDays Summarize Variable = //Not returning the correct result
    VAR colHolidays = 
    SUMMARIZE(FILTER(ALL(dimCalendar),dimCalendar[flgHoliday]="Y"),dimCalendar[Date])
    RETURN
    NETWORKDAYS(MAX(Projects[start_date]),MAX(Projects[end_date]),1,colHolidays)