Extract data underlying Excel pivot tables with many records - excel

I have an .xlsx with a pivot table but not the Access database that it links to. However, I believe all of the "raw" data underlying the pivot table is in the cache somewhere within the spreadsheet. My end goal is to create a CSV with the raw data. The issue with double-clicking the 'totals' row is that I'm limited to 2^20 (~ a million) rows, and the data has around 8 million. I'm currently manually filtering on a specific field foo in the pivot table then double-clicking the totals rows for each value of foo. Is there a more elegant way to do this?

As far as I know, it's not possible to save data directly from the PivotCache into a CSV. Looks like you'll have to dump the data from Access.

Related

Excel Table Rows Moving on Power Query Refresh

I have a Power Query connection that's pulling data from a CSV file into an Excel table. I have then added columns to that table in Excel and added some data to those columns manually.
The issue I have is that whenever I refresh the Power Query, the 'manual' data rows don't stay lined up with the Power Query rows. Specifically, it seems that the manual data all gets shunted down a row in relation to the Power Query data, although even that isn't completely consistent.
I tried unselecting the 'Preserve column sort/filter layout' option in External Data Properties, but that went horribly wrong, as it just removes all of the manually added data from the table completely.
The Power Query itself is very simple, it just takes the CSV data, promotes the headers, changes a couple of types and removes a few columns - there's not even any data filtering going on.
Any assistance much appreciated!

How could I reformat this data from many rows to many columns

Ive got a bunch of data in the form of https://imgur.com/AWoWDaD.
I want a way to get it it to this form https://imgur.com/BbesneA without moving it manually.
I would prefer to use excel but I can do whatever. Any ideas?
You can use for this in Excel Pivot Tables. It does exactly what you need.
Original data (My numbers are random, not same as yours):
And after inserting a Pivot Table, I get this:
Check:
Pivot Tables

Excel Dynamic Table with Data from Another Sheet

I am trying to create a table of dynamic range that takes data from another sheet. The short story is that I need to do this because Alteryx will drop an old existing sheet of the same name when uploading new data each time that it is ran.
I am filling up a template from a pivot table formed from this table that takes the raw data (4 sheets total).
The Problem: The problem I have is with the Raw Data and the Table sheets. The Table Sheet needs to mimic the exact data of the Raw Data Sheet, but in table form. So there are two things to consider: the size of the raw data, and the actual data itself.
How might one do this?
And before I answer redundant questions:
Why don't you make a table on the raw data sheet? Because the sheet gets dropped each time Alteryx runs and will not save that there once existed a table there
Just say the cell references the other cell/ size references the size Yes, I get this, but I am making things dynamic on the table sheet
Make a giant table to take any size data range and map the expected columns also did this but if I told my college professor I did this as a professional analyst I would get slapped on the wrists
If you are using Excel 2016 or later, you can create a "Pivot Table":
And choose where to place it, for example in another worksheet:

creating a series of MS Excel graphs with identical properties for a series of tables with different data but same data types

I have a series of table in Excel worksheets, all of them holds same data types, one table for one item, and how some values changed over time in each table column.
I want to create a excel graph/chart for each of this table, with same formatting, only the data should be different.
When I copy each from single graph to create many, the table link doesn't change and I have to do that manually, which is difficult because there are number of tables.
Is there any better solution? Thank you
The dirtiest solution is to simply use VBA to automate these changes.
I finally copied and pasted the same graphs for each table, undo the old links and linked each table separately. I was looking for a easier way than this because even this is difficult with number of tables increasing. Thank you.

How to add data to an existing power pivot table?

I'm looking for a way to load more recent data as date x in Power Pivot and link/add them to an existing table.
Background:
The user downloads data from a datafeed and saves them in Excel Power Pivot.
The data will be deleted from the server afterwards.
In the next step, new data must be added to the existing table in Power Pivot,
so that the workbook graphics can access the complete dataset.
I know there is no API for VBA access to Power Pivot. Is there a
workaround with linked tables and direct access to the database?
1) you create one table just containing the dates from earliest to far into the future
2) you import every new set of data into a new power pivot table
3) you link the dates for a record in the newly imported table to the dates in the power pivot table containing the dates
so the backbone of your whole data is the dates table, while your tables keeping the actual data are treated as lookup tables.
this is hacky and I didn't try it, but it should work

Resources