Since I use a FireBird I have to use Odbc.Query in a blank query to get my data (see: http://community.powerbi.com/t5/Integrations-with-Files-and/Data-Source-Only-showing-one-table/m-p/46292/highlight/true#M4214 )
In one table I have a column named DATE. When I do a select in a blank query:
= Odbc.Query("dsn=MYDSNNAMEt", "select DATE from GPSLOG")
I get the message:
DataSource.Error: ODBC: ERROR [HY000] [ODBC Firebird Driver][Firebird]Dynamic SQL Error
SQL error code = -104
Token unknown - line 1, column 13
from
Details:
DataSourceKind=Odbc
DataSourcePath=dsn=MYDSNNAME
OdbcErrors=Table
When I do a SELECT * or any other column, everything works fine and get the specified column.
I guess it has something to do with DATE being a reserved word, but I cannot find how to select just the DATE (I have to do some more calculations on the DATE, but to keep it simple I just want the equivalant for SELECT DATE FROM GPSLOG)
So: how can I just select the DATE column?