Yes/No Calculated Column

Hello and thank you in advance for any assistance you can provide:
I am using Sharepoint 2010 OOB
I would like to create a calculated column which returns a Yes/No if content is entered into a multiple line of text column. i know you cannot use multiple line of text columns in a calculated formula but i was wondering if there is a work-around.
I tried creating a single line of text column [More Information],
then i created a calculated column name [More Information 1] and i used the formula =[More Information]
then i deleted the single line of text column and created a new multiple line of text column and name it the same name of the single line of text column [More Information]
then i created a second calculated column named [More Information Y/N] and created the formula =NOT(ISBLANK([More Information 1]))
However, if there is no content is enterd in the multiple line of text column [More Information] the calculated column [More Information 1] displays a '?Name' which causes the calculated column [More Information Y/N] to display a 'Yes'
out of curiosity, i changed [More Information] back to a single line of text and the calculated column [More Information 1] displayed a '0', which obviously caused the calculated column [More Information Y/N] to display  'Yes'
Any help which can be provided would be greatly appreciated

Hi,
According to your description, you might want to create a calculated column which returns a Yes/No whether a multiple line of text column is blank.
As a workaround, you can trick the new multiply-line text field into thinking it is operating on a single-line text field and create a calculated column
to judge if a multiple line of text column is blank.
The steps in details as below:
1. Create a single line of text column named “More Information”.
2. Create a calculated column named “More Information 1” and set the formula “=RIGHT([More Information],LEN(More Information)-8)”.
3. Delete
the “More Information” column and create a new multiple line of text column named “More Information”.
4. Create
a calculated column named “More Information Y/N” and set the formula “=NOT(ISERROR([More Information 1]))”.
Best regards
Zhengyu Guo
TechNet Community Support

