Solved

Can a Lookup column be used in a calculated column

Posted on 2009-05-06
3
1,754 Views
Last Modified: 2012-05-06
In my requirement, in calculating a column(calculated column) i have to apply an OR condition on a column which is actually a lookup column. I am getting the following error  


Can you please help me out in this context.             Experts please.....
ERROR :  "One or more column references are not allowed, because the columns are defined as a data type that is not supported in formulas.   at Microsoft.SharePoint.Library.SPRequestInternalClass.AddField(String bstrUrl, String bstrListName, String bstrSchemaXml, Int32 grfAdd)".

Open in new window

0
Comment
Question by:tahir1053
3 Comments
 
LVL 21

Expert Comment

by:66866
ID: 24329448
Unfortunately, you cannot use a Lookup column in a calculated column expression directly.
Here's one approach
You'll have to create an "Empty" column and assign it to your formula of your calculated column. Then delete this empty column and recreate it as a Lookup column and see if that helps you out.
0
 
LVL 1

Accepted Solution

by:
c1pendule earned 500 total points
ID: 25439327
You can use a lookup column in a calculated one if you do a workflow saing if the lookup column in different then zero (example) set a certain field to the lookup column value.
I've tried the trick with the "Empty" column and it was displaying the field's ID rather than the field itself.
0

Featured Post

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

When installing SharePoint 2010 RTM I came across a strange error, I was getting timeouts during the installation. I searched the web and found the best solution to be found here (http://social.msdn.microsoft.com/Forums/en-US/sharepoint2010genera…
We had a requirement to extract data from a SharePoint 2010 Customer List into a CSV file and then place the CSV file into a directory on the network so that the file could be consumed by an AS400 system. I will share in Part 1 how to Extract the Da…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

943 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now