However, I want to rewrite it to get DataTable[BoothNo] with lastest row and with same [VendorNo] and without “Yes” in DataTable[BoothCancelled] as below:
First, we have recently discovered some inconsistencies in how the “Yes” identifier is used in Yes/No columns. If [BoothCancelled] is indeed a Yes/No column then I recommend replacing “Yes” with TRUE - these are interchangeable or at least expected to be interchangeable.
For NOT EQUAL you will want to use the “<>” operator instead of “!=”. If you replace that also then the expression should be fine.