In SharePoint 2013, I am trying to create a Calculated Column that is a shortened display of another Custom Column. The Calculated Column would just show the first 100 characters concatenated with "..." like in the following formula:
=LEFT([CustomColumn],100)&"..."
However, every time that I go to create this calculated column, SharePoint doesn't provide my [CustomColumn] in the "Insert Column:" list. If I type it in anyway, SharePoint throws an error.
Details on my Column, List, and Site below:
Col. Type: Multiple lines of text
Col. Group: Custom Columns
Col. Text Type: Enhanced rich text
List Content Type: Custom Type Inherits from Event
Site Type: Publishing
Also, to no avail, I found this similar post, but creating the Site Column and Calculated Column before adding it to the Content Type did not work for me.
Anyone out there know how to coax SharePoint into submission?!
According to this forum response from a Microsoft representative Multiple Lines of Text columns cannot be used in Calculated columns. The workaround that I always use for Calculated column limitations is to create a new field that will serve as your "fake" Calculated column (in your case probably a single line of text field) and then set the value using a workflow. If you do not want users to be able to manually edit the "fake" Calculated column then hide it from the new/edit forms using the SharePoint Manager 2013.
Note - This method is also useful for doing Calculated columns that use Lookup columns.
Related
I run a customer service department (I'm new to this so need to learn quickly) and I'm trying to get some analytics on our customer service requests. I have a table in excel documenting every individual service request and I would like a graph showing the total number of requests per customer.
I could write this manually (see below) but I would like it to automatically update as more service requests are entered.
I have tried looking for answers to this but can't find any that update automatically or that don't require a table elsewhere to be manually updated with each new customer. We often get new customers and I dont want to have to go back to this every time to update a reference table or customer list.
Surely there must be a way in excel to "Count all entries of each occurrence of a name in a column" in some kind of smart way?
I would really appreciate help with this!
Thanks in advance!
If you have 365 you could take advantage of spilled ranges.
On your second image put =UNIQUE(Table1[Customer]) in cell B3.
Put =COUNTIF(Table1[Customer],B3#) in cell C3 - this formula will
spill to all your unique customers.
Create two names ranges:
One called XAxis which references =Sheet1!$B$3#
One called ChartValues which references =Sheet1!$C$3#
Create your chart:
Set series value to =Sheet1!ChartValues
Set axis to =Sheet1!XAxis
Change Sheet1 to whatever your sheet is called remembering to wrap with ' if it has a space in the name.
Better to use pivot tables.
If below is your data,
Go to Insert > PivotTable
A popup will show like below
Specify the Table/Range
Specify also the Location (anywhere in the Existing Worksheet)
The view below will be displayed
Click the Customer checkbox and also drag the Customer field to fill the VALUES box as shown in the image below
You desired table will be displayed as below
Please vote up if okay.
Thank you everyone for your suggestions. I found a solution from multiple answers and comments.
I ended up going to my original table that I am using to create new service records. I added a column called "1" and just entered the number 1 in that column, for every row. I then "Hid" this column in the usual fashion.
I then created a pivot table from this table and selected to display columns "Customer" and "1" and used these columns to produce a bar graph. Here is the result (With the column "1" unhidden):
tl;dr:
Excel is unable to do this in any smart way, create a column in the original table contianing the number 1 so when a pivot table is made, it will auto sum the 1's for entries from the same customer. Create a plot from this.
It disgusts me . . . but it works.
When I try to create a calculated field, Sharepoint does not offer the list columns i want to include in the calculation (they are text fields that I want to concatenate)
If those are [Today] and [Me] columns, then those cannot be added directly. These columns need to be created first. Later you can delete those columns once your formula works.
I have created a calculated column that pulls the text from another site column so I can display just the text. To achieve this I have created a SharePoint 2010 workflow which sets column B with colum A value. I then have a calculated column that will take the text from column B and strip the unnecessary characters and leave just what I want.
I have a workflow which finally takes the two calculated columns and replaces the value inside the Title column for the current item. I have the workflow kick off whenever a new item is created, changed etc. When I create an item it will change the title but the title displays Error;#256 - Error;#256. If I then run the workflow on the item again the correct values are inserted. So I thought the workflow wasn't waiting until the calculated columns were calculated before setting the Title so I modified my workflow as below but I still have this issue.
Laptops is passed onto LaptopString which then LaptopTextOnly is the calculated column that uses LaptopString to get the intended value I am looking for.
This was awhile ago but for anyone else having the issue, I resolved it by having the workflow wait for the calculated column to not contain the word 'error.'
I need to create a table list in cognos, but the columns of this table would change depend on the data.I don't know how to do this. I just know in cognos report studio, we can drag data into cognos list report.
Update:
I don't know how many columns in this table.Because different data generate different number of columns.Actually,one row of data is a tree hierarchy.For example,the first columns is root,the second column is its child,and maybe the third columns is second child,or first grandson,and so on.So the columns always change.
In report studio just make list report by dragging on your wish.
But make sure it contains all columns that you need (i mean columns inculded in dynamic changes).
Say 4 columns you need at max.
Name
Roll no
Age
Address
Then create conditional style vairable (You can find in center bar)
now based on this condition dynamically chose the style.
Eg: If condition 1 satisfied
Name
Roll No
If condition 2 satisfied
Name
Address
I would use a Crosstab instead of a List. The columns are created dynamically without any other programming involved.
Just drag a Crosstab into report page, set the columns and rows (which can be nested by the way) and finally, drag the fact field right at the center of the Crosstab.
Try the following:
Create a list as per the requirement.
Hide the columns.
In each column expression, give the condition and set show as per the condition.
I'm having some problems with calculated columns in Sharepoint 2007. They don't appear to be working as expected.
So, I decided to try something simple. Basically, I wanted to check a Content Type.
The formula is:
=IF([Content Type]="PictureView","IsPicture","NotPicture")
This column is added to the Default View of the Document Library. I would expect the column to be filled with either "IsPicture" or "NotPicture" (without the quotes).
However, only a few sporadic cells are populated for that calculated column.
Can anyone shed some insight as why this is happening? Why doesn't it populate the entire column?
Thanks!
Dave
Calculated columns store their value in the database and are set when the record is updated - they won't be set for records that were already there when the calculated field was added.
Computed fields are calculated on view, but they aren't available through the browser interface.