Create Date Column out of Full Month Name and Year

I am trying to use Power Query to create a new column of data as a Date.  My data contains two columns: Month as the full text name and Year, for purposes of this example, I will set all days to the 15th.  In Excel, I would simply use a formula
to convert the text month to the proper date part.
Example:  [Month] = "January" and [Year] = 2013
DATEVALUE([Month]&" 15, "&[Year])
What is the syntax to Add a Column in Power Query with this conversion? 
Thanks, Barbara

For an existing table in the editor with columns Month and Year, click "Insert Custom Column" and use this as the formula:
= Date.FromText([Month] & " 15," & Number.ToText([Year]))
This will create a formula which looks something like this:
    InsertedCustom = Table.AddColumn(Source, "Custom", each Date.FromText([Month] & " 15," & Number.ToText([Year])))
Note that one difference between Excel and Power Query is that Excel will let you concatenate text and numbers with "&" but Power Query requires that you first convert the number to text.

Similar Messages

  • Month and Year has to Display as month name and Year

    Hi,
    For Fiscal year/period, report displays like for example <b>004.2007</b> instead of <b>July 2007</b>
    I would like to see the reports as <b>July 2007</b> ( not to display as <b>004.2007</b>)..
    Our financial year is <b>April to March</b>.
    Help will be greatly appreciated...
    Thanks

    Hi venkat,
    i could suggest something as follow:
    Say for e.g. your report wants to display following way...
    jan feb march.........dece.
    net quantity----
    char1..........x.x.x.x.x..x...x...x.
    char2..........x.x.x.x.x..x...x...x.
    Now what you can do is ...create restricted key figure 12 times...
    Now in each restriction bring in Net quantity....
    for 1st restriction     edit the restriction. bring in Calendar month and restrict it to January.
    then in Description of that key figure put January.......
    Save and come out...
    Copy that first restricted key figure and copy it 11 times........
    Now go in each restricted key figure and change the restriction of calendar month by Feb , march and so on.........(Also change the description to feb. march and so on)
    Now in each description include Text variable whose replacement path is Fiscal year...
    In bex properties,,, make the setting SUPRRESS ZERO VALUE DISPLAY...
    With this, what you can do is lets say your user just want the display of Jan to march or something similar, so whatever empty box will be created will not display.....
    You will achieve the result as Jan 2006 and so on........
    Hope this helps.

  • Hi all! What is the best way to create the correct space for baseball jersey names and numbers? along with making sure they are the right size for large printing.

    What is the best way to create the correct space for baseball jersey names and numbers? along with making sure they are the right size for large printing.

    Buying more hard drive space is a very valid option, here.  Editing takes up lots of room, you should never discount the idea of adding more when you need it.
    Another possibility is exporting to MXF OP1a using the AVC-I codec.  It's not lossless, but it is Master quality.  Plus the file size is a LOT smaller, so it may suit your needs.

  • Month end and year end closings

    hello guys,
                  Can anyone explain me about the series of steps that we have to do for month-end and year-end closings (FICO).
    Thanks in advance..

    Hi,
    Below are the month end activities
    1. Recurring Documents.
    a) Create Recurring documents
    b) Create Batch Input for Posting Recurring Documents
    c) Run the Batch Input Session
    2. Posting Accruals or Provisions entries at month end
    3. Managing the GR/IR Account-Run the GR/Ir Automatic Clearing
    4. Foreign Currency Open Item Revaluation-Revalue Open Items in AR.AP
    5. Maintain Exchange Rates
    6. Run Balance Sheets –Run Financial Statement Version
    7. Reclassify Payables and Receivables if necessary
    8. Run the Depreciation Calculation
    9. Fiscal Year Change of Asset Accounting if it is year end
    10. Run the Bank Reconciliation
    11. Open Next Accounting Period
    Assign points if useful
    regards
    genie

  • How to fetch year till date value for earning for current ,last and year

    hi,
    how to fetch year till date value for earning for current ,last and year before that from payroll result
    plz reply soon,
    pratyush

    Dear Pratyush,
    Pick this from CRT.
    Use LDB PNPCE & Fire event GET PAYROLL &
    then you can pick from CRT.
    Hope this helps.
    Kindly reward in case useful.
    Regards & Thanks,
    Darshan Mulmule

  • Month end and Year end Activities

    Hi All,
    What are the month end and year end activities are involved and how will they happen????
    regards
    vasantha

    Hi Vasantha,
    Month-End Closing
    http://help.sap.com/saphelp_erp60_sp/helpdata/en/96/8b3c2d43ce11d189ee0000e81ddfac/frameset.htm
    Year-End Closing
    http://help.sap.com/saphelp_erp60_sp/helpdata/en/96/8b3c2d43ce11d189ee0000e81ddfac/frameset.htm
    Some of the Month-End Activities
    - Open and Close Posting Periods
    - GR/IR Clearing
    - Adjustments in G/L, AR and AP accounts
    - Foreign Currency valuation for Exchange rate fluctuations
    - Transfer Postings to Reconciliation accounts from CO module
    Some of the Year-End Activities
    - Balance sheet adjustments
    - GR/IR Clearing
    - Adjustments to special Posting periods at year end
    - Balance Confirmations for AR and AP accounts
    - Run Balance Carryforward program for G/L, AR, AP accounts at year end or first day of next year
    - Generate Financial statement for the current year
    Best Regards,
    Mohan.
    Edited by: krishna on Dec 18, 2008 12:01 PM

  • Month-end and year-end valuation differences!

    Hı Friends,
    What are the differences between Month-end and year end valuation in the system?
    Thank you!

    Yes
    For example
    31.12.2010
    Dr/Cr Forex loss/gain a/c
    Cr/Dr B/s adjustment a/c
    01.01.2011
    Dr/Cr B/s adjustment a/c
    Cr/Dr Forex loss/gain a/c

  • 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

  • In urgent need of help regarding getting month name and dates

    Hi Experts
    I have a table called MONTHLYBILL with Column TRANSACTIONMONTH. I need one query / function / SP to do return ouput based on following combination. I am using Oracle 9i
    Have researched on various forums, documents but unable to get the desired output. Finally here in hope of help.
    Input
    From Date: 06/01/2011
    To Date: 12/03/2011
    Output
    Month: DECEMBER-2010 (previous month of From Date). Now if DECEMBER-2010 is not available in table, then returns the
    month which is available immediately the month preceeding DECEMBER-2010
    Begin Date: 01/01/2011 (1st day following the month returned in output)
    End Date: 31/03/2011 (last date of month based on input To Date)
    Input
    From Date: Null
    To Date: 12/03/2011
    Output
    Month: First available transactionmonth in DB (say JANUARY-2010)
    Begin Date: 01/02/2011 (1st day following the month returned in output)
    End Date: 31/03/2011 (last date of month based on input To Date)
    Input
    From Date: Null
    To Date: Null
    Output
    Month: First available transactionmonth in DB (say JANUARY-2010)
    Begin Date: 01/02/2011 (1st day following the month returned in output)
    End Date: Current month's last date

    What is your application release?
    I am in big trouble now.. can anyone help....
    I have a backup of an EBS instance, lets say it was taken one month ago, and now we got some datas lost in the current production server..
    some one deleted some datas...
    Now we need some specific data from the old backup and restore it to the production
    or can it be restored? please help me guys...What kind of data? What is the table name?
    Since this is a production issue, I would suggest you log a SR.
    Thanks,
    Hussein

  • Function Modules for Format Date, Month Name and Quarter value.

    Hi All,
    1. I am getting the date field from the Flatfile, so i need to format the date to YYYYMMDD. Is there any Function module for that in BW.
    2. Based on the above Formated Date i have to find out the Name of the Month like JANUARY, FEBUARY etc.
    3. Based on the same above Formated Date i need to find out the Quarter like 1, 2 etc.
    Could you please let me know if any function modules are there for the above questions in BW not in ABAP, why i mention is some Function modules are there in ABAP but not in BW.
    Thanks in advance.
    Regards,
    srinivas

    Hi ,
    1.If your input date format is MMDDYYYY then Use SDATE as conversion routine in trans strucutre to convert into YYYYMMDD.
    2.By passing year as input parameter for the following FM you would get all the months with text.Using READ statement in routine you can get month name
    MONTH_NAMES_GET
    3.For Quarters you can use the following FM:
    TSTR_PERIODS_QUARTERS
    hope it helps...
    regards,
    Raju

  • Automatically creating data filename out of date and time information

    I read somewhere (in a book, here ?) about a programmer who never keyed in a data filename to save his data file. He just used the system date and time to create his filename. For example: now would be 20028141032.dat (2002, August 14, 10:32 am)
    I am looking to do something similar. I do want to add a spot of text after the date and time and save it as *.xls.
    This way when you have a long list of data files, if you sort by name, they are sequentially in order.
    Thanks for any help.
    Terry

    Hi Terry,
    You can use "Seconds to Date/Time" Funtion along with "File Dialog" Function to accomplish your task. You Unbundle the cluster from the "Seconds to Date/Time" with Year, Month, Day, Hour and Minute Information Convert and Append into One String. You Can add Pre or Post text to this String. Wire this to File Dialog Box and it will Pop up the Window With File Name in it as Default. Also the extemsion of the file name can be specified here. The User has Option to change this or accept this default name.
    I have attached an Example Vi to Illustrate this(LV6.1) Take a Look. To Use this Just Wire the Path Information to your Saving Functional VI. Also the Vi Checks if File Exists or Dialog Box is Cancelled. And You may Build Functionality for the
    se if you need them.
    Good Luck.
    Mache
    Good Luck!
    Mache
    Attachments:
    DateStamped_File_Name.vi ‏29 KB

  • Predicate value Type for Created Date column

    Hi,
    What Predicate Type value should be passed on for the worklist column Created Date in IPredicate addClause method? I am passing GregorianCalendar type value but getting an exception. The return type from the WorklistColumns.CREATEDDATE is GregorianCalendar.
    Thanks,
    Mythili

    try java.sql.date

  • Checking for month name and number in different language?

    I have to let people search for documents by date. The database is used by French-speakers as well as English-speakers. The search allows users to type in free text (because it's not just dates they might search by, though if they do type in something that's intended to be interpreted as a date, that's the only thing they're allowed to type in). So, I might get '23/Apr/2009' or '2009/04/23', for example. (I also have to allow them to submit 23.04.2009 and 23 04 2009 and any combination of the above!)
    I have written a function which breaks the string into three bits, and then I work out if each bit is a year, or a month, or a day with simple rules (eg, if it's a number between 1900 and 2400, it must be the year component).
    When it comes to the month, I do two things. One is obvious: is it a number between 1 and 12? The other is, is it a month name that appears in a list of 'allowed' month names. So my function does this at the start:
    v_validmonths := 'january,february,march,april <and so on>';
    v_validmonths := v_validmonths || ',janv,fevr,avr,mai, <and so on>';Then I do this:
        for x in 1 .. listlen(v_validmonths,',') loop
          v_probemonth := listgetat(v_validmonths,x,',');   
          if instr(lower(v_partone),v_probemonth) > 0 then
            v_month := extract (month from to_date(v_partone,'MON'));
          end if;
        end loop;   IE, I compare the first component of the string (v_partone) with the list of allowed month names. I repeat that for the other two parts of the supplied string. As you can see, if one of the parts of the supplied string matches an allowed month name, I then try to extract the month number into a variable, using Oracle's own extract function.
    And that's where my problem arises. Because although "aout" is valid French for August and is permitted by my list of valid months, the extract function fails to understand it. A simple select extract (month from to_date('AOUT','MON')) from dual, for example, gives an ORA01843 (invalid month).
    How can I get the code to work with French (and German, actually) months and month abbreviations whilst also being able to understand English ones? Is there an in-built function that would allow me to do this? Or is there some way neatly to say, 'yes: AOUT is in the list, and it's month 8' without me having to rely on the extract function to work it out?
    (I realise that the business requirement here is very peculiar and your first reaction will probably be "this is horrible!". I will absolutely agree with you! But this is the requirement as has been explicitly specified by the MD and I can't negotiate it away, sadly.)

    Hi,
    Many of Oracle's date functions allow a parameter where you can override the current NLS settings only for that function call.
    For example:
    SELECT  TO_DATE ( 'JUIL.'
                     , 'MON'
                     , 'NLS_DATE_LANGUAGE=FRENCH'
                     ) AS month
    FROM    DUAL;You could also create your own table of month names
    NAME     NUM     LANGUAGE
    JANVIER   1     FRENCH
    JANV       1     FRENCHand look up the names in this table, rather than in a string hard-coded in the function. This might be especially useful if you wanted to allow your own abbreviations or spellings (e.g., ignoring accent marks).
    Edited by: Frank Kulash on Dec 16, 2010 11:40 PM

  • How to find out the Target Component name and Target view name

    Hi All Expert,
                      I want to know ,how to find out the target component and target view in WEB UI,when i click on a field which shows as a hyper link in WEB UI .At GUI level ,i know the how it will work.Any way to find out the component name and view name which is show the details of that field at GUI level .IF you go to transaction CRMD_ORDER then open the service contract id .then goto the item level value .there is 1 service data tab is available at item level.there is two button is available.first one is available time and second one is response time .if i click on any button then one popup is open which is shows the details of that button.I dont know how to find out the component name and view name from GUI level.
    Thanks in Advance....
    Vishwas Sahu

    Hi Vishwa,
                 The control would be something like this for navigation in Get_p_xxx method u mention as link and u mention a event name which gets triggered on the click of this hyperlink. So your GET_P_XXX method would have the following code:
    CASE iv_property.
        WHEN if_bsp_wd_model_setter_getter=>fp_fieldtype.
          rv_value = cl_bsp_dlc_view_descriptor=>field_type_event_link.
        WHEN if_bsp_wd_model_setter_getter=>fp_onclick.
          rv_value = 'EXAMPLE'.
    Now you have to create a method as EH_ONEXAMPLE at your IMPL class and within which you would give an outbound plug method. Within the outbound plug the target data would be filled in the collection and window outbound plug would be triggered.
    This is a huge topic and  i have just mentioned you basic things.
    Regards,
    Bharathy.

  • Week, Month,Quarter and year

    I have a specific query. I my dashboard i have prompts for Year, quarter, month and week.
    Based on the week selection i get some sales data. And i use AGO function to get previous week's data.
    Now i am in a fix with my other requirement. I need the monthly data and quarterly data, for that particular week.
    Example:-
    Week 19th Nov 2011. I am ale to get the data with existing report.
    Month NOV:- If i use todate fundtion then i will get November's data untill Week of 19th November. BUT I WANT FULL NOVEMBER'S DATA.
    Quarter 2011-4:- If i use todate fundtion with quarter parameter then i will get fourth quarter's data until Week of 19th November. BUT I WANT FULL FOURTH QUARTER'S DATA.
    How do i achieve this.

    When i try this in a new column formula, it shows me the correct date.
    TIMESTAMPADD(SQL_TSI_DAY,DAYOFMONTH("MIS Dates"."MIS Date") * -1 , TIMESTAMPADD(SQL_TSI_MONTH, 1, "MIS Dates"."MIS Date"))
    But when i use the same with todate function, then it gives syntax error. I am clueless.
    Todate((("Vendor Performance"."Landed CostQty AC") /"Vendor Performance"."PO Qty"), TIMESTAMPADD(SQL_TSI_DAY,DAYOFMONTH("MIS Dates"."MIS Date") * -1 , TIMESTAMPADD(SQL_TSI_MONTH, 1, "MIS Dates"."MIS Date")))
    Please help.

Maybe you are looking for