?
Solved

Can a Lookup column be used in a calculated column

Posted on 2009-05-06
3
Medium Priority
?
1,844 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 2000 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

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

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

If you create your solutions on SharePoint sooner or later you will come upon a request to set  permissions of the item depending on some of the item's meta-data - the author, people assigned as approvers, divisions, categories etc. The most natu…
Pimping Sharepoint 2007 without Server-Side Code Part 1 One of my biggest frustrations with Sharepoint 2007 in the corporate world is that while good-intentioned managers lock down the more interesting capabilities of Sharepoint programming in…
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…

718 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