Solved

Can a Lookup column be used in a calculated column

Posted on 2009-05-06
3
1,809 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SharePoint Foundation 2013 Search 11 100
Licensing Sharepoint 2016 for developers 11 100
Icons on a page, side-by-side 6 55
Yet more SharePoint App with Angular and Bootstrap 4 85
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…
I used to be SharePoint evangelist in our company, so my Outlook always full of questions about how to do this, or where I can find that. One day I found such an email with the following question: "how to attach 3-State workflow (one of the workflow…
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 …
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

751 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