Skip to content

Commit

Permalink
Update fnDates.pq (#17)
Browse files Browse the repository at this point in the history
amended variables StartDate and EndDate to using the #date() function in place of the existing Date.From(Text.From()) method which imposes the UK date format.
  • Loading branch information
PBIQueryous authored Jun 25, 2024
1 parent 8187006 commit 39a8286
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Functions/Date/fnDates.pq
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ let

// //-- Date table code

StartDate = Date.From("01/01/" & Text.From(StartYearNUM)), // -- turn ON for CUSTOM FN
EndDate = Date.From("31/12/" & Text.From(EndYearNUM)), // -- turn ON for CUSTOM FN
StartDate = #date(StartYearNUM, 01 , 01), // -- turn ON for CUSTOM FN
EndDate = #date(EndYearNUM, 12 ,31), // -- turn ON for CUSTOM FN

FYStartMonth = List.Select({1 .. 12}, each _ = FYStartMonthNum){0}? ?? 1,
AYStartMonth = List.Select({1 .. 12}, each _ = AYStartMonthNum){0}? ?? 1,
Expand Down

0 comments on commit 39a8286

Please sign in to comment.