jimrward
Well-known Member
- Joined
- Feb 24, 2003
- Messages
- 1,899
- Office Version
- 2021
- 2019
- 2016
- 2013
- 2011
- 2010
- 2007
- 2003 or older
- Platform
- Windows
I have a master table with 2 columns ID, Date, I also have another table called LastPM with a column called LastPM that contains a simple date in the form dd/mm/yyyy and it has 2 rows
10/9/2023
14/1/2024
I would like to create an additional column in my master table containing either the Max of table LastPM or to cut out some steps a conditional column
=if mastertable.Date > table.max(LastPM) then 1 else 0
I can’t seem to get the syntax correct, tried excel.currentworkbook(….
I can hardcode the row using {0} or {1} but I would like it to be a bit more flexible to choose Max so I can keep adding dates as and PM, preventative Maintenance is done
10/9/2023
14/1/2024
I would like to create an additional column in my master table containing either the Max of table LastPM or to cut out some steps a conditional column
=if mastertable.Date > table.max(LastPM) then 1 else 0
I can’t seem to get the syntax correct, tried excel.currentworkbook(….
I can hardcode the row using {0} or {1} but I would like it to be a bit more flexible to choose Max so I can keep adding dates as and PM, preventative Maintenance is done