Sorting a conditional list column doesn't roll up same results?
I have a list with a column that adds the data of some other columns.
When I look at the list in Standard View, and click on the column heading to sort, the dropdown looks like:
Smallest on Top
Largest on Top
Clear Filter...
0
0
0
1
1
2
2
2
2
etc
Why wouldn't it be rolling up same output? And how to fix?
Thanks,
Scott
The average is also called the mean. To calculate the average of numbers in two or more columns in a row, use the AVERAGE function.
COLUMN1
COLUMN2
COLUMN3
FORMULA
DESCRIPTION (RESULT)
6
5
4
=AVERAGE([Column1], [Column2],[Column3])
Average of the numbers in the first three columns (5)
6
5
4
=AVERAGE(IF([Column1]>[Column2], [Column1]-[Column2], 10), [Column3])
If Column1 is greater than Column2, calculate the average of the difference and Column3. Else calculate the average of the value 10 and Column3 (2.5)
I tested in my local environment,it is giving average value only.Please check the same thing in another list.
If your number contains N/A value, then check the below article
http://sharepoint.stackexchange.com/questions/67678/sharepoint-2007-calculated-column-formula-for-calculation-based-on-column-con
Similar Messages
-
The same selection doesn't return the same result in 2 identical systems
Hi,
After a copy we have 2 systems with same data.
In a program the same selection doesn't returns the same result, it seems that the sort is different.
I have checked indexes but they are ok in both systems.
Here is the selection:
SELECT but000~partner
INTO TABLE lt_partner
*UP TO 50 ROWS
FROM but000
JOIN but020
ON but020partner = but000partner
JOIN adrc
ON adrcaddrnumber = but020addrnumber
JOIN but100
ON but100partner = but000partner
WHERE but020~addr_valid_from LE '20100727000000'
AND but020~addr_valid_to GE '20100727000000'.
Is there a customizing point to define how the database must be sorted ?
Thanks.
Edited by: julien schneerberger on Jul 27, 2010 4:18 PMHi,
Thank you for your answer.
Result is the same and I don't sort data after the selection.
Do you think the system copy has "broke" the records order in database ?
If it is the case it will be impossible to reproduce the same sort, is it right ?
Edited by: julien schneerberger on Jul 27, 2010 5:19 PM
Edited by: julien schneerberger on Jul 27, 2010 5:20 PM -
In list view: Why don't searches include results from the Collections field? Why won't the Collections column sort properly?
I create a new index on column2, (INDEX_N3)
and change SQL to
select 1 from table T1 where
T1.COLUMN_002 = '848K 36892'
This time INDEX_N3 will be used.
but change SQL to
select 1 from table T1 where
T1.COLUMN_002 = '848K 36892'
and T1.COLUMN_004 = '1000'
The explain plan will show full scan.
Why?
Thanks. -
Custom list column not showing up in View Order by or Group by dropdown list
Hi All,
I have created a custom list with a custom column called "Description". Some items in the list do not have a description. What I wanted to do is create a view where the items with a description show first, and the items with no description are
at the bottom of the list. I thought I could make a simple view that uses the Order by or Group by on the description column.
The problem I am having is the description column doesn't show up in the dropdown list for either Order by or Group by within the custom view. Can someone please tell me why this happens and if there is anything I can do to rectify this problem.
I hope you can help
ColinHi,
I believe the "Description" field type is Multiple Lines of Text. Sorting doesn't allow in this field type. In order to do the sorting, you would require to create additional column like single line of text column (note that it supports only 255
chars and require to truncate the data if more than 255) and update the data using event receiver or workflow. and do the sorting with that column.
kmhsad -
like the title says, under these condition (note that an item arrangement must be selected) the “right sized” to the maximum width, necessary to display the longest item in the column, doesn't works even with a double click or choosing "Right size this column" option (in both cases the column is set to the default size).
Anyone else experience this issue?You understand me well, sorry I'm not native English.
Have you selected an item arrangement? if I select "None" it works for me too, the issue is when I select an item arrangement (arrange by Kind for example).
My setting:
Finder > View > Show View Options:
- Always open in column views: SELECTED
- Browse in column view: SELECTED
- Arrange By: Kind
- Sort By: Name
- Text size: 12
- the "three show" SELECTED
Under the above conditions I've the issue, the column isn't resized. -
Sort order in list wrong: in CAML and in view
Hello,
When I order my list with document sets by ID, the order is wrong. It is wrong in the list and with caml.
This is my view (I just set the sort on the ID column):
The first 4 objects are created by the Client Object Model; the last 4 are created by a SharePoint webpart that I developped myself...
My code for creating document sets in COM is something like this:
ListItemCreationInformation newItemInfo = new ListItemCreationInformation
UnderlyingObjectType = FileSystemObjectType.Folder,
LeafName = _strLeafname // = date in format YYYYMMDDhhmmss
ListItem newListItem = myList.AddItem(newItemInfo);
newListItem["ContentTypeId"] = targetDocumentSetContentType.Id.ToString();
newListItem["Title"] = title;
newListItem.Update();
clientContext.Load(myList);
clientContext.ExecuteQuery();
The code in the webpart is this:
SPContentType docsetCt = myLst.ContentTypes[p.GetFromResourcefile("xxxxxxxxxxxxxx")];
Hashtable properties = new Hashtable
{"DocumentSetDescription", ""},
{"Title", txtTitle.Text}
SPFolder parentFolder = myLst.RootFolder;
int newId = GetLastId(myLst) + 1;
DocumentSet ds = DocumentSet.Create(parentFolder, newId.ToString(CultureInfo.InvariantCulture), docsetCt.Id, properties, true);
ds.Item["Title"] = title
ds.Item.Update();
why is the sort order wrong?
if i do this query in the U2U Caml builder, the order is also wrong
<OrderBy><FieldRef Name='ID' Ascending='FALSE' /></OrderBy>
if i order by "created", the order is also wrong....
i don't get it....Document Sets are great tools for grouping multiple documents together. However, if every set has exactly one document, it would be better to just upload the file and not place it within a Document Set:
Uploading documents using object model - http://msdn.microsoft.com/en-us/library/office/ms454491(v=office.14).aspx
Uploading documents using web services -
http://cecildt.blogspot.com/2010/10/upload-documents-to-sharepoint-2010.html
If you have requirements to use Document Sets, keep in mind that this adds a layer of complexity beyond a simple Document Library. Behind the scenes, each Document Set is treated as a separate folder, and although can you query items within it, there might
be extra steps for getting the sort order to ignore the folder structure. Can you try setting the Scope to be "Recursive" and also specify that you are looking only for files and not folders:
<Eq><FieldRef Name='FSObjType'/><Value Type='Lookup'>1</Value></Eq></Where>
Dimitri Ayrapetov (MCSE: SharePoint) -
Can I perform a lookup to verify the value of a variable is contained in another list column?
I am working in Sharepoint Designer and am trying to figure out how I can set a condition in an approval workflow to only complete a task if the value of a variable is contained in another list column. So if I had a list called A with column
A1 and I am working in the approval workflow, I only want the approval to complete if my variable is equal to any value in list A column 1. Otherwise I want to keep the approval task pending. I am very new to sharepoint so any help would be appreciated.
Thank you.Hi,
You can use the condition "if any value equals value". Please refer below links for reference.
http://office.microsoft.com/en-in/sharepoint-designer-help/workflow-conditions-in-sharepoint-designer-2010-a-quick-reference-guide-HA010376962.aspx
http://www.codeproject.com/Articles/125120/Step-by-Step-Guide-in-Developing-your-own-Workflow
Best Regards,
Pavan Kumar Sapara.
Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem.
s p kumar -
DB Tools List Columns.vi Error code -2147217865
Using DB Tools List Tables.vi I can sucessfully display the tables in the database. However when I attempt to read the colums from a existing table I get the following error -2147217865.
Conn Execute.vi->DB Tools List Columns.vi->Untitled 1<ERR>Exception occured in Microsoft OLE DB Provider for ODBC Drivers: [Microsoft][ODBC Microsoft Access Driver] The Microsoft Jet database engine cannot find the input table or query 'Department'. Make sure it exists and that its name is spelled correctly. in Conn Execute.vi->DB Tools List Columns.vi->Untitled 1
What I found was that if a space was used in the name of the table I get the error. example "Forms List". If I changed the name of the table to "Forms_List", I am able to read the columns. My problem is that the database already exists with many table names that include spaces. If I rename a table the relationships are all deleted.
Anybody know a easier way than to redo the access database?The problem is that names in databases should not have spaces. Table names, column names - no spaces... To make matters worse, different DBMS use different delimiters. Some use double quotes, some (like Jet) use square brackets. It can get messy very fast. How many tables do you have that have "bad" names in them? If you created the databases originally, you might be money ahead to recreate the database with good names and write a small program to transfer all the data to the new tables.
Mike...
PS: This sort of situation is why I always recommend that you don't create tables interactively. Take the time to write the SQL scripts to allow you to edit and recreate the entire database if necesary. Alternately, Oracle distributes (for free) a tool called Data Modeler that has a nice interface for defining database structure and can then generate the SQL scripts for you in versions that are compatable with several major DBMS.
Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion
"... after all, He's not a tame lion..."
Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps -
How to open a hyperlink in a list column in a modal window
Hi guys,
I have a custom list with a custom column in which a workflow copies the URL of workflow task.
If I open that task with the same URL from the Title field in the workflow task list, the task opens in a modal window.
But if I open that URL from a custom hyperlink column in a custom list, it opens in the same main window, not in a modal window.
How can I achieve, that also in the custom list the task item opens in a modal window?
Is there any way e.g. with javascript?
I hope someone can help me!
Thanks in advance
matxxx
Forgot an additional info: The custom column doesn't have to be a hyperlink column. Also rich text would be fine as long as the link is opening in a modal window afterwards.Refer to http://social.technet.microsoft.com/Forums/en-HK/sharepoint2010programming/thread/8ca275df-1d9c-4d0f-a624-c0531fda069a
-
What I want to do is make a Linked List that has options.
1. Allows Duplicates & Non Sorted
2. Allows Duplicates & Sorted Alphabetically
3. Allows Duplicates & Sorted Reverse Alphabetically
4. Doesn't Allow Duplicates & Non Sorted
5. Doesn't Allow Duplicates & Sorted Alphabetically
6. Doesn't Allow Duplicates & Sorted Reverse Alphabetically
sortOrder and duplicate are my global variables controlling those two options.
Reverse alphabetical and alphabetical will just be opposites.
I've got the duplicates or non duplicates part working as well as non-sorted part.
public void add(Object obj){
// post: appends the specified element to the end of this list.
Node temp = new Node(obj);
Node current = head;
Node hold = head;
// starting at the head node, crawl to the end of the list
//Takes care of duplicates
if (!duplicate) {
if (lookup(obj)) {
return;
System.out.println("OBJECT: " + obj.toString()); // See what I am passing
if (sortOrder==0) { //non-sorted
while(current.getNextNode() != null) {
current = current.getNextNode();
// the last node's "next" reference set to our new node
current.setNext(temp);
if (sortOrder<0) { // decreasing
while(current.getNextNode() != null) {
current = current.getNextNode();
System.out.println("CURRENT: " + current.getData().toString()); //Where I am sitting in the list
System.out.println("IF STATEMENT: "+ obj.toString().compareTo(current.getData().toString())); // Where the object sits alphabetically to current
if(obj.toString().compareTo(current.getData().toString())>0) {
hold.setNext(temp);
temp.setNext(current);
System.out.println("Object is closer to z Alphabetically");
return;
// the last node's "next" reference set to our new node
/* if (sortOrder>0) { // increasing
while(current.getNextNode() != null) {
current = current.getNextNode();
System.out.println("CURRENT: " + current.getData().toString());
if (obj.toString().compareTo(current.getData().toString())<0){
// the last node's "next" reference set to our new node
temp.setNext(current.getNextNode());
current.setNext(temp);
return;
}humer015 wrote:
What I want to do is make a Linked List that has options.
1. Allows Duplicates & Non Sorted
2. Allows Duplicates & Sorted Alphabetically
3. Allows Duplicates & Sorted Reverse Alphabetically
4. Doesn't Allow Duplicates & Non Sorted
5. Doesn't Allow Duplicates & Sorted Alphabetically
6. Doesn't Allow Duplicates & Sorted Reverse AlphabeticallyI'd set up 4 separate collections with the correct characteristics (6 if you think you need to keep the 'reverse order' versions separately). Remember, having 6 lists doesn't mean 6 sets of data; just 6 arrangements.
sortOrder and duplicate are my global variables controlling those two options.Sounds like an implementation decision before its time to me, unless it's dictated by programs that you have no control over. Get your lists working and then decide how you want to implement your system parameters.
HIH
Winston -
Validate list column based on entry from another column
Hi there
I would like to ensure that a value is entered in list column B, if there is a value of 'Yes' in list column A.
I assume this formula is entered in the Validation settings of the list, but cannot work out what is required.
Is it something like? =IF([Col-A]="Yes",IF(LEN([Col-B]<1,TRUE,FALSE),TRUE)
Thanks
Asher
Fast, Cheap, Good. Choose any Two!Ahh, found a solution:
=IF([Col-A]="Yes",IF([Col-B]<>"",TRUE,FALSE),TRUE)
Now i need to do the same for other fields in the list, and these formulas must go together in the validation settings of the list, which is going to look messy.
If i want to do the same with columns C and D, how would i append this to the formula?
=IF([Col-C]="Yes",IF([Col-D]<>"",TRUE,FALSE),TRUE)
Thanks
Asher
Fast, Cheap, Good. Choose any Two! -
Sorting singly linked list with minimum time complexity
Hi ...
anyone could tell me how can i sort singly linked list with minimum time complexity .... ????
Regards...By MergeSort or QuickSort O(n log n). But then you
have to first extract the objects in the list,sort
them, then rebuild the list. But it will still bealot
faster than by keeping the list linked.Technically, I believe insertion sort is marginally
faster for small n ( <20 or so).Woohoo! So for 20 out of the possible 2147483648 array
sizes Insetion is faster!
Unfortunately, checking for that case probably wastes
all the time you get from using the faster sort...
That would depend on the actual distribution off array sizes. So it's an engineering decision.
Sylvia. -
Is there a way to know if my Content Type's fields are a Site columns or List columns
I am totally confused about Site columns, list columns and content types. as seems i will have the same column name , sometimes dealt with as site column while the other as list column. for example i created a new Issue tracking list which comes with the
following columns:-
now i realize that the Description column is a list column (not site column) because if i rename the site column named Description, this list column will not get affected, while column such as "Issue status" is a site column because if i rename
the site column named "Issue Status" the column inside the "Issue" content type will get affected. while there are two site columns named Description but none of them are used insidie the "Issue" content type, and the Description
field in the above picture is a list column !!
so can anyone advice from where i can differentiate if a column inside the Issue content type is a site column or is a list column ???
ThanksHi John,
Thanks for posting your issue, Kindly browse the below mentioned URL to identify the site columns and Content Type in your Top level site
http://www.kalliance.com/blog/tips-tutorials/microsoft/identifying-site-columns-content-types/
I hope this is helpful to you, mark it as Helpful.
If this works, Please mark it as Answered.
Regards,
Dharmendra Singh (MCPD-EA | MCTS)
Blog : http://sharepoint-community.net/profile/DharmendraSingh -
Combine 2 different list columns and showning in 1 column
Hi,
Is it possible to combine columns of 2 different lists and show in one column?
I have a custom list called "Levels" which contain data like "Developer", "Tester". The levels have some training associated. Training is another column.
I have another custom list called "Project", which contain "project name" and also some training for each project. Training is another column.
I have another list in which i have user names which contain the level and project name columns as look up.
I want to show all the trainings attached to the user in another list in a single column.
Example: If user is a developer and part of project A, then column named training should show all the developer training and the project related training.
Note: custom coding is not possible.
How to achieve this?
ThanksHi,
For your issue, you can combine 2 different list columns into one cloumn using SharePoint Desinger Workflow with update list item action:
Best Regards,
Eric
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
[email protected] -
Protect Condition Value Column in VA01
I have a security problem on my sales orders: If somebody adds a line and enters the discount Z condition and some number on the value column, SAP updates the Order without going thru the regular checks of discount limit which it does on the amount column.
What I want is to put an if to check if the Amount column its 0, to delete the number on the condition value column, I have tried with ' ' but the value turns to cero and it does not show an error.
Here its the code:
IF xkomv-kbetr = 0.
MOVE '' TO xkomv-kwert .
MODIFY xkomv INDEX sy-tabix.
ENDIF.
Regards,
Carlos
Edit: or if somebody knows how to make screen input = 0 (gray) for the Value Column that would be great.
Edited by: Carlos Salazar on Jul 9, 2010 4:09 PMturns out 0 its correct as it will not get saved.
Maybe you are looking for
-
Difference between Primary Key and Unique Key with NOT NULL constraint
As both can be referred to another table. Apart from the difference that Primary Key can be only 1 and Unique keys can be multiple, is there any difference? Like in terms of type of Index?
-
Reversal of Asset accounting document in different fiscal years
Hello All, i have one query where the user has scrapped the assets through T code ABAVN in the month Dec 2009 with doc date of Nov 30th 2009. Now he realised that the posting was wrong and he wants to reverse it in 1st of Jan 2010. Now system is givi
-
Problems Restoring From Disc Image
Hello Support Community I'm attempting to replace a suspected failing HD on my G5. I made a disc image of the suspected drive in disc untility, and have it on an external drive. I purchased a 500GB WD Cavier Black HD for my new drive. I removed th
-
iTunes, Safari and Twitter for Mac were the only applications running when it started to beep. I panicked and I immediately closed all the applications and shut the thing down. I started it up again and the sound was gone. What's the problem? Why did
-
2WIRE Interfering with my wireless connection through Airport hub
I live in a condo in the downtown area. I use cox communication as my internet provider. Because this is a condo located around other condos my wireless connection stops as soon as someone turns on their 2WIRE wireless router. In fact, even if I use