Convert Formulae into MDX

<p>Hi,  </p><p>  I am trying to convert Year ending Quarter into MDXequivalent. These are the formulae which has to be converted intoMDX.</p><p> </p><p>YEQ1 = Qtr1 + @MDSHIFT(QTR2, -1, YEARS) + @MDSHIFT(QTR3, -1,YEARS) + @MDSHIFT(QTR4, -1, YEARS)</p><p> </p><p>YEQ2=QTR1+QTR2+@MDSHIFT(QTR3, -1, YEARS) + @MDSHIFT(QTR4, -1,YEARS)</p><p> </p><p>YEQ3=QTR1+ QTR2+QTR3+@MDSHIFT(QTR4, -1, YEARS)</p><p> </p><p>YEQ4= QTR1+QTR2+QTR3+QTR4</p><p> </p><p> Thanks</p><p> </p>

Probably something like the following (I'm still learning the @ functions):<BR><BR><u>YEQ1:</u><BR>[Qtr1] + ([Qtr2], [Years].PrevMember) <BR>+ ([Qtr3], [Years].PrevMember) + ([Qtr4], [Years].PrevMember)<BR><BR><BR><u>YEQ2:</u><BR>[Qtr1] + [Qtr2]<BR>+ ([Qtr3], [Years].PrevMember) + ([Qtr4], [Years].PrevMember)<BR><BR><u>YEQ3:</u><BR>[Qtr1] + [Qtr2] + [Qtr3] + ([Qtr4], [Years].PrevMember)<BR><BR><u>YEQ4:</u><BR>[Qtr1] + [Qtr2] + [Qtr3] + [Qtr4]<BR><BR>Hope this helps<BR><BR>

Similar Messages

  • Converting Calc to MDX

    Hi Experts,
    I am very new to MDX, hence need help in converting this calc into MDX Query-
    If(@ISIDESC("L-206125"))
         "70170023"
    EndIF;
    Where "L-206125" is from Departments dimension and "70170023" from Accounts. I have this formula on one more Department.
    I tried to convert in MDX and got this-
    IIF (Is(Departments.CurrentMember,[L-206125]) OR Count(Intersect({Descendants[L-206125]},{Departments.CurrentMember}))= 1)),Accounts.[70170023], #Missing)
    But I am getting syntax error whenever I validate this.
    Please anyone help me out of this issue?

    I took your requirement (sort of) and transferred it to my second favorite Essbase database in the whole wide world, aka, ASOSamp.Sample and, if you'll forgive my my child-like MDX:
    CASE WHEN CONTAINS([Geography].Currentmember, Descendants([North East])) THEN
         [Original Price] * -1
    ELSE
         42
    ENDWorks for me.
    So in your case:
    CASE WHEN CONTAINS([Departments].Currentmember, Descendants([L-206125])) THEN
         [70170023]
    ELSE
         Missing
    ENDDo you really want to write Missing to all other intersections, or just the first condition in the CASE? You decide.
    Regards,
    Cameron Lackpour

  • Latextogrob: LaTeX Formulae into HP 50g

    Hi, some time ago I bought an HP 50g and wanted a good way to write formulae in order to be readable by the calculator.
    Googling, I found a tool called WinHP (as you might guess, only for Windows, but works with wine).
    The problem is that WinHP is not well-suited to work with the keyboard and you have to use the mouse to click on symbols.
    I kept googling and found no tool to write LaTeX formulae and then convert them into an HP 50g readable format, so I tried to do it myself.
    It works the following way:
    You write a file with one formula per line, execute this program with the file as a parameter, and you get a grob file with all formulae.
    An example file:
    Wave Length:
    \lambda=\frac{v_p}{f}
    Quadratic Equation:
    ax^2+bx+c=0
    Solution:
    x=\frac{-b\pm\sqrt{b^2-4ac}}{2a}
    As you can see, it is optimized for typing less, so you needn't write a formula between $. It also replaces "(" with "\left(" and ")" with "\right)"
    I hope you find it useful. Feel free to modify the script to suit your needs: add more search and replace rules, delete some...
    Advantadges:
    No mouse needed to type formulae
    It runs on Linux natively
    The output format is a native HP 50g format, so no need of external libraries
    Disadvantadges:
    Files are bigger than WinHP's ones
    It only runs on linux...
    This is how it looks like:
    You can find a PKGBUILD in the AUR
    Last edited by swiftscythe (2013-01-23 09:23:42)

    dgonzalez003 wrote:
    Wow, this tool looks fantastic!! I am very used to LaTeX, so this seems to be a very convenient way of writting formulae and viewing them in my hp 48gII.
    I've succesfully written and converted my equations to grob using your tool. However, I haven't been able to view the grob file in my calculator, after copying it I cannot see it with the file manager. Should I install anything to view the grob file?
    Thanks very much.
    Thanks for your words
    I haven't tried it with HP 48, but the grob file is a very simple way of encoding a bitmap, so it should work by default.
    Are the gifs generated properly?
    What I do is place it on the SD card, select it and press on "View" from the HP menu, I suppose it works more or less the same for HP 48.

  • Need to convert values into coma separated

    Need to convert values into coma separated
    I have a string value that stores data like 'NYK,IND,SGP,GER'
    FOR EXAMPLE
    V_CITY_CODE = 'NYK,IND,SGP,GER'
    When I query
    select * from city where city_code = V_CITY_CODE;I get no rows, this is because V_CITY_CODE has all city code as single code.
    I need a function to search , and replace with ','.
    I tried using instr and replace but was unable to convert it.
    could some one pls assist me.
    thanks in advance
    Saz

    Looking for this?
    SQL> select * from emp
      2  /
         EMPNO     DEPTNO ENAME                                 SAL DOJ       JOB
             1          1 Karthick                               80 03-DEC-11
             2          1 Karthick_1                             90 23-NOV-11
             3          2 Ram                                    80 03-DEC-11
             4          2 Ram_1                                  90 23-NOV-11
    SQL> var v_ename varchar2(1000)
    SQL> exec :v_ename := 'Karthick,Karthick_1'
    PL/SQL procedure successfully completed.
    SQL> select *
      2    from emp
      3   where ename in (
      4                     select regexp_substr(val, '[^,]+', 1, level)
      5                        from (select :v_ename val from dual)
      6                    connect by level <= length(val) - length(replace(val, ','))+1
      7                  ) 
      8  /
         EMPNO     DEPTNO ENAME                                 SAL DOJ       JOB
             1          1 Karthick                               80 03-DEC-11
             2          1 Karthick_1                             90 23-NOV-11

  • I finished making an animated .gif image in FireWorks. My question is, how do I convert it into video so that when I edit video, that every video editing program recognizes it? Long story short, How do I convert animated .gif files into video formats?

    I worked in Adobe FireWorks to make the animated .gif. What program do I use to convert the file from .gif to any video format: .mp4, .m4v, .avi, .wmv, etc. I want to convert it into video format, so that QuickTime Player plays the video, I can insert it into iMovie '11 and edit, and also insert it into Final Cut Pro X and edit video.

    Thanks for getting back with me so promptly.  It has taken me this time to connect with the proper people to find out the information you requested.
    The camera used to film the class was a Panasonic AG-HMC40P, owned by a local cable TV station; they use Kodak video encoding software, and a SD card was used to store the video.   The file extension is .mts, and the mime file is MPEG 2 transport.  He said I probably need an AVCHD converter, and the Mac app store lists 8 of those options, 4 free and 4 for up to $9.99.  He said I'll also need a converter for later plans of posting on YouTube or on the website, and while some of those in the app store might work for the later needs, he knows one app called "Compressor" that would work for the uploading later.  He also suggested I could try renaming the .mts file to .MP2T, but he wasn't sure that would work.
    They don't work with Macs at the studio, but I had thought I could have some lessons there in editing, and apply what I learned to my iMac and iMovie.
    First, though, I have to be able to see it and review it!
    Thanks again!

  • How to convert .class into .jar file

    Hi,
    How to convert .class into .jar file

    jsf_VWP5.5.1 wrote:
    Hi,
    How to convert .class into .jar fileFrom a command prompt, cd to the location of your .class file(s).
    If you want to create a simple jar, use: jar -cf Whatever.jar Whatever.class
    If you want to compile all .class files in a directory into a jar, use *.class instead.
    Now, I'm going to assume you want to create an executable jar... here's how to do that:
    1) Create a blank text file; for this example, lets call it main.txt.
    2) In the first line of main.txt, type: Main-class: Whatever ('Whatever' should be the name of the class in your program where the main() method is located)
    3) Press enter to go to the next line (someone please correct me if I'm wrong, but if you don't insert the line break/CR after the Main-class: statement, this will not work... in my experience, this is true)
    4) Make sure you save this file in the same directory as your .class file(s).
    5) Type: jar -cmf Whatever.jar main.txt Whatever.class
    ...and that's about it. For more information on the usage of the jar command and to understand the switches (such as -cmf), try jar --help.
    Hope that helps.

  • Convert numbers into words

    i work on release 11i application and converts some reports to run with xml publisher
    i want to convert a total field that exist in po report to words it seems to convert number into words isthat possible i tried to make this in oracle reports and it run successfully but there is a problem when converting that report to run with xml publisher .
    any help will be approtiated.

    Use ap_amount_utilities_pkg.ap_convert_number
    E.g.
    SQL> select ap_amount_utilities_pkg.ap_convert_number(trunc(12345678)) from dual;
    AP_AMOUNT_UTILITIES_PKG.AP_CONVERT_NUMBER(TRUNC(12345678))
    Twelve million three hundred forty-five thousand six hundred seventy-eight
    Gareth

  • I have 13 dollars left on an apple store gift card, how can I convert this into money for my iTunes account?

    I have 13 dollars left on an apple store gift card, how can I convert this into money for my iTunes account?

    You can't.

  • I have a number of pages with html extension in different files. Is it possible to merge them into one file? Is it possible to convert them into another file type such as PDF, MOBI, or EPUB? Thanks

    While downloading an eBook from internet, I found a book in a folder containing around 123 files, which is equivalent to the number of pages of the book.
    My interest is to bring them together in one file so that I can read it at a time. As the interface is not comfortable with html, I also like to convert it into another more suitable file format.

    Hello djensen1x,
    Could you please let me know what version of Acrobat are you using.
    Also, tell me your workflow of combining those PDF files?
    Please share the screenshot of the error message that you get.
    Hope to get your response.
    Regards,
    Anubha

  • How to convert BLOB into a String

    Hi,
    I got a blob column from the database.
    It contains one XML File.
    How to convert it into String.
    I need the code for how to convert the blob into String
    Thanks in Advance.

    A blob would be a byte-array, which you can use in the String(byte[]) constructor

  • Can i open eps file in photoshop element 12 and convert it into jpeg?

    can i open eps file in photoshop element 12 and convert it into jpeg?

    You can open it in Irfanview (free), then save as JPEG.
    Download the program here:
    IrfanView - Official Homepage - one of the most popular viewers worldwide

  • When I go into pdf file it only gives me the option to convert into pdf when it's already a pdf. I want to convert it into word and I've purchase this a few months ago now I need help

    I Need help in converting a pdf into word. I've purchased it a few months ago and now for the first time I tried to use word and I can't it only gives me the option to convert it into a pdf when it is already a pdf! Urgent help please

    Not sure what you mean by "tried to use Word". ExportPDF doesn't change what Word can do. Can you explain what you try and what happens in more detail?

  • How do I convert .pdf into searchable OCR using Adobe Acrobat Capture 3.0?

    How do I convert .pdf into searchable OCR using Adobe Acrobat
    Capture 3.0?
    Our division is digitizing it's files, and we've been using
    Adobe Acrobat 5.0 (2). We've 'scanned-in' several hundred
    documents, but they have been saved as .pdf files (which are
    currently not 'searchable', as they are only scanned images).
    We just received the Adobe Acrobat Capture 3.0 program, and
    we were told that we would be able to scan-in any new documents and
    save them both as .pdf and OCR documents (Optical Character
    Recognition). Therefore, we were told, we would be able to search
    through the body of the document, using OCR, and not just through
    the document filename, as we had been doing before.
    HOWEVER, we don't know how to use this new OCRing program.
    Also, we don't know how to convert the .pdf documents which we've
    already scanned into OCR recognizable documents.
    Is someone able to assist us here in this forum?
    Merci beaucoup / Shokran jazilan / Thank you very much!
    - Michael Kim Jamal Riegelman
    United Nations Headquarters
    Department of Peacekeeping Operations
    Europe and Latin America Division
    Office: (917) 367.9186
    Email: [email protected]

    Hi Michael
    Unfortunately I believe you have posted your issue in the
    wrong forum. I believe you are looking for the forum linked below.
    http://www.adobeforums.com/cgi-bin/webx/.ef7cbdf/
    You might try re-posting your issue there.
    Cheers and good luck! Rick

  • Making spool, convert it into PDF and send that PDf throgh EMAIl

    Hi,
    In my making ALV report. In that i want to make the spool  and then convert it into the pdf and send mail to the recepient.
    Atul

    Hi,
    please try the following code. It works for me.
    DATA : itab LIKE tline OCCURS 0 WITH HEADER LINE.
    DATA : file_name TYPE string.
    DATA : path LIKE pcfile-path.
    DATA : extension(5) TYPE c.
    DATA : name(100) TYPE c.
    DATA:receiver TYPE somlreci1-receiver  ,
         p_file   LIKE rlgrap-filename.
    declarations for PDF convertion
    DATA:  path1       TYPE string ,
           fullpath    TYPE string.
    DATA :textlines LIKE tline OCCURS 100 WITH HEADER LINE.
    DATA otf LIKE itcoo OCCURS 1000 WITH HEADER LINE.
    DATA it_lines LIKE tline OCCURS 100 WITH HEADER LINE.
    DATA options LIKE itcpo.
    DATA header LIKE thead.
    DATA result     LIKE     itcpp.
    DATA: bin_filesize TYPE i.
        fullpath type string.
    DATA: docdata LIKE sodocchgi1,
    objpack LIKE sopcklsti1 OCCURS 1 WITH HEADER LINE,
    objhead LIKE solisti1 OCCURS 1 WITH HEADER LINE,
    objtxt LIKE solisti1 OCCURS 10 WITH HEADER LINE,
    objbin LIKE solisti1 OCCURS 10 WITH HEADER LINE,
    objhex LIKE solix OCCURS 10 WITH HEADER LINE,
    reclist LIKE somlreci1 OCCURS 1 WITH HEADER LINE.
    DATA: tab_lines TYPE i,
    doc_size TYPE i,
    att_type LIKE soodk-objtp.
    DATA: listobject LIKE abaplist OCCURS 1 WITH HEADER LINE.
    DATA: filesize TYPE i,
          convcount TYPE i,
          cancel(1).
    textlines-tdformat = '*'.
    textlines-tdline    = 'Hello Hao'.
    APPEND textlines.
    options-tdgetotf = 'X'.
    options-tdnoprev = 'X'.
    CALL FUNCTION 'PRINT_TEXT'
      EXPORTING
      APPLICATION                    = 'TX'
      ARCHIVE_INDEX                  = ' '
      ARCHIVE_PARAMS                 = ' '
      DEVICE                         = 'PRINTER'
       dialog                         = ' '
        header                         = header
       OPTIONS                        = options
    IMPORTING
      NEW_ARCHIVE_PARAMS             =
       RESULT                         = RESULT
      tables
        lines                          =  textlines
       otfdata                        = otf
    EXCEPTIONS
      CANCELED                       = 1
      DEVICE                         = 2
      FORM                           = 3
      OPTIONS                        = 4
      UNCLOSED                       = 5
      UNKNOWN                        = 6
      FORMAT                         = 7
      TEXTFORMAT                     = 8
      COMMUNICATION                  = 9
      BAD_PAGEFORMAT_FOR_PRINT       = 10
      OTHERS                         = 11
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CALL FUNCTION 'CONVERT_OTF'
         EXPORTING
              format            = 'PDF'
         IMPORTING
              bin_filesize      = filesize
         TABLES
              otf               = otf
              lines             = it_lines
         EXCEPTIONS
              err_conv_not_possible = 1
              err_bad_otf           = 2.
    fullpath = 'C:/foldername/test.pdf'.
    CALL FUNCTION 'GUI_DOWNLOAD'
      EXPORTING
        bin_filesize                  = bin_filesize
        filename                      = fullpath
        filetype                      = 'BIN'
      APPEND                        = ' '
      CODEPAGE                      = ' '
      NO_BYTEORDER_MARK             = ' '
    IMPORTING
       FILELENGTH                    = c
      TABLES
        data_tab                      = it_lines
      FORMAT_TAB                    =
      EXCEPTIONS
        file_write_error              = 1
        no_batch                      = 2
        gui_refuse_filetransfer       = 3
        invalid_type                  = 4
        no_authority                  = 5
        unknown_error                 = 6.
    *filename = fullpath.
    CLEAR docdata.
    REFRESH objpack.
    CLEAR objpack.
    REFRESH objhead.
    REFRESH objtxt.
    CLEAR objtxt.
    REFRESH objbin.
    CLEAR objbin.
    REFRESH objhex.
    CLEAR objhex.
    REFRESH reclist.
    CLEAR reclist.
    REFRESH listobject.
    CLEAR listobject.
    CLEAR tab_lines.
    CLEAR doc_size.
    CLEAR att_type.
    Set Variables
    docdata-obj_name = 'Tst'.
    docdata-obj_descr = 'Testing'.
    reclist-receiver = give the mail id.
    reclist-rec_type = 'U'.
    APPEND reclist.
      CALL FUNCTION 'GUI_UPLOAD'
        EXPORTING
          filename                = fullpath
          filetype                = 'BIN'
        TABLES
          data_tab                = itab
        EXCEPTIONS
          file_open_error         = 1
          file_read_error         = 2
          no_batch                = 3
          gui_refuse_filetransfer = 4
          invalid_type            = 5
          no_authority            = 6
          unknown_error           = 7
          bad_data_format         = 8
          header_not_allowed      = 9
          separator_not_allowed   = 10
          header_too_long         = 11
          unknown_dp_error        = 12
          access_denied           = 13
          dp_out_of_memory        = 14
          disk_full               = 15
          dp_timeout              = 16
          OTHERS                  = 17.
      path = fullpath.
      CALL FUNCTION 'PC_SPLIT_COMPLETE_FILENAME'
      EXPORTING
      complete_filename = path
    CHECK_DOS_FORMAT =
      IMPORTING
    DRIVE =
      extension = extension
      name = name
    NAME_WITH_EXT =
    PATH =
      EXCEPTIONS
      invalid_drive = 1
      invalid_extension = 2
      invalid_name = 3
      invalid_path = 4
      OTHERS = 5
    DATA : pos TYPE i.
    DATA : len TYPE i.
    Loop And Put Data
    LOOP AT itab.
    pos = 255 - len.
    IF pos > 134.                         "length of pdf_table
    pos = 134.
    ENDIF.
    objbin+len = itab(pos).
    len = len + pos.
    IF len = 255.                         "length of out (contents_bin)
    APPEND objbin.
    CLEAR: objbin, len.
    IF pos < 134.
    objbin = itab+pos.
    len = 134 - pos.
    ENDIF.
    ENDIF.
    ENDLOOP.
    IF len > 0.
    APPEND objbin.
    ENDIF.
    Packing Info For Text Data
    DESCRIBE TABLE objtxt LINES tab_lines.
    READ TABLE objtxt INDEX tab_lines.
    docdata-doc_size = ( tab_lines - 1 ) * 255 + STRLEN( objtxt ).
    CLEAR objpack-transf_bin.
    objpack-head_start = 1.
    objpack-head_num = 0.
    objpack-body_start = 1.
    objpack-body_num = tab_lines.
    objpack-doc_type = 'TXT'.
    APPEND objpack.
    Packing Info Attachment
    name = extension.
    DESCRIBE TABLE objbin LINES tab_lines.
    READ TABLE objbin INDEX tab_lines.
    objpack-doc_size = ( tab_lines - 1 ) * 255 + STRLEN( objbin ).
    objpack-transf_bin = 'X'.
    objpack-head_start = 1.
    objpack-head_num = 0.
    objpack-body_start = 1.
    objpack-body_num = tab_lines.
    objpack-doc_type = name.
    objpack-obj_name = 'ATTACHMENT'.
    objpack-obj_descr = name.
    APPEND objpack.
    CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
    EXPORTING
    document_data = docdata
    put_in_outbox = 'X'
    commit_work = 'X' "used from rel. 6.10
    TABLES
    packing_list = objpack
    object_header = objhead
    contents_bin = objbin
    contents_txt = objtxt
    receivers = reclist
    EXCEPTIONS
    too_many_receivers = 1
    document_not_sent = 2
    document_type_not_exist = 3
    operation_no_authorization = 4
    parameter_error = 5
    x_error = 6
    enqueue_error = 7
    OTHERS = 8
    IF sy-subrc <> 0.
    MESSAGE ID 'SO' TYPE 'S' NUMBER '023'
    WITH docdata-obj_name.
    ENDIF.
    Keerthi

  • Methods in bapi used to convert data into XML

    Methods in bapi used to convert data into XML,
    how to implement those also,
    points will be rewarded
    Thank you,
    Regards,
    Jagrut BharatKumar Shukla

    Hi
    Check this
    http://www.sap-img.com/abap/sample-xml-source-code-for-sap.htm
    https://forums.sdn.sap.com/click.jspa?searchID=2889167&messageID=3406594
    Reward points for useful Answers
    Regards
    Anji

