Month name in calculated column

Hi ,
I am trying to get month name from SAP date in my AN view. I am using the following to get the month from a date field:
component ( date("BEZDT"),2) but need to convert it to the month name...any ideas?
By the way , I know this could be done in the universe and/or adding a time dimension to the model but I need it as a calculated attribute.
Thank you,
Nick

Hi Nick,
Since you have said "Month Name", I am guessing you are interested in getting values such as "January", "February" and so on as opposed to 01, 02.... Is that right?
If so, I don't think there exists a built-in function in HANA that could give you that. A calculated attribute with a case or if statement on the hard-coded descriptions (January, February...) for month values (01,02...) derived from the data column (BEZDT) is what I can think of.
Thanks,
Anooj

Similar Messages

  • 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>.

  • Period number to be displayed as month name

    Hi,
    I have Fiscal year/Period defined in the column section of the BW query.  Currently the column will be displayed for example: Period 01, 2009, Period 02 2009 and etc.   Our users are asking to display the month name instead of the Period#.  Is it something can be handled within the query definition (or) via the BW query user exit. 
    Thanks in advance for any response.

    Hi Venugopal,
    Fiscal period is not always the same as calmonth.
    For eg - In India, you have April as the 1st fiscal period of this year.
    Hence, it does not make sense to have month names for fiscal period.
    Also in FICO you may have special periods..ie periods after period 12.( eg period 13 to 16) you wont be able to map them to a particular month in some cases.
    If you want to display month name in your column selections, use 0calmonth object with text display.
    However, this would mean you are view a dataset as per calmonth and not as per fiscal period.
    Check if this is acceptable for your business requirement.
    Lastly, you can always have a formula, to check the value and put texts instead.
    ( if fiscal period is 02/2009 then month is feb ..(based on the country).
    Hope it helps,
    Best regards,
    Sunmit.

  • How to get user name as a calculated column in Analytic View or Calculation Graphical View?

    Hi Folks,
    I needed something like this. In the output, I needed a column which displays the SESSION USER who is seeing the results of the model.
    In Script , we can have something like this
    SELECT SESSION_USER FROM DUMMY
    How can I do the same using calculated columns in the model?
    Regards,
    Krishna Tangudu

    Hi Nick,
    Since you have said "Month Name", I am guessing you are interested in getting values such as "January", "February" and so on as opposed to 01, 02.... Is that right?
    If so, I don't think there exists a built-in function in HANA that could give you that. A calculated attribute with a case or if statement on the hard-coded descriptions (January, February...) for month values (01,02...) derived from the data column (BEZDT) is what I can think of.
    Thanks,
    Anooj

  • Get the month from a date column with the calculated column

    I am trying to get the month from a date field with the help of calculated column. However I get this syntax error whenever I want to submit the formula:
    Error 
    The formula contains a syntax error or is not supported. 
    the default language of our site is German and [datum, von] is a date field.

    Hi,
    I have created two columns
    Current MM-YY
    Calculated (calculation based on other columns)
    Today
    Date and Time
    Current MM-YY is calculated value with formula as
    =TEXT(Today,"mmmm")
    But the output shows as December instead of May.
    I have tried =TEXT([Datum, von];"mmmm") but no help.
    I am trying to populated the column automatically with current month..ex: if its May the field should show May, next month it should show June an so on.
    Any kind help is grateful.
    Regards,
    Pradeep

  • Sort the month name column based on month id in rpd itself only

    sort the month name column based on month id in rpd itself only without creating the logical column.

    Hi,
    sort the month name column based on month id in rpd itself only without creating the logical column. Can you be bit specific?
    Is this what you want..http://www.biconsultinggroup.com/knowledgebase.asp?CategoryID=198&SubCategoryID=368
    Regards,
    Srikanth
    http://bintelligencegroup.wordpress.com

  • Trouble changing column name used in calculated column

    I have a calculated column in my list.  The calculation is based on a column "Status".  It worked fine.  But I recently had to do some work on the Status column and changed it to Status_OLD and replaced it with a new Status column. 
    The above mentioned calculated field is now using Status_OLD and thus not working because Status_OLD is no longer in use.  I went in the to calculation formula and tried to change it to Status, but Status does not appear in the Insert Column list, nor
    does it allow me to just type in Status into the formula without throwing an error.  Short of deleting the column and re-creating it, is there something I'm doing wrong or overlooking?
    There are no mistakes; every result tells you something of value about what you are trying to accomplish.

    Finally getting back to this issue.  I have two columns in my list "Status" and "Status_OLD".  "status" is a replacement for the previous one.  I have three calculated fields that use that field. I need to change
    their calculation to now use "Status" instead of "Status_OLD".  When I go to the settings for that column, "status" is not listed in the choice of columns that can be inserted.  Just typing it in won't work either.
    When I try to make a new cal as a test, "Status" isn't available there either.
    I really need to get this fixed as soon as possible now because some of these dates need to be acted upon.
    There are no mistakes; every result tells you something of value about what you are trying to accomplish.

  • Help with calculated column formula- combine strings and convert to date

    In my list (SharePoint Server 2013) I have:
    'Invoiced Month' column, type of choice (strings with names of months- January, February, March..., December)
    'Year' column, single line of text (e.g. 2012, 2013, 2014)
    1. I need to create a calculated column which will return combined value of the columns above, but in DATE format e.g. 'Sep-2013' or '01-Sep-2013'.
    I then use that newly created calculated column to do this: http://iwillsharemypoint.blogspot.in/2012/03/sharepoint-list-view-of-current-month.html
    I am rubbish with formulas, can I have some help with my problem please?

    Hi,
    Use the formula, I have tested by creating Months column with choice, Year column as numeric and Calculated column as DateTime returned.
    =DATE(Year,IF([Months]="January", 1,IF([Months]="February",2,IF([Months]="March",3,IF([Months]="April",4,IF([Months]="May",5,IF([Months]="June",6,IF([Months]="July",7,IF([Months]="August",8,IF([Months]="September",9,IF([Months]="October",10,IF([Months]="November",11,12))))))))))),1)
    Before applying the formula few things need to be noted.
    DATE(YEAR, MONTH,DAY) will accepts three parameters all should be type numeric(integer).
    Create the Year column of type numeric
    Create the calculated column of type "DateTime" to return as date
    Please mark it answered, if your problem resolved or helpful.

  • 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?

  • 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

  • If statement for calculated column

    Hi, I need to know if its possible to do the following in a calculated column
    if column1 value => 1
    display the name of column1 + the value of column 1
    is this possible?

    Hi hein,
    You can return your calculated column value as "Number" type, set the "blank space" in your formula, see the formula as follow,
    =IF([A4 Printing Paper Box]>0,"[A4 Printing Paper Box]"&[A4 Printing Paper Box]," ")
    http://msdn.microsoft.com/en-us/library/bb862071.aspx
    Thanks
    Daniel Yang
    TechNet Community Support

  • Two separate calculated columns - results show up only in one of them

    Hey,
    I've recently run into some peculiar behaviour in OBIEE (Oracle Business Intelligence 11.1.1.7.0). I'm using three attribute colums (deliv. on time, ordered, backlog) to calculate a monthly service level. In addition I'm using a customer ID number to separate our customers into export and national customers. I've three calculated columns - Service Level Export, Service Level Total and Service Level National. I'm using a simple case-statement to distinguish between international and national customers (When custID between xxx and yyy then...). The total service level column doesn't have a case-if calculation, only a couple of simple mathematical operations and it works fine.
    Now the problem is that the results show up only in one of those calculated columns containing case-if calculations - not both at the same time. Using a prompt in a pivot table I can verify that both columns get proper values but when I remove the prompt half of the values randomly disappear from these columns so that only one of the columns has a value for a specific month. The calculations in all three columns are identical - the only difference is that Serv. L. Exp. exludes a spesific CustID whereas the Serv. L. Nat. only includes that one CustID.
    Example - both Serv. L. Exp and Serv. L. Nat should have values for every month, now only one of them gets values
    Month          Serv. L. Exp.               Serv. L. Nat.               Total Serv. L.
    01                         15 %                                                       15 %
    02                         17 %                                                       17 %
    03                         13 %                                                       13 %
    04                                                          20 %                      20 %
    05                                                          22 %                      22 %
    I've a few months of OBIEE experience under my belt so I'm not that experienced but usually I've been able to figure out what's wrong on my own. This time, however, this leaves me dumbfounded. Any help or advice would be much appreciated.
    Regards,
    Silver

    Hi,
    Serv.L.Nat is calculated 100 * INVOICED / (ORDERED + DELAYED). For National Service Level the case statement (including the calculations) is as follows (the inner CASE limits the Serv.L.Nat per cust to a range of 0 - 100 %):
    CASE WHEN "fact"."CustID" = 100001 THEN (
         CASE WHEN Serv.L.Nat > 100 THEN 100
         WHEN Serv.L.Nat < 0 THEN 0
         WHEN Serv.L.Nat IS NULL THEN 0
         ELSE Serv.L.Nat
         END)
    END
    For Export the sql is exactly like the one above, barring the reversed condition.
    Regards,
    Silver
    PS. The above is a burst of pseudoSQL so don't mind the typos, the actual code is tested to work as intended... barring the fact that something's wrong with getting the values to appear.

  • Calculated Column with Null date end result needs to be text.

    Good Morning,
    I am using SharePoint 2010 and am trying to create a calculated column converting a date/time column to to show just a month and day.  Calculation is
    =TEXT([Anniversary],"m/d")
    This is to enable sorting on the month.  And this works fine except when there is no date entered in the "Anniversary" column.
    I have tried to modify the formula in this column to no avail.  http://social.technet.microsoft.com/Forums/sharepoint/en-US/0c9d5ae1-132a-4e02-8a91-c54708919d9a/show-calculated-date-column-as-null-when-there-is-no-date?forum=sharepointgenerallegacy
    I do not have access to modifying the code so have to work strictly OOB.  Any help would be greatly appreciated.

    I would think you could add an IF statement to verify if the text is null. So...
    =IF(ISNULL(TEXT(Anniversary, "m/d")), What we do when null, TEXT(Anniversary,"m/d"))
    Andy Wessendorf SharePoint Developer II | Rackspace [email protected]

  • Calculated column  - non-rolling rowsum where columns are not null

    I have a calculated "Year total" column that sums 12 month columns. In our business $0.00 is not the same as null, so i have some columns without numeric data. My calculated column is only working when there is numeric data in all 12 months and i need it to work for rows where some columns are null.
    Is there an easy way around this?

    Figured out how to do this using the IFNULL function.

  • How to create a formula to get the month name based on userresponse

    Hi,
    I have created a report using E-Fashion - Actually i need  a report like  -  For ex i need 4 months data from 12 months
    My report should display the 4 months data along with starting & end month data in the next 2 columns
    I have used the prompt to fetch the data & i have created a formula in the cloumn like below:
    For the column haader i have given = Tonumber(userresponse("Enter start:")) - I am getting the Month number in the header But i need the month name in the header.Please guide me
    Regards
    Karthika

    Hi Ram,
      Thanks for your Help.I tried in an another way like I created 2 Variable -
    Start Date  =UserResponse("Enter Month(Start):"
    End Date = =UserResponse("Enter Month(End):"
    I have created the column header for
    start date:
    =If([start Date] = "1";"January";If( [start Date] = "2"; "February";If([start Date] = "3";"March";If([start Date] = "4";"April";If([start Date] = "5";"May";If([start Date] = "6";"June";If([start Date] = "7";"July";If([start Date] = "8";"August";If([start Date] = "9";"September";If([start Date] = "10";"October";If([start Date] = "11";"November";If([start Date] = "12";"December"))))))))))))
    End Date:
    =If([End Date] = "1";"January";If( [End Date] = "2"; "February";If([End Date] = "3";"March";If([End Date] = "4";"April";If([End Date] = "5";"May";If([End Date] = "6";"June";If([End Date] = "7";"July";If([End Date] = "8";"August";If([End Date] = "9";"September";If([End Date] = "10";"October";If([End Date] = "11";"November";If([End Date] = "12";"December"))))))))))))
    For the Datas in the column:
    Start Date:
    =[Sales revenue] Where([Month]=ToNumber(UserResponse("Enter Month(Start):")))
    End Date:
    =[Sales revenue] Where([Month]=ToNumber(UserResponse("Enter Month(End):")))
    I got the Report format as i required
    Thanks
    Karthika

Maybe you are looking for