{"id":807,"date":"2011-01-26T12:37:48","date_gmt":"2011-01-26T20:37:48","guid":{"rendered":"http:\/\/www.little.org\/blog\/2011\/01\/26\/getting-more-detail-in-sharepoint-calendar\/"},"modified":"2011-01-26T12:37:48","modified_gmt":"2011-01-26T20:37:48","slug":"getting-more-detail-in-sharepoint-calendar","status":"publish","type":"post","link":"https:\/\/www.little.org\/blog\/2011\/01\/26\/getting-more-detail-in-sharepoint-calendar\/","title":{"rendered":"Showing more detail in SharePoint Calendar"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; border-right-width: 0px; margin: 2px 10px 5px 0px; padding-left: 0px; padding-right: 0px; display: inline; float: left; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px\" title=\"image\" border=\"0\" alt=\"image\" align=\"left\" src=\"http:\/\/www.little.org\/blog\/wp-content\/uploads\/2011\/01\/image1.png\" width=\"100\" height=\"118\" \/><\/p>\n<p>The SharePoint calendar is an ideal place to give people a quick overview of team events, but the overview can be a bit thin on detail for some people\u2019s tastes. The calendar structure is pretty rigid, so we can\u2019t just add columns to the view like we do in other SharePoint lists. We can, however, pick which column to display in the calendar view. Using calculated fields we will build a new event title to have our calendar events communicate extra information at a glance.<\/p>\n<p>Here\u2019s what we want: when looking at the calendar we\u2019d like our site members to see the title of the calendar event AND the location of the event in parenthesis. The pictures below show what SharePoint gives us out of the box compared to what we\u2019d like for our site members:<\/p>\n<p><em>SharePoint gives us:<\/em> <img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px\" title=\"image\" border=\"0\" alt=\"image\" src=\"http:\/\/www.little.org\/blog\/wp-content\/uploads\/2011\/01\/image2.png\" width=\"152\" height=\"94\" \/> <em>We Want:<\/em> <img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px\" title=\"image\" border=\"0\" alt=\"image\" src=\"http:\/\/www.little.org\/blog\/wp-content\/uploads\/2011\/01\/image3.png\" width=\"152\" height=\"93\" \/><\/p>\n<p>Here\u2019s what we\u2019ll do in brief:<\/p>\n<ol>\n<li>Create two calculated fields, one to be the month view title and one to be the sub heading for day and week views. <\/li>\n<li>Modify the view to show our new columns instead of the default columns. <\/li>\n<\/ol>\n<h2>Create new calculated field columns<\/h2>\n<p><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; border-right-width: 0px; margin: 2px 0px 5px 10px; padding-left: 0px; padding-right: 0px; display: inline; float: right; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px\" title=\"image\" border=\"0\" alt=\"image\" align=\"right\" src=\"http:\/\/www.little.org\/blog\/wp-content\/uploads\/2011\/01\/image4.png\" width=\"195\" height=\"136\" \/>In our SharePoint calendar we&#8217;ll navigate over to the Calendar tab and click the &quot;Create Column&quot; ribbon button. We\u2019ll call this column &quot;Month View Title&quot; and set the type to &quot;Calculated&quot;. Now, let\u2019s build up the formula. Remember, we want the end result to look like this:<\/p>\n<p>Event Title (Location)<\/p>\n<p>To create that string, our formula will look like this:<\/p>\n<p>[Title] &amp; &quot; (&quot; &amp; [Location] &amp; &quot;)&quot;<\/p>\n<p>SharePoint\u2019s calculated field will (among other things) combine, or &quot;concatenate&quot;, strings. To concatenate strings we use the &quot;&amp;&quot; (ampersand) symbol much the same way we use the &quot;+&quot; (plus) symbol for adding numbers. Building a string is as easy as double-click a column, type an ampersand, type some text in double quotes (&quot;). We use the double quotes to make sure SharePoint knows we&#8217;re concatenating a string and not just another field.<\/p>\n<p>For consistency with the month view, we also would like the location wrapped in parentheses for the day and week views. Let\u2019s create another calculated column for this. Repeat the steps to create a column and call it \u201cDay Week View Sub Heading\u201d. The formula will look like this:<\/p>\n<p>&quot;(&quot; &amp; [Location] &amp; &quot;)&quot;<\/p>\n<h2>Modify the calendar view<\/h2>\n<p>Now that we have the strings we want, we can change the calendar view to show our new calculated columns instead of the default, &quot;out of the box&quot; (OOB) event title.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; border-right-width: 0px; margin: 2px 0px 5px 10px; padding-left: 0px; padding-right: 0px; display: inline; float: right; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px\" title=\"image\" border=\"0\" alt=\"image\" align=\"right\" src=\"http:\/\/www.little.org\/blog\/wp-content\/uploads\/2011\/01\/image5.png\" width=\"195\" height=\"118\" \/>In your calendar, head back over to the Calendar tab again and this time click the &quot;Modify View&quot; button. In the Edit Calendar View settings we&#8217;ll change the &quot;Calendar Columns&quot; to show our new calculated fields. The title fields we&#8217;ll change are the &quot;Month View Title&quot;, the &quot;Week View Sub Heading&quot; and the &quot;Day View Sub Heading&quot;. Since we&#8217;re extra clever, we gave our calculated columns names which match up very nicely with these field titles. Click the OK button to save changes and we&#8217;re done.<\/p>\n<h2>Go crazy<\/h2>\n<p>The SharePoint calculated column feature gives a lot of flexibility and can be used without having to open SharePoint Designer or learn to write custom SharePoint solutions. <a href=\"http:\/\/msdn.microsoft.com\/en-us\/library\/bb862071.aspx\">Check out this article on MSDN<\/a> to get your creative juices flowing.<\/p>\n<hr \/>\n<p>Update: <a href=\"http:\/\/sharepoint.microsoft.com\/Blogs\/GetThePoint\/Lists\/Posts\/Post.aspx?ID=453\" target=\"_blank\" rel=\"noopener noreferrer\">We&#8217;ve cross-posted this on the SharePoint for End Users blog<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The SharePoint calendar is an ideal place to give people a quick overview of team events, but the overview can be a bit thin on detail for some people\u2019s tastes. The calendar structure is pretty rigid, so we can\u2019t just add columns to the view like we do in other SharePoint lists. We can, however, [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":806,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[16],"tags":[116,124],"class_list":["post-807","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tech","tag-techsharepoint","tag-techtips"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.little.org\/blog\/wp-json\/wp\/v2\/posts\/807","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.little.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.little.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.little.org\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.little.org\/blog\/wp-json\/wp\/v2\/comments?post=807"}],"version-history":[{"count":0,"href":"https:\/\/www.little.org\/blog\/wp-json\/wp\/v2\/posts\/807\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.little.org\/blog\/wp-json\/"}],"wp:attachment":[{"href":"https:\/\/www.little.org\/blog\/wp-json\/wp\/v2\/media?parent=807"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.little.org\/blog\/wp-json\/wp\/v2\/categories?post=807"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.little.org\/blog\/wp-json\/wp\/v2\/tags?post=807"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}