Calculated Column-Make a copy of another column

I need to create a column whose value would be calculated based on another 2 columns. I would appreciate help in the syntax
MyCol=Col1TextCol2Text
When I try to use the followiing formulae, I get error:
The formula contains reference(s) to field(s).
I am using the formulae: =[Column1]&[Column2]
Thanks
Farida

If you want to put the two together, you can do:
=CONCATENATE([Column1],[Column2])
Andy Wessendorf SharePoint Developer II | Rackspace [email protected]

Similar Messages

  • How to concatenate values from one form to another form using calculated columns in sharepoint?

    Im new to Sharepoint.
     I need to know , how to fetch the x1 , x2 values from one form to another form x1, x2 fields, this wants to happen when 2 forms ID fields(Drop down field) are same.
    ex:
    first module I have 3 fields like, "Marketing ID" , "Company name" , "Vendor name".
    second module I have the same related fields like "Marketing ID" , "Company name" , "Vendor name" and some more fields.
    now i need to fetch the information from 1st module to 2nd module ( "Company name" , "Vendor name" ) when I select the Marketing Id(Drop down - field) 
    it should be want to show in Calculated columns.
    Can someone make a suggestion on how I can do this.
    Thank you so much for any help you may be able to provide.
    Sincerely
    Ahalya Babu

    Calculated Columns can only generate a value from fields of the current item. And only some types of fields (for example, it can't use a lookup column).
    Consider using a workflow to accomplish your goal.
    Scott Brickey
    MCTS, MCPD, MCITP
    www.sbrickey.com
    Strategic Data Systems - for all your SharePoint needs

  • SharePoint 2013 Make Calculated Column based on Custom Column

    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 (link below), but creating the Site Column and Calculated Column
    before adding it to the Content Type did not work for me. 
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/26a7517e-ba43-4c49-95aa-3e6f7f4207ba/calculated-field-in-content-type-not-working
    Anyone out there know how to coax SharePoint into submission?!

    Multi lines of text are one of the types of columns which can't be used by calculated columns/fields. Among such unusable columns are also Lookup columns, People columns, External Columns, MMS columns, etc.
    Scott Brickey
    MCTS, MCPD, MCITP
    www.sbrickey.com
    Strategic Data Systems - for all your SharePoint needs

  • How to Make Calculated Column Hidden

    I've created a few calculated columns; when I try to make them hidden (not to show on the View form), the options are not clickable:
    The calculated columns that were created before the site migrated from 2010 to 2013 are still clickable.
    What I am missing?
    Thanks,
    -Oleg

    Maybe this might help
    http://social.msdn.microsoft.com/Forums/office/en-US/4c07a7fc-d80b-4b3a-b3df-bd3e869ac606/set-a-calculated-column-as-hidden-in-a-content-type?forum=sharepointgeneralprevious
    Thanks, Ransher Singh Click "Vote As Helpful"! if you think that post is helpful in responding your question click "Mark As Answer, if you think that this is your answer for your question.

  • Using a calculated column to pull a string from another column

    Ok let me try to explain my situation. I have a column with multiple paragraphs or text. I want a calculated column to only pull the top paragraph. This break between paragraphs would be an <Enter>. Nothing else. Is there a way to signal pull this
    string but break at the <enter>.
    I don't think it is. But thought I'd ask.

    Yes, you can do this. But you need to use the CEWP and jQuery. Refer to the following post for more information
    https://www.nothingbutsharepoint.com/sites/eusp/pages/taming-the-elusive-_e2_80_9ccalculated-column_e2_80_9d-referencing-multiple-lines-of-text-column.aspx
    http://stackoverflow.com/questions/10486939/jquery-show-only-first-paragraph-of-each-article
    --Cheers

  • How to improve slow PowerPivot performance when adding/modifying measures, calculated columns or Relationships?

    I have been using PowerPivot for a couple of months now and whilst it is extremely quick when pulling in data to populate Pivot Tables, it is extremely slow to make the following kind of changes to the Data Model:
    - Add a Measure / Calculated Field
    - Add a Calculated Column
    - Rename a Calculated Field
    - Re-name a Calculated Column
    - Modify a relationship
    - Change a tables properties
    - Update a table
    In the status bar of excel I get a very quick 'calculating', then it spends a lot of time 'reading data',
    then it 'finalises' after which nothing is in the status bar but it still takes approx. 45 seconds before the program becomes responsive again. This waiting time does not change depending on the action, it is the same if I rename a
    column as it is if I add a new measure.
    My question is what affects performance of these actions and how do I improve it?
    To give you an idea of where my data comes from, I have:
    - 7 tables that feed into the Data Model directly from within the workbook which contains the data model itself. These are a combination of static tables and tables that connect to a MySQL database.
    - 6 separate workbooks which contain static data that is updated manually periodically (copied and pasted from another source)
    - 5 separate workbooks which contain dynamic tables that are linked to our MySQL database and update when opened.
    Now I realise that this is probably where my issue is, however I have no idea how to fix it. You do not seem to be able to connect to a MySQL database directly within the PowerPivot window itself so there is no way to generate and update tables without
    first creating them either in a worksheet or separate workbook (as far as I know).  If I try to create all of the tables directly within the single workbook containing the Data Model I get performance and crashing issues hence why I separate tables into
    individual workbooks.
    Any advice on how to improve performance would be tremendously appreciated. I'm new and keen to learn, I'm aware this set-up is far from best practice.
    Hardware wise I am using:
    - Windows 8 64-bit
    - Excel 2013 64-bit
    - Intel Core i7 processor
    - 6 GB Ram
    Thanks,
    James

    Darren,
    I think the point I was making is its in memory, geez... BTW what do all applications do when they run out of paged memory,  if PowerPivot is using all available memory then wouldn't this force the other applications to use Virtual or essentially write
    back and forth to the disks? I think Virtual memory white to disk ??, lol Also, there are parts if the architecture of Excel 2013 that when importing data into PowerPivot require memory and when working in SharePoint the PowerPivot data is cached to disk
    unless recently refreshed... But this conversation isn't help the James who asked the question and as much as I would love to continue its become a little boring..
    Hi James,
    If you download one the ODBC MySQL Connectors
    http://dev.mysql.com/downloads/connector/odbc/ and I believe yours is the first one for x64 systems and connect directly to the data you should be able to reduce the number of workbooks your opening and if you notice in the following graphic these
    connection are automatically refreshed by default, the parts in red are the differences between PowerPivot 2010 and 2013
    You should notice a lot of improvement especially when refreshing data please let us know how it goes...
    After registering the ODBC Driver
    Click Add. on the User-DSN sheet, choose the “MySQL ODBC 5.x driver”, fill in the credentials, choose a database (from the select menu) and a data source name and you’re done.
    Back in Excel you go on the PowerPivot section of the ribbon and open the PowerPivot window  (the green icon on the left side). In the ‘Home’ section of that window you will see a small gray cylindrical symbol (the international
    symbol for “database”) which will suggest to you different data sources to choose from. Take the one where it says “ODBC”.
    In the next dialog you click on create, choose the adapter, and then Ok. Back in the assistant you can check the connection and proceed.
    Now you have the choice between importing the data from tables using the import assistant or Query depends on your skillset..
    Cheers,
    Ivan
    Ivan Sanders <a href="http://www.linkedin.com/in/iasanders">My LinkedIn </a> , <a href="http://msmvps.com/blogs/ivansanders">My Blog</a>, <a href="http://twitter.com/iasanders"> @iasanders</a>,
    <a href="http://shop.oreilly.com/product/0790145372703.do">BI in SP2013</a>, <a href="http://sharepointdemobuilds.codeplex.com">SP2013 Content Packs</a>.

  • Including both the Jquery script to calculate the total of calculated column and freeze header row

    Hi
    I managed to get this code from here,
    http://techtrainingnotes.blogspot.in/2013/03/freezing-title-row-of-sharepoint-2010.html done on the page 
    I also managed to get this code from here, http://www.sharepointed.com/2012/11/28/jquery-total-calculated-column-in-sharpoint-2010/ done on another page.
    However, I need this to be done on the same page. When I do this, I only get the freeze header thingy to be up and not the calculated column. Could something be blocking. 

    Hi,
    You take the code below for a try in your environment after modified it a bit to suit the structure of your page:
    <script type="text/javascript" src="../../SiteAssets/js/jquery-1.10.2.min.js"></script>
    <script type="text/javascript">
    // update the list after the page has loaded
    _spBodyOnLoadFunctionNames.push("TTNListScroll");
    function TTNListScroll()
    // Scrolling list code from TechTrainingNotes.blogspot.com
    // Edit the next line with your list's summary name
    var SummaryName = "List28_frozenheader ";
    var TTNmyTable;
    var TTNListDiv = document.createElement('div');
    var TTNHeadingDiv = document.createElement('div');
    var tables = document.getElementsByTagName("table");
    for (var i=0;i<tables.length;i++)
    if(tables[i].summary == SummaryName)
    TTNmyTable = tables[i];
    break;
    if(TTNmyTable == undefined)
    // // Table not found!
    // you may want to comment out the next line after testing
    alert("table '" + SummaryName + "' not found");
    return;
    // make a copy of the table for the heading area
    TTNHeadingDiv.appendChild(TTNmyTable.cloneNode(true));
    TTNHeadingDiv.id="TTNheading";
    TTNListDiv.appendChild(TTNmyTable.cloneNode(true));
    TTNListDiv.id="TTNlist";
    TTNListDiv.width="100%";
    // udpate the page
    var TTNnode = TTNmyTable.parentNode;
    TTNnode.replaceChild(TTNHeadingDiv, TTNmyTable);
    TTNnode.appendChild(TTNListDiv);
    // hide the heading row of the main list
    TTNListDiv.childNodes[0].rows[0].style.visibility='hidden';
    // make the DIV for the heading the same width as the main list
    TTNHeadingDiv.childNodes[0].style.width = TTNListDiv.childNodes[0].offsetWidth;
    getSum(3);
    //pass the column number to this function
    function getSum(col)
    var m = "$"; //change to "" for non-money format
    var arrayList = $("table.ms-listviewtable:first> tbody> tr:gt(0)").find(">td:eq("+col+")");
    var x = 0;
    var p1 = "";
    var p2 = "";
    $.each(arrayList, function(){
    //console.log('$(this).text(): '+$(this).text());
    x += Number($(this).text().replace(/\$|,|\)/g, "").replace(/\(/g,"-"));
    //console.log('x: '+x);
    //format for negative numbers
    if (x < 0)
    p1 = "(";
    p2 = ")";
    x = Math.abs(x);
    $('#diidSortcal').attr('visibility','visible');
    $('#diidSortcal').text($('#diidSortcal').text()+'(sum: '+x+')');
    function addCommas(nStr)
    //formats number
    nStr += '';
    x = nStr.split('.');
    x1 = x[0];
    x2 = x.length > 1 ? '.' + x[1] : '';
    var rgx = /(\d+)(\d{3})/;
    while (rgx.test(x1))
    x1 = x1.replace(rgx, '$1' + ',' + '$2');
    return x1 + x2;
    </script>
    <style type="text/css">
    #TTNheading
    height:28px;
    #TTNlist
    height:200px;
    overflow-y:scroll !important;
    overflow-x:auto
    </style>
    Then you might get something like this:
    Feel free to reply if there are still any questions.
    Best regards
    Patrick Liang
    TechNet Community Support

  • SharePoint Designer 2010 Error occurs when accessing Edit Form: "The server returned a non-specific error when trying to get data from the data source ..." This occurs when using "" in a calculated column in a SharePoint List

    I created a calculated column "Expiration Date" in SharePoint 2010 with formula, =IF([Contingent Hire]=TRUE,(Created+90),(IF([Contingent Hire]=FALSE," ")))
    This works in the SharePoint list but when I go to edit the Edit Form in Designer. I get the error specified in the title of this post. I'm trying to make it so the Expiration Date is blank when another column, "Contingent Hire" (a YES/No
    column) is FALSE.
    The Edit Form is essentially a DataViewWebpart. If I remove the " ", like so, "(IF([Contingent Hire]=FALSE,))" from the calc column, the error goes away; however, the Expiration Date field does not
    remain blank like I want it to.
    Does anyone have any suggestions? (Below is the error generated when I open Designer and then try to open the Edit form for the corresponding list containing the calc column)
    JackSki123

    Hi Jack,
    Could you provide a screenshot about this issue?
    As Dimitri suggested, you can install the update for your SharePoint Designer and check again.
    And you can also check if you can display "NA" instead of " " in your calculated column per the following post.
    http://rajeshspillai.blogspot.in/2012/03/server-returned-non-specific-error-when.html
    Thanks
    Daniel Yang
    TechNet Community Support

  • Calculated column shows all zeros in cross tab discoverer report

    Hi
    I have a calculated column in a cross tab report which shows all zeros, but when i duplicate the report as 'table' the calculated colun is getting populated.
    i did not understand why it is doing like that, are there any special privileges or any special settings required for creating a cross tab report.

    Hi,
    No there is no special privs for cross tab but there is an aggregation issue.
    There are some methods of aggregations used in the discoverer.
    First thing you can so is to make sure that in the cross tab sheet you use the detailed data points and that you are not combining different levels of aggregations (for example one amount in details and another one summed).
    Second thing you can try is to change the aggregation for this worksheet, you can do that by going to the worksheet properties to the aggregation tab and try to change the settings.
    Third thing is to check the pref.txt file in the application server and set "AllowAggregationOverRepeatedValues" to 1
    BTW also search your data and find whether you got NULL values in the aggregated items, if so then wrap the data points with NVL function.

  • Calculated Column using IF statement with DATEIF formula

    I have a dated column that includes a date when a position is vacated otherwise the field is blank if the position is still filled. I want a calculated column to return the number of days the position has been vancant from the date that is listed to today.
    So the following was entered & works.....
    =DATEDIF([Vacancy Date],Today,"d")
    The delima is that it is also returning a value when there is no date in the dated column but it returns a funky number 42,069. What I want it to return when the dated column is blank is blank or zero would work too. I don't know how to incorporate that
    into this formula.

    You are correct it no longer reads that column as Today.... So is there anyway to make this a calculated column for my purposes?
    I'm going to use SharePoint list for a Position Pool & managing positions within a large department. What I'm attempting to do with this column is have a current count of the number of days since a position has been vacant. Our system that I pull the
    position data from will give me the vacancy date for those positions & where the position is filled the date field will be blank. So I'm wanting this column to return a 0 when the position is listed as filled & the number of days vacant based on the
    vacancy date column I have. Is there any way to make this work in SharePoint? Obviously I can make that work in Excel however my task was to load raw data into SharePoint & have SharePoint do the work if possible with little to no human intervention prior
    to loading to SharePoint.
    Thank you,
    MMHagman

  • DAX - IF statement and filters within calculated column

    Hi all,
    I've got a bit of a complex formula I'm trying to run, but I'm not quite there yet.  I don't know where/how/if I can place a filter within my IF statement for a calculated column due to so many variables.  I either get errors or wrong numbers. 
    Hope the following makes sense. 
    Here is my formula for the calculated column [Years Since Last Task]:
    =IF (ISBLANK([Last Task Date]) && ([Current Role]<>BLANK()), DIVIDE([Quarters],4), FLOOR(1. * ( today() - [Last Task Date]) / 365, 0.25))
    Problem:  I am getting "114.25" for Ken....but I want a blank result instead.  Meaning, I need to also filter out any name (row) who has a blank [Current Role].  How do
    I add a filter to this current formula?  Is one more step of filtering possible in this IF statement?  (Maybe I shouldn't use an IF statement, and try CALCULATE instead?)
    Below is the table 'Work' for you to see what's happening.
    Name
    Quarters
    Last Task Date
    Current Role
    Years Since Last Task
    John
    1
    1
    0.25
    Mike
    4
    2/7/2011
    3
    3
    Todd
    5
    4/20/2009
    4
    5
    Jeff
    9/1/2013
    3
    0.5
    Ken
    0
    114.25
    Steve
    2
    12/3/2011
    2
    2.25
    Nate
    2
    1/1/2014
    2
    0.25
    Greg
    1
    8/11/2013
    1
    0.5
    Ross
    4
    11/9/2010
    4
    3.25
    Hope all this made sense.  Let me know if you have any thoughts.
    Thanks,
    ~UG1

    you can use nested IF-statements here:
    =IF (ISBLANK([Current Role]),
    BLANK(),
    IF(ISBLANK([Last Task Date]),
    DIVIDE([Quarters],4),
    FLOOR(1. * ( today() - [Last Task Date]) / 365,0.25)
    hth,
    gerhard
    Gerhard Brueckl
    blogging @ http://blog.gbrueckl.at
    working @ http://www.pmOne.com

  • Need help with a calculated column - is there any way to reference a value in the current row?

    Hey guys,
    I'm a bit of a DAX newbie, and I'm running into a block. I'm creating a Power View report about IT tickets. We are going to be creating a cube to automate the data soon, I'm currently working with a flat Excel Data Table of data to demonstrate the Power
    View reporting capabilities to the team. I need the default display to show the top 4-5 items basked on the Ticket Count. The three applicable columns I'm using are the TicketID, the ContactReason, and the AssetCategory - all three are
    text. One slide will show the top five Contact Reasons by Ticket Count, and the other will show the top five Categories by Ticket Count. The users will see this default view, but will be able to change it to see differently ranked items or can clear the
    ranking slicer altogether.
    What I've accomplished so far is to create the Calculated Field [Ticket Count] = COUNTA(Table1[TicketID])
    And 2 other calculated fields:
    [Contact Rank] = RANKX(ALL(Table1[ContactReason]),[Ticket Count],,,DENSE)
    [Asset Rank] = RANKX(ALL(Table1[AssetCategory]),[Ticket Count],,,DENSE)
    If I were creating a Pivot Table, this would be great. These fields calculate everything the right way. The problem is, I need to have a Rank slicer on each slide and the calculation by itself contains no data - with no data, there's nothing to slice. I
    realized I need to actually have columns of data so I can create a slicer. I need each row of the table to show the same [Contact Rank] for every instance of a particular ContactReason (and the same for the [Asset Rank] and AssetCategory).
    The RANKX formulas pasted into the Calculated Column section only show a value of 1 - with no Pivot table summarizing the fields, it's counting each row's ticket once, giving every line the tied Rank of #1.
    I've solved the problem in Excel by creating 2 Pivot Tables on a separate sheet that have the data field and the calculated field for ContactRason and AssetCategory. Then on my Excel Data Table, I've added two columns that do a VLOOKUP and pull over a the
    Calculated Rank from each Pivot Table that match the ContactReason and AssetCategory fields. This works on the flat Excel Data Table now, but will not be a solutions when we start pulling the data from the cube (and there is no flat table).
    What I think I need is an Expression for the RANKX formula that can give me, for each row, the count of all of the times a ContactReason shows up in an entire column. There's only about 100,000 lines of data and each ContactReason or AssetCategory
    may show up several thousand times. But if I can get the expression to return that count, then the RANKX formula should work in the Column. If it wasn't a DAX formula, I'd use a COUNTIF and say 'Count the entire ContactReason column anytime it's equal to the
    ContactReason on THIS row', but in DAX I don't know how to reference a single value in a row. I've tried the CALCULATE() formula, but it seems like the filter needs a specific value, and doesn't work on a dynamic "cell" value.
    Any help would be greatly appreciated! (I hope it all makes sense!)

    If I've understood you correctly then the ALLEXCEPT function may be what you're after and it could be applied in a similar way to the following...
    =
    RANKX(
    ALL(Table1),
    CALCULATE(
    COUNTROWS(table1),
    ALLEXCEPT(Table1, Table1[ContactReason])
    DENSE
    If this has missed the mark, would it be possible to clarify the requirement further?
    Regards,
    Michael Amadi
    Please use the 'Mark as answer' link to mark a post that answers your question. If you find a reply helpful, please remember to vote it as helpful :)
    Website: http://www.nimblelearn.com
    Blog: http://www.nimblelearn.com/blog
    Twitter: @nimblelearn

  • Error while validating Calculated Column

    Hi Frzz,
    I have created a Calculated column of type NVARCHAR by performing some calculation on a filed whose data type is NVARCHAR.
    But while validating the view am getting an error " Attribute type is not valid"
    Could some one please help me why am getting this error.
    Error Details:
    Short Text
      Attribute type is not valid
    Cause
      Mismatch between data type defined and values computed.
    Recommendations
      Check calculated measure/attribute definition and ensure data types match.
    Best Regards,
    Krishna.

    Hi Raj,
    I have provided the same size in Calculated column.But still am getting the same error.
    1) First i created a calculated column CC_Test1 to perform the TRIM()
    2) I created another calculted column CC_test2 on 1st calculated column (CC_Test1)
    Table field:
    Calculated Column1:
    Calculated Column2:
    Errror:

  • Ouput a string in a calculated column(Sqlscript)

    Hi there.
    I am having issues with something that appears to be really simple.
    I just want to add a calculated column in a projection and print a string in this row.
    Like the example below:       
                      var_sales = CE_PROJECTION(:var_in,
                                           "COMPANY",
                                           CE_CALC('SOME TEXT', varchar(100)) AS "TYPE"                                                                                                        
    The odd thing is that if I put a INTEGER on 'SOME TEXT' it will work, but I need a string to be output.
    In the graphical mode is really simple to do it, I just need to print the string in single quotes. But I have to do it in sqlscript because I am calling a procedure before it.

    Quotes in SQLScript get tricky. The ' denotes the expression so you need to add another '' (triple quotes) to specify a string inside the expression. The following will compile.
    var_sales = CE_PROJECTION(:var_in,
                                           "COMPANY",
                                           CE_CALC('''SOME TEXT''', varchar(100)) AS "TYPE"                                                                                                       

  • Using ODBC how do you identify a calculated column in a table?

    I've a calculated column in my table. Is there a way to identify that column through ODBC functions? I need to identify the  calculated column and make it read only. The function should support both SQL and Access databases. Please let me know if
    there is a way to find out this column type.

    Hello,
    You can refer to the following article which list some ODBC Scalar Functions which you can used in the T-SQL query statement.For example
    SELECT {fn TRUNCATE( 100.123456, 4)};
    -- Returns 100.123400
    Reference:http://msdn.microsoft.com/en-us/library/bb630290.aspx
    As per my understanding, there is no built in declarative support for read-only columns. You can try to create a UPDATE trigger to achieving this. Or you can create a view with derived column  from the source table. And then users cannot
    update this calculated column on the view.
    Regards,
    Fanny Liu
    Fanny Liu
    TechNet Community Support

Maybe you are looking for

  • ITunes 8.1 works great but killed wireless internet connection

    I installed version 8.1 on both my laptop( PowerBook g4/ OS 10.4.11) and desktop (imac intel / OS 10.5) and after restarting the computer, the wireless internet connection stopped working on both. I would open Safari and it would be a blank page and

  • Permissions Repair: Warning SUID file issue?

    Greetings, I have been having a sleep issue and an occasional error message that said the Time Machine backup could not be completed so I ran disk utility to repair permissions and this is what it said; +Verify permissions for "Macintosh HD"+ +Permis

  • HT5299 Thunderbolt to Gigabit Ethernet Adapter

    Can 2 Thunderbolt to Gigabit Ethernet Adapters and Ethernet cable be used to create a long Thunderbolt cable?

  • Lighting temperature considerations for print evaluation?

    I am setting up a color management workflow for fine art photos that includes monitor and printer/paper calibration, ambient light control and a print viewing area. I'm having trouble deciding which temperature lighting to use in a print viewing area

  • 802.1x: MAC Authentication Bypass

    Hey sorry for keeping bugging you guys... So I am configuring this Bypass thing on my 3750 switch. It works fine. It seems the switch will send a access request to the radius server (I use FreeRadius) with the username/password both as the MAC addres