Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Your year 2011 of the second table is interpreted as Date type's numerical representation, 2011 is the representation of 1905, July 3rd.
Try using
year(SalesTblShipDate) as ShipYearIDKey,
in your first load.
Your year 2011 of the second table is interpreted as Date type's numerical representation, 2011 is the representation of 1905, July 3rd.
Try using
year(SalesTblShipDate) as ShipYearIDKey,
in your first load.
Thank you swuehl.
We had thought that was the cause but hadn't thought to use the year function.
We do have pretty much the same issue with trying to extract month number from first load from date field. Second table has month as single digit for months 1 to 9. I've looked on help files and have only come around month(date) function but that only gives you returns a text string representing the month. We getting similar incorrect error as we were getting on year. So same issue.
What would suggest for similar case with month number? Colleague was thinking using MID with ROUND combination? Not tried mind you, just an idea.
month() function has also a text and a numerical representation. Check out
=month(today())
vs.
=num(month(today()))
If you have a complete date in the first table and year, month, day in the second, it might be better to format both as dates, i.e. in the second table, you could create a Date using
makedate(TargetsTblYear ,TargetsTblMonth, TargetsTblDay) as DateField,
Hi again swuehl. Your sugguestion to resolve our month number has worked a treat thank you. Used in the end:
num(month(SalesTblShipDate)) as ShipMthNoIDKey
Many thanks.