Forum Discussion
Source data with new columns
JohnT To change source of query simply go to query editor and then under Applied Steps on right hand side, click settings icon for Source and change.
- JohnT10 years agoNew Member
Thanks for the response, especially with the screenshot.
I should have elaborated that that was how I was attempted to change the data source.
I was going to edit my original query but have been in meetings, the error message I get is:
Failed to save modifications to Server. Error returned: 'OLE DB or ODBC error: Exception from HRSULT: 0X80040E21.'
I'm not consciously using on ODBC connection and I don't know what OLE DB is off the top of my head. When I look up the code, it says that it's got something to do with the data type, however, the data should be identical with the exception of the additional column.
That, and it's a CSV file so you cannot really dictate the type.
- Eric_Zhang10 years agoMicrosoft Employee
You can change the Power query to replace the source. Do append extra columns in the TransformColumnTypes.
Or as easy as, import the new CSV as a new table, delete the original table and rename the new table. As long as the old column names exists, visuals would show correctly.
- JohnT10 years agoNew Member
I tried adding a table and renaming it previously it didn't work (I also tried again just then too).
All the calculations I put in disappeared.
Similarly I previously tried changing the source in the Advanced Editor (though I didn't include the new variable with TransformColumnTypes). When I tried it again just then this time including the new variable in TransformColumnTypes, it also didn't work.
After I do my proof of concept presentation, I might try to replicate this with a small/simple dataset.