Solved

Can a Lookup column be used in a calculated column

Posted on 2009-05-06
3
1,740 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
Comment Utility
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
Comment Utility
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

I have just recently built a new SharePoint 2007 farm on a complete Windows 2008 R2 server platform and part of my standard build procedure is to implement a warm up routine, usually in the form of a script that is scheduled every morning to launch …
These days socially coordinated efforts have turned into a critical requirement for enterprises.
This video discusses moving either the default database or any database to a new volume.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

744 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

13 Experts available now in Live!

Get 1:1 Help Now