Powerpivot won't import Access query data but it sees the query

pete234

Active Member
Joined
Feb 10, 2004
Messages
419
Well this is strange as I had tested linking to queries a week ago.
Now I made a query in Access very simple select and I linked to the query but it keeps returning 0 rows.
It sees the query or the headers are there but refresh is "zero rows transferred."
I closed out of everything went back in same thing.
So is there some setting I could have hit that is preventing the transfer of data?
Just when I think something will be 5 minutes...any help appreciated.
Now I noticed a couple of smaller queries using same table aren't showing data either.
Is there some type of table it won't work with? It's just an employee table.
 
Last edited:

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
are you trying to import a query or typing the query on the powerpivot window? Can you try create the query in access and then import that query using powerpivot?
 
Upvote 0
I created the query in Access and I'm just trying to import the query to filter off employees I don't need in the report instead of filtering in pp.
The query is working in Access. Looking at the SQL in powerpivot it's just SELECT [Query]* FROM [Query].
A much larger query imports fine.
 
Upvote 0
Ok I compared it to a query that was similar but working and...Powerpivot doesn't like LIKE or the wildcard.
I took out the Like "xyx*" part of the query and now it works.
 
Upvote 0
Try using LIKE 'xyz%' in the WHERE clause when writing the SQL code directly in PowerPivot where single quotes are used instead of double and % is the wildcard.

Access has a slightly different "flavor" of SQL than SQL Server does. There are some syntax variations between the 2 as well as some different functions. PowerPivot uses the SQL Server version even when querying a table stored in Access.
 
Upvote 0

Forum statistics

Threads
1,223,936
Messages
6,175,508
Members
452,650
Latest member
Tinfish

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