Skip to content

Commit

Permalink
Fix sobstitute offset calc in HolidayDefinition
Browse files Browse the repository at this point in the history
Fix the calculation of the sobstitute offset for non-working days where DATETIME variable `_HolidayDateStep1` is used instead of the INT64 `_HolidayDayStep1`
  • Loading branch information
albertospelta committed Apr 10, 2024
1 parent 0cb78c9 commit 6865f74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Dax.Template/Tables/Dates/HolidaysTable.cs
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ NOT CONTAINS ( __WorkingDays, ''[Value], _HolidayDayStep1 ),
MINX ( __WorkingDays, ''[Value] ) + 7,
_NextWorkingDayStep2
)
RETURN _SubstituteDay - _HolidayDateStep1
RETURN _SubstituteDay - _HolidayDayStep1
)
VAR _SubstituteOffsetStep2 = _SubstituteOffsetStep1 + _SubstituteHolidayOffsetNonWorkingDays
VAR _SubstituteDateStep2 = _OriginalSubstituteDate + _SubstituteOffsetStep2
Expand Down

0 comments on commit 6865f74

Please sign in to comment.