Excel PQ not finding table

jimrward

Well-known Member
Joined
Feb 24, 2003
Messages
1,877
Office Version
  1. 2016
  2. 2013
  3. 2011
  4. 2010
  5. 2007
Platform
  1. Windows
historically i have a large data set from which I have created lots of sub queries and everything is working fine
my current issue is as follows
I created a small table on a worksheet with some lookup values and gave it a name PaperCount, this table has a name in column 1 and count in column 2

in one of my existing queries I want to reference this table and pick up the value according to the name and get the value

adding custom columns with
if List.PositionOf(PaperCount[UniqueNames],[SName]) = -1 then 0
else PaperCount[Total]{List.PositionOf(PaperCount[UniqueNames],[SName])}

I keep getting an error "The name PaperCount wasnt recognised"
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
Did you load the table as a query (or a step in one)? If not, you can't refer to it.
 
Upvote 0
@RoryA , you beat me to it, in trying many things I stumbled blindly and tried loading as connection only and it worked
is it good practice to load all static lookup tables as connection only or does this have performance issues before I go adding in more
 
Upvote 0
If you need to use them, you may as well, since you will have to load them at some point.
 
Upvote 0

Forum statistics

Threads
1,215,069
Messages
6,122,954
Members
449,095
Latest member
nmaske

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