I have SQL database for a legacy system (100M records) where the date is stored as a text number that is the excel date -2. I’d like to create a parameter that allows the user to enter an normal data as “2/4/18” and have PBI convert to the it’s numeric value -2. Any help would be welcome.
?I would try datediff (1/1/1900, parameter, day) – 1 as your formula.Ā You can look up the definition of DateDiff online.Ā You do the minus 1 because it is the number of days between your start & end date.Ā So if you do 1/1/1900 (the base date for Excel) datediff will return 0 but Excel treats 1/1/1900 as 1.Ā So datediff returns a value already 1 less than the Excel value & subtracting 1 again gets you to your legacy offset of 2.
—————————— Guy Shoemaker Application Administrator International Capital & Management Company St. Thomas 340-715-5820 —————————— ——————————————-
Please note:
This action will also remove this member from your connections and send a report to the site admin.
Please allow a few minutes for this process to complete.
Report
You have already reported this .
Welcome to our new site!
Here you will find a wealth of information created for peopleĀ that are on a mission to redefine business models with cloud techinologies, AI, automation, low code / no code applications, data, security & more to compete in the Acceleration Economy!