rileybloke
New Member
- Joined
- Feb 7, 2013
- Messages
- 43
Hi,
I am trying to extract dates from 2 different tables into a master date table...
I have 2 tables with dates in...
Order Table > Order Date
Delivery Table > Delivery Date
I also have a calendar table that has all dates from 01/02/2012 > 31/12/2020. The english requirement is...
If a date from the calendar table matches a date from the order table then give me the calendar date.
If a date from the calendar table matches a date from the delivery tablke then give me the calendar date.
I am creating an IF statement in a calculated column on the Calendar table...
=IF(VALUES(Calendar[Date])=VALUES(ORDER[DUE_DATE]),Calendar[Date],0)
I then create another calculated column to see if I have a date in the Delivery Table
=IF(VALUES(Calendar[Date])=VALUES(DELIVERY[DUE_DATE]),Calendar[Date],0)
But my IF statement above returns...
Calculation error in column 'Calendar'[]: A table of multiple values was supplied where a single value was expected.
I am wrapping up my DATES into VALUES but it its not working for me, should I use something else maybe?
Thanks
I am trying to extract dates from 2 different tables into a master date table...
I have 2 tables with dates in...
Order Table > Order Date
Delivery Table > Delivery Date
I also have a calendar table that has all dates from 01/02/2012 > 31/12/2020. The english requirement is...
If a date from the calendar table matches a date from the order table then give me the calendar date.
If a date from the calendar table matches a date from the delivery tablke then give me the calendar date.
I am creating an IF statement in a calculated column on the Calendar table...
=IF(VALUES(Calendar[Date])=VALUES(ORDER[DUE_DATE]),Calendar[Date],0)
I then create another calculated column to see if I have a date in the Delivery Table
=IF(VALUES(Calendar[Date])=VALUES(DELIVERY[DUE_DATE]),Calendar[Date],0)
But my IF statement above returns...
Calculation error in column 'Calendar'[]: A table of multiple values was supplied where a single value was expected.
I am wrapping up my DATES into VALUES but it its not working for me, should I use something else maybe?
Thanks