Export data from excel Data model into text file

earthworm

Well-known Member
Joined
May 19, 2009
Messages
773
Office Version
  1. 2019
  2. 2016
Platform
  1. Windows
I have a huge huge data set . One excel workbook with multiple sheets. Each sheet containing data more then 900k rows. I have appened them into single sheet through power query into data model. Now the problem is I cannot export data back into excel due to row limits as data length is now 5 million +
I want to export this data from data model into text file . Any possibility. I tried to search the internet and there is no solution.
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
I believe this free tool from @Matt Allington will do it.
Thanks . I tried it . But when I am trying to save it as CSV its showing below error

Error Exporting 'Query1': XML for Analysis protocol error: The 'scheme in the 'http://www.w3.org/2002/XMLSchema' namespace is expected
 
Upvote 0
Now I am facing another issue . When I am trying to import the data the error of Bad file name or Number is appearing in access
 
Upvote 0
Can you open the file in Notepad to see if there is any obvious issue with the file ?
Are you saying are trying to get the data into MS Access ? Why do you need to load it to PQ first ?
radacad has more options if you want to import the Date Model into Power BI first.
 
Upvote 0
Can you open the file in Notepad to see if there is any obvious issue with the file ?
Are you saying are trying to get the data into MS Access ? Why do you need to load it to PQ first ?
radacad has more options if you want to import the Date Model into Power BI first.
The file size is too huge to open in notepad . the data length is 10.4 Million
I have consolidated all the data from multiple sheets into single file through power query . And now I need to export it in text file from data model
 
Upvote 0
Another problem is that when the file is exported into csv and when I import it again in power query the data is not aligned correctly as per header. Due to various special characters present in any cell on random headers. That's has forfeit my purpose. I tried selecting comma or tab etc and still the issue exist. How can preserve the format in exact form while saving it in csv file regardless of any special character present in any cell under random headers / columns
 
Upvote 0
Are the special characters in your original data or are they created by trying to export the data using DAX Studio ?
You didn't tell me whether you are trying to get the data in MS Access or not and if there is anything Power Query is doing that needs to be done before loading it into Access.

PS: The only reason for opening it in Notepad was to see if the file was corrupt or not since you were getting an file reading error. Your loading it using PQ covers that of. (Additional FYI I just opened a file in Notepad with $5m+ records and it had no issue with it at all, even the load time was quite short)
 
Upvote 0
Are the special characters in your original data or are they created by trying to export the data using DAX Studio ?
You didn't tell me whether you are trying to get the data in MS Access or not and if there is anything Power Query is doing that needs to be done before loading it into Access.

PS: The only reason for opening it in Notepad was to see if the file was corrupt or not since you were getting an file reading error. Your loading it using PQ covers that of. (Additional FYI I just opened a file in Notepad with $5m+ records and it had no issue with it at all, even the load time was quite short)
 
Upvote 0

Forum statistics

Threads
1,223,239
Messages
6,170,947
Members
452,368
Latest member
jayp2104

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top