From 39a8286893160f08579b686921346320d6e5c208 Mon Sep 17 00:00:00 2001 From: Imran Haq <95970959+PBIQueryous@users.noreply.github.com> Date: Tue, 25 Jun 2024 18:19:40 +0100 Subject: [PATCH] Update fnDates.pq (#17) 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. --- Functions/Date/fnDates.pq | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Functions/Date/fnDates.pq b/Functions/Date/fnDates.pq index 12b26bf..fb2112d 100644 --- a/Functions/Date/fnDates.pq +++ b/Functions/Date/fnDates.pq @@ -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,