Similar Messages

  • Problem with binding value on the UI  from a calculated column in the view

    I have calculated field "Readiness" in my db view, which gets calculated based on other columns in the same table. I have added new column to my EO using "Add from table" option and added the same column from to VO using "Add from EO" option. In my application, I will update a particular date field in the UI and this calculated column "Readiness" in the db will be set to yes or no and this logic is working fine, both date date field and calculated field are in same view object. I have added a attribute binding to this "Readiness" column in my view page. The problem is the calculated column value does not reflect the new value in the db, it shows the old value. I have tried different refresh option for the iterator and ppr option for the field binding. Even after reloading the page, the value shown on the UI page is different from the value in db, other bindings on the UI page works fine, not sure any special settings are required for the Calculated columns. any ideas are appreciated.
    Thanks for your help,
    Surya

    I tried to add soms debugging statements in the EO and getters method, the calcaulated column is not picking the value in db view. I'm not any special iterator/field settings are required at BC level. I'm a newbie, any help is appreciated.
    Thanks,
    Surya

  • Named Calculation Column in DSV - SSAS Cube (2012)

    Hi,
    I have a question on creating named calculation (derived column) in data source view of SSAS 2012 Cube. Below scenario :
    If i am writing an expression in Fact table (say, creating named calculation column, "X" in this fact table) then is it possible to have a case statement based on the condition from one of the dimension data ?
    For ex., one my dimension "KC_Dim" contains column "KC_Code" on which i want to have a condition something like below:
    Case
    When KC_DIM.KC_Code = "-" 
    Then 0
    Else FactTable.Measure
    End 
    how to achieve this specially because i am writing it in fact table but the condition mentions dimension columns which it is giving error "could not find the dimension column"
    any idea ?
    Thanks

    Hi UltraDev,
    For the first questions "is it possible to have a case statement based on the condition from one of the dimension data ?"the answer is yes. The expresion for the named calculation should be a valid SQL expresion. So just the Case statement should be specified,
    like:
    Case [Month]
    When 1 Then 'January'
    When 2 Then 'February'
    End
    Then the SQL expression can refer to other tables in the data source view. You can refer to the link below to see the detail information.
    Define Named Calculations in a Data Source View (Analysis Services)
    Introduction to Named Calculations in SQL Server Analysis Services
    Regards,
    Charlie Liao
    TechNet Community Support

  • How to create a calculated column in sharepoint

    I created the custom list in share point. In that list i renamed the title as
    Name.
    I created the WindowsID as person or group column in share point list.
    In the same list, I want to create a new calculated column as EmpName as hyperlink with the below formula  
    ="<a href='"&WindowsID &"'>"&Name&"</a>"
    But I am unable to create a new column by using above formula.
    Could you please let me know what i missed in the above formula.
    Please note that i am unable to see the WindowsID in the insert column.
    Thanks for ur support.

    Hello
    Sorry for the delay replay.
    Based on your guidance,i followed the below steps
    1.created the loginname  column of type person or group
    2.Added the contentquery webpart
    3.crated the custom xslt template
    4.Please find the below template
    <xsl:template name="ListingItem" match="Row[@Style='ListingItem']" mode="itemstyle">
        <xsl:variable name="DisplayTitle">
          <xsl:call-template name="OuterTemplate.GetTitle">
            <xsl:with-param name="Title" select="@Title"/>
            <xsl:with-param name="UrlColumnName" select="'LinkUrl'"/>
          </xsl:call-template>
        </xsl:variable>
        <xsl:variable name="LoginID">
       <xsl:value-of select="ddwrt:UserLookup(string(@DomainID) ,'User')" />
    </xsl:variable>
        <div id="membersdiv" class="members">
         <!-- <xsl:value-of select="$LoginID" disable-output-escaping="yes"/>-->
         <xsl:if test="$LoginID != ''">
              <a href="{$LoginID}">
              <xsl:value-of select="@Title" disable-output-escaping="yes"/>
              </a>
          </script>
         </xsl:if>
    </div>
      </xsl:template>
    if user is having the login id then i need display the title.on click of that title i need to redirect to user settings page like http://url/_layouts/15/userdisp.aspx?ID=1  .How can i redirect to
    the sharepoint personal settings page based on person click

  • 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

  • How to use a calculated column in the same query

    Hi All,
    I need some help with using a calculated column in the same query.
    For eq
    I am joining a couple of tables and some of the select columns are calculated based on the columns of the tables and i want a new column in the same query to use this calculated feild in some other calcualtion.
    something like this...
    select (12+3) as Sum1, (12-3) as Sum2, (Sum1 + Sum2 ) as Sum3
    from dual
    or
    select (12+3) as "Sum1", (12-3) as "Sum2", CASE WHEN ( "Sum1" / "Sum2" * 100 > 0 ) THEN 'Yes' ELSE 'No' END
    from dual
    Thanks

    user548171 wrote:
    select (12+3) as Sum1, (12-3) as Sum2, (Sum1 + Sum2 ) as Sum3
    from dual
    or
    select (12+3) as "Sum1", (12-3) as "Sum2", CASE WHEN ( "Sum1" / "Sum2" * 100 > 0 ) THEN 'Yes' ELSE 'No' END
    from dual
    ThanksWhat about just repeating the column values:
    select (12+3) as "Sum1", (12-3) as "Sum2", CASE WHEN ( (12+3) / (12-3)  * 100  > 0 )  THEN 'Yes' ELSE 'No'  END FROM DUAL

  • 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

  • Sum up currency calculated column in a standard list view

    Hi
    How do I total up a currency format calculated column in sharepoint 2010. I am having a problem referring to the articles on the net. Nothing seems to be working. Can I use jquery or something, or can I do it with editing in in the sharepoint designer..please
    assist.

    yes,
    pls try to use jquery in the thread 
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/bc037879-f4e0-43a5-a0c1-68cabcae2468/calccalculating-sumon-sharepoint?forum=sharepointcustomizationlegacy
    Please remember to click 'Mark as Answer' on the answer if it helps you

  • RELATED in Calculated Column or Calcualted Field?

    Dear Team,
    1] If I use the REALTED function to lookup a price in a Calculated Column like:
    RetailPrice =RELATED(dProducts[RetailPrice])
    and there are only 30 different prices (unique values) in a total of 39,000 rows, here are my questions:
    Because the column has only 30 unique values, does this mean that it does not take up much RAM memory storage space?
     Do the values get stored in the columnar data base in RAM memory the same as if the values were not from a Calculated Column, i.e. they were hard coded values?
    Once I use this RELATED to lookup price, would it be more efficient to create a second Calculated Column to calculate Revenue like:
    Revenue =ROUND(fSales[Units]*fSales[RetailPrice]*(1-fSales[RevenueDiscount]),2)
    which I would then use in a Total Revenue Calculated Field.
    Or would it be more efficient to NOT have second Calculated Column (Revenue) but instead to create a Calculated Field like this:
    TotalRevenue:=SUMX(fSales,ROUND(fSales[Units]*fSales[RetailPrice]*(1-fSales[RevenueDiscount]),2))
    On a side note, I have to say that trying to learn PowerPivot is really hard. It is so much different than Excel…
    Sincerely, Mike Girvin

    Hey Mike,
    first of all I cannot agree to your comment that PowerPivot is really hard :-)
    But regarding your questions:
    1. Space in RAM or on your hard drive depends mainly on the amount of distinct items in a column. You could have 10 billlion rows, if there are only 2 unique values you'll probably won't have any impact on performance or memory. Regarding your 30 unique
    items: I think you won't have a problem with these.
    2. Calculated columns are treated the same way as columns coming from other sources. They are calculated during processing of the table. Simple answer to your questions: Yes
    3. SUMX is generally better than calculating a new column and then running a SUM over that one. I'm not really sure, but I think it's because one is processed in RAM and the other on your CPU (don't ask me which one is which).
    I hope I could answer your questions.
    Kind regards
    Please mark helpful posts and answers! :)

  • Indexing running forever with calculated columns

    I want to use an InfoCube as a source in Business Objects Explorer. So I defined a universe on top of the InfoCube using Information design tool along some calculated columns (similar to calculated key figures in BEx query).
    The indexing used to work fine with the default keyfigures in the InfoCube. I started using the newly created calculated columns and now the indexing runs for hours and does not complete until I remove the calculated columns. Is this a performance issue, if yes please do let me know how to fix it.
    Thank you

    Hi Pavan,
    Thanks for the reply. I will try doing that and will get back to yo.
    The relational data foundation of this universe was defined over an InfoCube and it did not have any primary keys for dimension tables (master and text) nor the foreign keys (fact table). Does this also affect the performance of explorer?

  • Query a calculated column

    In a report I have used the source area to create a query that uses/creates calculated columns.
    Query:
    Select id, name, amount, percentage,
    amount * percentage AS CalCost
    from store
    where id = 3;
    Now I want to create another calculated column within that query using the created 'CalCost' column, similar to:
    Select id, name, amount, percentage,
    amount * percentage AS CalCost,
    amount - CalCost AS Difference,
    however, i get the ORA-0094 error stating that 'CalCost' is an invalid identifier.
    Is there any way to calculate this column without raising this error??

    963510 wrote:
    however, i get the ORA-0094 error stating that 'CalCost' is an invalid identifier.
    Is there any way to calculate this column without raising this error??Yes -- the alias isn't available from within the SELECT list. You'd have to redo the calc, i.e.:
    SELECT id, name, amount, percentage,
           amount * percentage AS CalCost,
           amount - (amount * percentage) AS Difference
    FROM   store
    WHERE  id = 3;Alternately, you could rewrite it as follows, where the alias would be available, but I see no reason to:
    SELECT id, name, amount, percentage, CalCost
           amount - CalCost AS Difference
    FROM   (SELECT id, name, amount, percentage,
                   amount * percentage AS CalCost,
                   amount - (amount * percentage) AS Difference,
            FROM   store
            WHERE  id = 3
           );

  • Yes/No Calculated Field

    I am trying to create a calculated field with an output of either 'yes' or 'no' - the output field is called 'ATO Compliance'.
    In layman's terms this is the calculation I need:
    If there is a Date/Time entered in the 'DateApplied' field, then 'ATOCompliance' = Yes
    Else 'ATOCompliance' = No
    Can someone please help me with this calculation!?

    Hi,
    Use the following formula in the calculated column
    =IF(ISBLANK([DateApplied]),"No","Yes")
    Please mark it answered, if your problem resolved.

  • Getting an error while using if statement in calculated column.can anyone please help me with this issue

    I am trying to learn HANA on my own.i have product id,product name,delivery date and Grossamount in my calculated view.i am trying to create calculated column where i need Grossamount in two columns based on delivery date.I have 2012 and 2013 as values for my delivery date.so i have created two column as grossamount_2012 and grossamount_2013.if i have delivery date as 4thdec,2012 i want the grossamount value to be in coloumn grossamount_2012 and the grossamount_2013 should be blank.i have written an expression like this
    if("Deliverydate" <= longdate(2012-12-04),"Grossamount","0")
    and it looks like this is wrong.i am getting the text Grossamount rather than values for that field in my output.so can anyone help me please?

    Hi chandra
    i am trying to get the same result by using sql script and CE functions.i have written the following code
    select A."PRODUCTID",
           E."TEXT" as "PRODUCTNAME",
           C."COUNTRY",
           D."DELIVERYDATE",
           Sum(D."GROSSAMOUNT") as "GROSSAMOUNT"
           from "SAP_HANA_DEMO"."sap.hana.democontent.epm.data::EPM.MasterData.Products" as A     
           inner join "SAP_HANA_DEMO"."sap.hana.democontent.epm.data::EPM.MasterData.BusinessPartner" as B
           on A."SUPPLIERID" = B."PARTNERID"      
           inner join "SAP_HANA_DEMO"."sap.hana.democontent.epm.data::EPM.MasterData.Addresses" as C
           on B."ADDRESSID" = C."ADDRESSID"
           inner join "SAP_HANA_DEMO"."sap.hana.democontent.epm.data::EPM.Purchase.Item" as D
           on A."PRODUCTID" = D."PRODUCTID"
           inner join "SAP_HANA_DEMO"."sap.hana.democontent.epm.data::EPM.Util.Texts" as E
           on A."NAMEID" = E."TEXTID"
           GROUP BY A."PRODUCTID",E."TEXT",C."COUNTRY",D."DELIVERYDATE"; 
    this is working fine but i want to split the grossamount based on current year and last year.Any idea how to do this
    In calculation view using script can we use if and case statements?

  • 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

Maybe you are looking for