Solved

Can a Lookup column be used in a calculated column

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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

Suggested Solutions

Last week I faced a strange issue recently, i have deployed SharePoint 2003 servers for one project and one of the requirements was to open SharePoint site from same server. when i was trying to open site from the same server i was getting authentic…
These days socially coordinated efforts have turned into a critical requirement for enterprises.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…

813 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

17 Experts available now in Live!

Get 1:1 Help Now