Using an Access Query in a pivot table in Excel - excel

I have a ton of records across 5 different tables in Access that I'm consolidating in one query.
I want to now be able to connect that query to excel and pivot the data that is in the query. Is that possible? If so, is there a way to do it without added VBA? I was thinking of slowly exporting the consolidated data into a new table in access but with over 7 million records, it'll take some time. Anyway to save myself that headache? When I connect the DB to excel, the only tables that are coming up are the 5 tables and not the query.

Related

Load Data from Excel Power Query to Access table

I have an excel file that collects data from multiple txt files into connected individual tables (1 table per each file) as connection only tables. I have done this because some of them contain >1m tables. In excel, I have appended those tables using Power Query/Apend function. I need to create a new table that contains all the data, however the resulting data is >1m rows, and I can't load it back to excel.
Is there a way to load my connection (summary of all tables) to access?
When I try to do that using import function in access, it does not recognise the connection as a table so I am not sure how to do this.
Thank you,
Load it to the Excel data model which doesn't have a 1m row limit.
You cannot load from PQ to Access (nor would you want to).

How to add multiple Dynamic Power Queries into one spreadsheet excel

Is it possible to insert multiple dynamic power queries, one on top of the other, into a single excel spreadsheet and have the queries refresh when new data has been added to the tables?
I have six different dynamic power queries from six different tables.
When I put each query into their own spreadsheet by themselves they work perfectly. When I add additional data to the table and refresh the query the new data is added to the query worksheet.
However, when I place all six queries into one worksheet one on top of the other, the new data added to the tables will not refresh.
Any help would be greatly appreciated.
Using Excel 365 on Windows 10

display data from 2 tables in excel from sql server

I want to display 2 table data from SQL Server to Excel file. Each table has 2 columns.
I know that we can do this using Data tab. But what I could understand is we need to create 2 connections for the 2 tables.
Can we use a single connection and using this connection display the data from 2 tables?
Thanks in advance
Nope, you cannot connect two tables with one connection.
There is workaround to join tables in SQL query or use Union and index each table with column with name of the table.
Or if you do not want to use queries, try Microsoft Query from Excel, here is link to see how to use it.
https://help.acctivate.com/articles/3727/
Still I would suggest to do two connections.

PowerPivot VBA - Populating ComboBox

I am trying to create a VBA UserForm that will filter and display data being pulled from an Azure SQL Database. The database view that is being connected has about 8 million rows in total and I want to filter those records using a user friendly interface. My users are not going to be able to / want to manipulate the PowerPivot data model.
So my question is, is there a way to populate a ComboBox with unique values, or any values, in a PowerPivot linked table? I would prefer to keep the data in the model and not displayed on a "Settings" page. Some of them will have quite a few rows themselves.
Would my best option be to query the SQL database directly when loading the form? Or can I pull records from the PowerPivot data model?
Thanks for your help!
As far as I know, there is no way to get the data out of PowerPivot through vba. You'll have to query the source.

Faster pivot tables in Excel

I'm trying to build up a report of data in a SQL database using Excel. I am able to create connections and pull data into pivot tables and pivot charts.
However, I don't like having to create a new connection for every different query I want to run. Is it possible to have one single datasource connection open to my whole database, and then specify queries for each pivot table? This could also potentially improve refreshing performance as Excel doesn't have to create a new connection for each query.
Are there perhaps better tools for graphing lots of different SQL queries?
Thanks!

Resources