Forum Discussion

jacob-dickey's avatar
jacob-dickey
Frequent Visitor
5 years ago
Solved

OLE DB or ODBC error: [DataSource.Error] ODBC: ERROR [42601] SQL compilation error: ambiguous column

I am using DirectQuery with Snowflake and for one of my visuals I am getting this error. It seems as though this is a bug with Power BI where it is not generating the SQL correctly. When I looked at ...
  • themistoklis's avatar
    themistoklis
    5 years ago

    In this case the best (and preferred option) in my opition is to create a view in snowflake.

    Inside the view rename the field. The connect PowerBi to View instead of Table

     

    Do not rename the field directly in the table. I wouldnt recommend that