Forum Discussion
PaulVanS267
3 years agoFrequent Visitor
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...
- 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)
Greg_Deckler
3 years agoCommunity Champion
PaulVanS267 Very odd. I can't replicate that. NETWORKDAYS accepts a virtual table as the 4th argument. PBIX is attached below signature.
PaulVanS267
3 years agoFrequent Visitor
Hi Greg_Deckler
Thank you for reaching out.
I have attached the pbix for you to look at. Perhaps it will be easier to identify the issue?
Kind regards,
Paul
- Greg_Deckler3 years agoCommunity Champion
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)- PaulVanS2673 years agoFrequent Visitor