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.
Related
Hi I'm still new to power query and I'm still trying to understand how it fully works.
The goal that I'm trying to achieve is to create a table that list my employee data (ID, name and location) from a database and adding several columns to the side for another department to fill in the details. Currently I have made this using a self referencing table.
However some of those added columns are using formulas to calculate certain values. I added these formulas in excel, not in power query. The reasoning for this is that the user can see the values update immediately after inputting in the columns. In doing so whenever my query is refreshed, these formulas will get overwritten with values, and when new values are added or changed the totals aren't updated.
I know I can add these formulas in power query, but this will lead to the values not updating automatically, unless it is refreshed after each input. I also tried adding the formulas as string in power query, but it does not change into a formula automatically, it needs to be entered in each cell to calculate.
Current excel setup, in here the first 3 columns are from original database, and the rest are added columns that users are manually inputting through here. And the final column contains the formula to total the values of each row automatically.
Any ideas or tips on how I should change this?
Edit1: By self referencing table I meant something similar to this. Where a column is added to the side of the table and is able to keep track to the corresponding ID.
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.
Not sure how to explain this properly, but I made a pivot table that contains a list of names and whether that person has the following documents: Estimate, Planning, and MS. On the pivot table it shows the value of the documents, if they have 1 or 2, or 0.
I made another spreadsheet that labels the 3 documents and the people. Based on the pivot table, I need a formula that will mark an X where the document exists (instead of having to manually put an X)
I hope I am explaining correctly!
Thanks
Assuming I've understood your requirements, you can do that directly in a PivotTable using a Custom Number Format, which looks like this:
You get to the Custom Number Format dialog this way:
...and once there, add a Custom Number Format of x;;;
Apologies for the confusing question title, I wasn't sure how to describe the problem.
Background and objectives:
I have a large dataset in Excel, near 1 Million rows.
I have a key field (not primary cause there's duplicates).
The key field will become the primary key field in a new table.
For every row with the same key field in the original dataset, I need to:
Find the max of one of the columns
See if a text string exists in one of the columns
Then I'd like to put the key field, the corresponding max, and the corresponding result of the text search into a new dataset in one row, 3 columns.
A VBA or PivotTable solution is acceptable. Given the size of the dataset, code efficiency/memory management is critical.
Thanks in advance, any kind of help would be appreciated!
Use a pivotTable, "Key" field dragged to the row labels and in the "Values" section, put in the columns that you want to determine the MAX. Go to Value Field Settings -> Summarize Value field by, set it to "MAX"
I'm closing this since I was able to solve the problem with everyone's help.
In case someone hits this in the future, I didn't discover how to run formulas against text fields with pivot tables, but I calculated a numerical value in another column in the original dataset and was able to use that.
Thanks!
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.