Maybe you are looking for

  • Restriction on document date in FI

    Dear Experts, I need to restrict the system as follow whenever a user run FI tcode for voucher entry, the system should not accept the entry if user entering document date greater than posting date. I m not getting how to do this. is ther any BAdi or

  • Filter xml file with as

    Looking for help with actionscript..... 1/ Have ComboBox on stage with prices say $5 to $10 - $10 to $20 etc 2/ Have xml file with assorted pricing 3/ Have loader to place pic 3/ Looking to sort prices selected in ComboBox to go into DataGrid not usi

  • How can i prove rac on linux is better than on windows ?

    Hi all, Is there any document or any thread on this forum which will help me prove that RAC on linux is better than on windows. Actually i did not recommend to my management windows os for RAC, now the management wants the reason why did not recommen

  • How do I replace an image that appears on selected pages on 4000 page doc?

    OK, I have a 4000 page document and I want to replace a poor qualty logo with a nice vector version, but the logo only appears on two continuous pages ever other three pages. ie the logo appears on P2-P3, P5-7, P9-11,P13-15 and so on. Cannot find an

  • Cannot see the tab for Financial Accounting in SPRO after Support Pack

    Hello, We applied support pack level 21 for SAP_APPL and after the application of it (Still in the correction phase), the tab for Financial Accounting has disapered from SPRO. Has anyone faced a problem like this before? Any pointers to the same will