How does a calculated column work in Sharepoint? - sharepoint

How does acalculated column work in Sharepoint? When a calculated column is added to list, the next moment it'll update the list items. How does it happen?

Calculated columns in SharePoint 2010 are similar to formulas in Excel spread sheet. Their result is attained by writing formula that uses the values of other columns (their names). There are all sorts of formulas to perform calculations as pointed out in the Calculated Field Formulas –msdn page, with example and possible result. You could also check the two links below that show steps of how to achieve a calculated column:
SharePoint: Creating Calculated Column Formulas
About SharePoint Calculated Columns
Hopefully, this will make things more clear.

Short Answer: it updates the value when you save an item OR when you change the calculation in the field setting
read this very interesting post. discussion in the comments section is very interesting.

Calculated fields are stored in Database and they are updated when you save an input.

Related

Excel pivot add field base on two other calculated fields

I added two columns to my pivot which calculates sums of hours like this :
I would like to add another column which is based on those two new columns, that calculates their quotient 'Sum of Avail Hrs'/'Sum of Eff Hrs' but couldn't find how to do it.
Please help!
Thank you
(There is a question asked a bit similar to my issue but there is no answer to it.)
You need to create a calculated field to do this.
In that pop-up box, you can create the formula you want.
Then add it to your pivot table.

How to process multiple choice answers from google forms in excel to pivot table

I'm processing a bunch of results from a google forms result spreadsheet into an excel spreadsheet (making nice graphs and charts) but I cannot figure out how to process the multiple choice question answers in the way google provides them.
In the image below you see some example results. The rows represent one person who filled in the form. The column name is the question itself and in the cells you'll see the multiple answers a person selected (checkboxes).
Now I would like to get an pivot table with the total percentage of times an answer is chosen.
I also made a small table with all the answer possibilities (see image below) but still can't figure out how to get the total number or percentage off occurrences of those answers in the other table.
Can someone tell me how to make this pivot table in a fast en efficient way, i have a lot more of these type of answers and questions to process so i can't go and type every possible answer in a table.
So this would be the desired result:
Thanks in advance!
Found the answer here:
Formula in Excel to count occurrences of substrings within strings
Basically, you need to search for a substring within a list of strings. This is the equation to use.
=COUNTIF(D2:D7;"*"&<answers>&"*")
I can't comment, but it sounds like you would benefit from using the Calculated Field feature of a pivot table. See this page Excel Pivot Table Calculated Field for more information. I would also suggest showing how exactly your data is stored. Is each answer in its own column? I hope so because that is much easier to deal with than the one column with the comma-separated Answer 1, Answer 2. Although, it's not too hard to create new formula-driven columns that separate the answers.
Back to the subject at hand, a formula in the Calculated Field would be something like:
Name: PercentageAnswer
Formula: =CountofQuestion/CountofPerson
Note that the Pivot Table should be formatted so that the rows are the "Question" header, with each row being an answer, and CountofPerson and CountofQuestion should be columns.

GetPivotData with a filter

I want to use several GetPivotData functions, retrieving data from the same Pivot table. I want each of them to retrieve different data based on a filter value.
For instance:
Get Pivot Data for Month:January
Get Pivot Data for Month:February
Where Month is a filter on the Pivot. Is this possible using a formula?
I hope this will solve your problem. Try this workaround from Microsoft:
https://support.microsoft.com/en-us/help/287736/getpivotdata-formula-is-automatically-created-when-you-try-to-create-s
When you change the month, the value changes too. But make sure that there are no hidden items (because if not, you won't get an accurate #/data).
see the screenshot below where the Month to choose is based on a cell reference as an argument in the GETPIVOTDATA formula:
Victor,
The Pivot tables won't work like you intend to. All data that your formula shall retrieve must be visible at the same time. I suggest that you arrange for some space on your worksheet and apply the solution proposed by Scott.
NB: If you want to deal with data added month by month, for example, there is an Pivot table option to automatically add new values to the filter. Then in your formula you can use IFERROR to show blank cells when there is still no data available.
Regards,
+Daniel+

Issues grouping in excel?

I'm having a little bit of trouble grouping dates in excel. I have created a pivot table that groups a bunch of dates between 3 months together. However, I want to take advantage of the refresh ability of pivot tables--the idea in which when you refresh your pivot table, it will update to whatever you added or took away from the source of data your pivot table is based on.
However, when I grouped the dates between three months together, I noticed if I don't add a date that exactly corresponds to the dates within the grouping, the picot table does not add that entry into the pivot table. For example, if my grouping had the following dates (between May and July) in it:
5/21/2013, 7/18/2013, 6/8/2013
And in my source data spreadsheet had the following date added to it:
5/2/2013
5/2/2013 would not be added to that specific grouping in the pivot table because it is not exactly like the other dates as stated above. I want it so that I can group all dates from 5/1/2013 to 7/31/2013 inclusively as opposed to the dates in the original grouping. Would anyone have an idea on how to do so? Thanks!
http://www.datawright.com.au/excel_resources/expanding_pivot_tables.htm
im curious as to how you are currently grouping them without adding new ones, there may be a way to work with what you already have especially if you are willing to incorporate some VBA
Provided your source 'dates' are not text Excel should be able to cope.
I fear (hope?) we were at cross-purposes about which "Group" to use. I meant the one that pops up (as on the left below) when right-clicking one of the Qtr headings in the PivotTable.
If you have access to add additional formulas in the data you could just calculate "quarter" in an additional column (reference here)
How can I obtain the year quarter from a date?
I tend to always make my groups in the rows of data like this, rather than attempt it using pivot groups. For example, you might also extract "year" with = year(A1) in the rows - so you can easily add it as a pivot row item later for grouping. If your data source is properly formatted as an excel 2007 "table" these kind of formulas will fill themselves downward when you paste new data.

When do Sharepoint Calculated Columns actually get calculated?

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.

Resources