Forum Discussion
kana
Helper I
6 years agoHow to union dbase files into 1 query and also a custom column
Dear All Master With this I want the UNION database to be 1 query in the power query. I already used union in the connection string but I can't custom the columns for each dbf table. What I want as ...
kana
Helper I
6 years agolet
Source = Odbc.Query("dsn=dBASE Files", "Select * From C:\Test\mytest\m18\IFG.DBF Union Select * From C:\Test\mytest\boj\IFG.DBF Union Select * From C:\Test\mytest\md2\IFG.DBF#(lf)"")")
in
SourceDear Sir,
Ok please help me to custom the connector.
The code that I use in the connection string can be just that I don't add custom columns in each dbf table.
Thanks
Kana
edhans
Community Champion
6 years agoYou can see this article for creating a custom connector. You need to be more of a programmer though to really do this.
- kana6 years ago
Helper I
Dear Sir,
Please guide me if using a custom connector and how to if via ACCDB
Thanks
Kana
- kana6 years ago
Helper I
Dear sir,
I have a solution, Can you help if the custom column that I want is based on the folder path. So please help me in adding code in the advanced editor in the power query.
let Source = Odbc.Query("dsn=DBASE FILES", "Select * From C:\Test\mytest\m18\IFG.DBF Union ALL Select * From C:\Test\mytest\boj\IFG.DBF Union All Select * From C:\Test\mytest\md2\IFG.DBF"")") in SourceThanks
Kana