<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.technet.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Functions for use in a MOSS 2007 column ([Today] [Me] [Other??])</title><link>http://blogs.technet.com/collaboration/archive/2008/03/28/functions-for-use-in-a-moss-2007-column-today-me-other.aspx</link><description>Following the recent questions from my last post I thought it would be useful to highlight what functions are available when creating a column in a list/library within MOSS 2007. This can be useful when creating a: Calculated column based on other columns</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: Functions for use in a MOSS 2007 column ([Today] [Me] [Other??])</title><link>http://blogs.technet.com/collaboration/archive/2008/03/28/functions-for-use-in-a-moss-2007-column-today-me-other.aspx#3024234</link><pubDate>Mon, 31 Mar 2008 09:14:09 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3024234</guid><dc:creator>Mikael Söderström</dc:creator><description>&lt;p&gt;Hi James,&lt;/p&gt;
&lt;p&gt;Thanks, that&amp;#180;s exactly what I was asking for. :-)&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Mikael S&amp;#246;derstr&amp;#246;m&lt;/p&gt;</description></item><item><title>re: Functions for use in a MOSS 2007 column ([Today] [Me] [Other??])</title><link>http://blogs.technet.com/collaboration/archive/2008/03/28/functions-for-use-in-a-moss-2007-column-today-me-other.aspx#3055609</link><pubDate>Thu, 15 May 2008 14:59:17 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3055609</guid><dc:creator>Nikoli Plantov</dc:creator><description>&lt;p&gt;Brilliant. Thanks for the information.&lt;/p&gt;
&lt;p&gt;Nikoli Plantov&lt;/p&gt;</description></item><item><title>re: Functions for use in a MOSS 2007 column ([Today] [Me] [Other??])</title><link>http://blogs.technet.com/collaboration/archive/2008/03/28/functions-for-use-in-a-moss-2007-column-today-me-other.aspx#3068298</link><pubDate>Mon, 09 Jun 2008 18:58:39 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3068298</guid><dc:creator>Sergei Golubev</dc:creator><description>&lt;p&gt;Thanks, James! Your article was very useful for the task I’m doing now.&lt;/p&gt;</description></item><item><title>re: Functions for use in a MOSS 2007 column ([Today] [Me] [Other??])</title><link>http://blogs.technet.com/collaboration/archive/2008/03/28/functions-for-use-in-a-moss-2007-column-today-me-other.aspx#3070097</link><pubDate>Thu, 12 Jun 2008 21:13:46 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3070097</guid><dc:creator>Debbie Robinson</dc:creator><description>&lt;P&gt;Is there a way to make a column appear in a list with only 15 characters showing in the column and the rest wrapped like you can in an excel spreadsheet&lt;/P&gt;</description></item><item><title>re: Functions for use in a MOSS 2007 column ([Today] [Me] [Other??])</title><link>http://blogs.technet.com/collaboration/archive/2008/03/28/functions-for-use-in-a-moss-2007-column-today-me-other.aspx#3073587</link><pubDate>Wed, 18 Jun 2008 19:40:26 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3073587</guid><dc:creator>James Kemp</dc:creator><description>&lt;P&gt;Hi Debbie,&lt;/P&gt;
&lt;P&gt;I don't think this is possible out of the box. One would have to do some custom coding instead. I would also check out www.codeplex.com and see if you can find anything.&lt;/P&gt;
&lt;P&gt;Kind Regards,&lt;/P&gt;
&lt;P&gt;James &lt;/P&gt;</description></item><item><title>re: Functions for use in a MOSS 2007 column ([Today] [Me] [Other??])</title><link>http://blogs.technet.com/collaboration/archive/2008/03/28/functions-for-use-in-a-moss-2007-column-today-me-other.aspx#3110540</link><pubDate>Fri, 22 Aug 2008 23:50:40 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3110540</guid><dc:creator>Brian</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have Choice Column that is a drop down menu. &amp;nbsp;I want to display a text field when an item in a list has been selected.&lt;/p&gt;
&lt;p&gt;Do you know how I go about this?&lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;</description></item><item><title>re: Functions for use in a MOSS 2007 column ([Today] [Me] [Other??])</title><link>http://blogs.technet.com/collaboration/archive/2008/03/28/functions-for-use-in-a-moss-2007-column-today-me-other.aspx#3111963</link><pubDate>Tue, 26 Aug 2008 10:54:25 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3111963</guid><dc:creator>James Kemp</dc:creator><description>&lt;p&gt;Hi Brian,&lt;/p&gt;
&lt;p&gt;I don't think this would be possible out-of-the-box, you would need to write some custom code. The alternative would be to:&lt;/p&gt;
&lt;p&gt;- Have the text field always available when users create a list entry&lt;/p&gt;
&lt;p&gt;- Create two different views on the list to show/hide the extra field depending on whether or not choice X was chosen. Not ideal perhaps....&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;James &lt;/p&gt;
</description></item><item><title>re: Functions for use in a MOSS 2007 column ([Today] [Me] [Other??])</title><link>http://blogs.technet.com/collaboration/archive/2008/03/28/functions-for-use-in-a-moss-2007-column-today-me-other.aspx#3124765</link><pubDate>Tue, 16 Sep 2008 17:36:14 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3124765</guid><dc:creator>Jan Munkholm</dc:creator><description>&lt;P&gt;Hi James&lt;/P&gt;
&lt;P&gt;Can you calculate or sort the content of a column based on which content that the user has chosen in another previous column?&lt;/P&gt;
&lt;P&gt;Br.&lt;/P&gt;
&lt;P&gt;Jan&lt;/P&gt;</description></item><item><title>re: Functions for use in a MOSS 2007 column ([Today] [Me] [Other??])</title><link>http://blogs.technet.com/collaboration/archive/2008/03/28/functions-for-use-in-a-moss-2007-column-today-me-other.aspx#3126102</link><pubDate>Fri, 19 Sep 2008 17:33:05 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3126102</guid><dc:creator>James Kemp</dc:creator><description>&lt;p&gt;Hi Jan,&lt;/p&gt;
&lt;p&gt;The only way I can think of doing this would be to:&lt;/p&gt;
&lt;p&gt;- Create the list/library&lt;/p&gt;
&lt;p&gt;- Create a column (i.e. Column X) which will hold the choices available to users (e.g. Choice 1, 2 and 3). Make Column X hold values of type 'hyperlink'&lt;/p&gt;
&lt;p&gt;- Create three view on the list/library for each of the choices available. For each view, you can then define whatever columns, calculations and sorting you want&lt;/p&gt;
&lt;p&gt;- Make the hyperlink in Column X correspond to the different views of the list/library.&lt;/p&gt;
&lt;p&gt;This should mean that when a user clicks a choice in Column X, it just refreshes the page and shows a different view of the same list/library. To them, it will appear as if the list/library has changed based on their actions.&lt;/p&gt;
&lt;p&gt;I hope this helps?&lt;/p&gt;
&lt;p&gt;James &lt;/p&gt;
</description></item><item><title>re: Functions for use in a MOSS 2007 column ([Today] [Me] [Other??])</title><link>http://blogs.technet.com/collaboration/archive/2008/03/28/functions-for-use-in-a-moss-2007-column-today-me-other.aspx#3132929</link><pubDate>Mon, 06 Oct 2008 18:38:48 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3132929</guid><dc:creator>Mike</dc:creator><description>&lt;p&gt;James&lt;/p&gt;
&lt;p&gt;Is it possible to have text content dependent on a previous selection?&lt;/p&gt;
&lt;p&gt;For example - have two drop down columns on a library, 'Vendor' and 'Product', the selection of a Vendor changes the visible choices in the Product column; for example choosing a Vendor 'Microsoft' would only list Microsoft products in the Product drop down.&lt;/p&gt;
&lt;p&gt;Thanks very much&lt;/p&gt;</description></item><item><title>re: Functions for use in a MOSS 2007 column ([Today] [Me] [Other??])</title><link>http://blogs.technet.com/collaboration/archive/2008/03/28/functions-for-use-in-a-moss-2007-column-today-me-other.aspx#3135857</link><pubDate>Mon, 13 Oct 2008 13:57:29 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3135857</guid><dc:creator>James Kemp</dc:creator><description>&lt;p&gt;Hi Mike,&lt;/p&gt;
&lt;p&gt;This is slightly different to the scenario that Jan posted and unfortunatley I'm not sure this is possible OOTB. Instead, you would probably need to create &amp;nbsp;a custom field. MSDN guidance on this is available at &lt;a rel="nofollow" target="_new" href="http://msdn.microsoft.com/en-us/library/ms446361.aspx"&gt;http://msdn.microsoft.com/en-us/library/ms446361.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;James&lt;/p&gt;
</description></item><item><title>re: more suggestions for [Me]...?</title><link>http://blogs.technet.com/collaboration/archive/2008/03/28/functions-for-use-in-a-moss-2007-column-today-me-other.aspx#3148557</link><pubDate>Thu, 06 Nov 2008 18:38:57 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3148557</guid><dc:creator>Andy G</dc:creator><description>&lt;p&gt;Hi James,&lt;/p&gt;
&lt;p&gt;Great post! However, from this I'm assuming that what I want to achieve isn't supported. Or at least, isn't obvious.&lt;/p&gt;
&lt;p&gt;I want to get the currently logged in users name into an existing default calendar 'Title' column.&lt;/p&gt;
&lt;p&gt;Since this default column can only be either text or a calculation, options are limited.&lt;/p&gt;
&lt;p&gt;The formula [Created By] doesn't exist in the above reference table, neither does [PreferredName](it was an idea from the UserProfile Service). &lt;/p&gt;
&lt;p&gt;Trying to get a duplicate of a 'People or Group' column by using [column_name] also fails.&lt;/p&gt;
&lt;p&gt;All of the above return the error: 'One or more column references are not allowed, because the columns are defined as a data type that is not supported in formulas.'&lt;/p&gt;
&lt;p&gt;Using [Me] which is the closest option returns 'DOMAIN\username' which is not particularly pretty.&lt;/p&gt;
&lt;p&gt;How can I get this to format like 'firstname lastname' within the calculation?&lt;/p&gt;
&lt;p&gt;If you have any ideas I'd be pleased to hear them!&lt;/p&gt;</description></item><item><title>re: Functions for use in a MOSS 2007 column ([Today] [Me] [Other??])</title><link>http://blogs.technet.com/collaboration/archive/2008/03/28/functions-for-use-in-a-moss-2007-column-today-me-other.aspx#3159920</link><pubDate>Wed, 26 Nov 2008 19:12:07 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3159920</guid><dc:creator>Nate</dc:creator><description>&lt;p&gt;How can I use functions in View Filters? I can use all these in a calculated column. However, I want to have my view display items in a list based on a computed &amp;quot;Week&amp;quot; value based on a formula:&lt;/p&gt;
&lt;p&gt;FLOOR((([Julian Date]+1)/7),1). I want to compute the Julian date from [Today] in my filter then run my computation on it, yielding my actual week. This way, I see only items for the current week (forward and back), and none for the following or prior weeks.&lt;/p&gt;</description></item><item><title>re: Functions for use in a MOSS 2007 column ([Today] [Me] [Other??])</title><link>http://blogs.technet.com/collaboration/archive/2008/03/28/functions-for-use-in-a-moss-2007-column-today-me-other.aspx#3161141</link><pubDate>Fri, 28 Nov 2008 19:41:42 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3161141</guid><dc:creator>James Kemp</dc:creator><description>&lt;p&gt;Hi Andy,&lt;/p&gt;
&lt;p&gt;I had a small experiment and came to the same conclusions as you have. The only possible away around this that I can think of is to modify the list/library so that you can manage the content types on the list/library. Then, on your custom content type you should be able to delete/modify the Title column to be something else (e.g. a calculated field). You should be able to do the formulas you desire on this &amp;quot;default/first&amp;quot; field.&lt;/p&gt;
&lt;p&gt;Good luck!&lt;/p&gt;
&lt;p&gt;James &lt;/p&gt;
</description></item><item><title>re: Functions for use in a MOSS 2007 column ([Today] [Me] [Other??])</title><link>http://blogs.technet.com/collaboration/archive/2008/03/28/functions-for-use-in-a-moss-2007-column-today-me-other.aspx#3161156</link><pubDate>Fri, 28 Nov 2008 19:57:11 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3161156</guid><dc:creator>James Kemp</dc:creator><description>&lt;p&gt;Hi Nate,&lt;/p&gt;
&lt;p&gt;I'm not 100% sure what you are after. Do any of the following posts help:&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://blogs.technet.com/collaboration/archive/2008/03/19/how-to-see-items-added-to-a-sharepoint-list-library-that-meet-a-custom-date-value.aspx"&gt;http://blogs.technet.com/collaboration/archive/2008/03/19/how-to-see-items-added-to-a-sharepoint-list-library-that-meet-a-custom-date-value.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://blogs.technet.com/collaboration/archive/2008/02/22/how-to-see-items-added-to-a-sharepoint-list-library-in-the-last-x-days.aspx"&gt;http://blogs.technet.com/collaboration/archive/2008/02/22/how-to-see-items-added-to-a-sharepoint-list-library-in-the-last-x-days.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;James&lt;/p&gt;
</description></item><item><title>re: Functions for use in a MOSS 2007 column ([Today] [Me] [Other??])</title><link>http://blogs.technet.com/collaboration/archive/2008/03/28/functions-for-use-in-a-moss-2007-column-today-me-other.aspx#3190322</link><pubDate>Thu, 22 Jan 2009 22:05:50 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3190322</guid><dc:creator>Esther Hunter</dc:creator><description>&lt;p&gt;Thanks so much for this post. Very helpful. One question is whether or not this calculation will constantly update to reflect the current date. I think that current date (TODAY) is stagnant no?&lt;/p&gt;
&lt;p&gt;thanks,&lt;/p&gt;
&lt;p&gt;E &lt;/p&gt;</description></item><item><title>re: Functions for use in a MOSS 2007 column ([Today] [Me] [Other??])</title><link>http://blogs.technet.com/collaboration/archive/2008/03/28/functions-for-use-in-a-moss-2007-column-today-me-other.aspx#3200772</link><pubDate>Wed, 11 Feb 2009 13:47:43 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3200772</guid><dc:creator>James Kemp</dc:creator><description>&lt;p&gt;Hi Esther,&lt;/p&gt;
&lt;p&gt;The calculations should be dynamic in most/all cases. I would have to test the TODAY function to be sure for the example you have given. Please share your results if you have tested this already.&lt;/p&gt;
&lt;p&gt;James :)&lt;/p&gt;
</description></item><item><title>re: Functions for use in a MOSS 2007 column ([Today] [Me] [Other??])</title><link>http://blogs.technet.com/collaboration/archive/2008/03/28/functions-for-use-in-a-moss-2007-column-today-me-other.aspx#3200883</link><pubDate>Wed, 11 Feb 2009 19:43:17 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3200883</guid><dc:creator>Joe Lichty</dc:creator><description>&lt;P&gt;Hi James--&lt;/P&gt;
&lt;P&gt;This helped quite a bit, but I'm having some challenges:&lt;/P&gt;
&lt;P&gt;I need to constantly calculate the time to expiry for some domains based on today's date and the expiry date.&lt;/P&gt;
&lt;P&gt;When I try your solution, the calculation is correct but the date in the record does not reflect the current date, only when I altered that record.&lt;/P&gt;
&lt;P&gt;If I try to use TODAY in a calculated column, I get a note saying volatile functions such as ME and TODAY cannot be used.&lt;/P&gt;
&lt;P&gt;Any ideas?&lt;/P&gt;</description></item><item><title>re: Functions for use in a MOSS 2007 column ([Today] [Me] [Other??])</title><link>http://blogs.technet.com/collaboration/archive/2008/03/28/functions-for-use-in-a-moss-2007-column-today-me-other.aspx#3201155</link><pubDate>Thu, 12 Feb 2009 12:38:05 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3201155</guid><dc:creator>James Kemp</dc:creator><description>&lt;p&gt;Hi Joe,&lt;/p&gt;
&lt;p&gt;It sounds like:&lt;/p&gt;
&lt;p&gt;A) If TODAY is used in a column without a calculation, it won't be updated dynamically &lt;/p&gt;
&lt;p&gt;B) If TODAY is used in a calculated column, it isn't allowed.&lt;/p&gt;
&lt;p&gt;So, the only two options left I think are:&lt;/p&gt;
&lt;p&gt;(C) to use the TODAY function in a view, and see if that achieves your goals - see &lt;a rel="nofollow" target="_new" href="http://blogs.technet.com/collaboration/archive/2008/03/19/how-to-see-items-added-to-a-sharepoint-list-library-that-meet-a-custom-date-value.aspx"&gt;http://blogs.technet.com/collaboration/archive/2008/03/19/how-to-see-items-added-to-a-sharepoint-list-library-that-meet-a-custom-date-value.aspx&lt;/a&gt;, or &lt;/p&gt;
&lt;p&gt;(D) to create &amp;nbsp;a custom field and use the TODAY value within it. MSDN guidance on this is available at &lt;a rel="nofollow" target="_new" href="http://msdn.microsoft.com/en-us/library/ms446361.aspx"&gt;http://msdn.microsoft.com/en-us/library/ms446361.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;James &amp;nbsp;&lt;/p&gt;
</description></item><item><title>re: Functions for use in a MOSS 2007 column ([Today] [Me] [Other??])</title><link>http://blogs.technet.com/collaboration/archive/2008/03/28/functions-for-use-in-a-moss-2007-column-today-me-other.aspx#3204768</link><pubDate>Fri, 20 Feb 2009 04:49:04 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3204768</guid><dc:creator>LoriH</dc:creator><description>&lt;P&gt;Thanks for the great post!! I've been hunting for this information for 2 weeks - now I came across it looking for something else. :-) &amp;nbsp;&lt;/P&gt;</description></item></channel></rss>