Please help how to design query to implement this requirement.

Dear Expert,
Here is what I have and what the requirement is:
I have a InfoCube:
Dimensions:
1. Material
2. Currency
Key Figures:
1. Qty
2. Amount
We want to get the Qty and Amount by Material, but use Currency to be the filter.
It means for example, if the Currency have CNY for one material, we need to show all the Qty/Amount, not only Qty/Amount in CNY.
So please help give some idea about how to design the query to implement this requirement.
Thank you,
Andy

Hi Andy:
To accomplish your requirement you need to do 2 things:
1. Create a Variable for the Currency (to be used as the Target Currency not as a filter for the Characteristic itself).
2. Use the Standard Currency Conversion for the Amount Key Figure (Conversion Tab).
This way, while executing the report you can select any currency you want and all the amounts will be converted to that currency.
Take a look at this paper:
"How to... Use Variables for Currency Conversion"
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/287bab90-0201-0010-f48e-cc55b0cd13d0?quicklink=index&overridelayout=true
A more detailed explanation can be found on this article provided by Ramakrishna Gattikoppula:
"Currency Conversion in BI 7.0"
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a0d5bf96-b19b-2c10-e3b6-e2f12a3de99a?quicklink=index&overridelayout=true
In summary, to work with the Standard Currency Conversion you need to define 4 things:
- Exchange Rate Type.
- Source Currency.
- Target Currency.
- Time Reference.
Regards,
Francisco Milán.
Edited by: Francisco Milan on May 31, 2010 11:19 AM

Similar Messages

  • Please help me to write a function for this requirement!

    Hi,
        I have created a stored procedure which accepts 2 input parameters (param1 & param2 ) and its output is 'Score'
    Eg:
    Exec uspScorecalculation StudentID,DeptID 
    output: 85
    Now, My requirement is , I want to populate this value as one of the columns in a 'Select' statement.
    Can you please give me some input like how can i write a funtion to retrieve this score from the procedure and use it in the select statement?
    I assume,  the funciton should pass the two parameters into the stored procedure 'uspScorecalculation'  and retreives the Score.
    Can you please help me on this?
    thanks!

    >> I have created a stored procedure which accepts 2 input parameters (param1 & param2 ) and its output is 'Score' <<
    We have no idea from this posting what this procedure does. No code. No spec. Only a vague, useless narrative. 
    We do not put that silly “usp_” prefix on a proc name; this is one version of tibbling. When we wrote in FORTRAN I and II, we had to put “fn_” on user functions name. A procedure uses a “<verb>_<object>” format. Have you read ISO-11179 Standards
    or any book on data modeling?  
    EXEC Calculate_Something_Score student_id, dept_id; 
    >> Now, My requirement is, I want to populate this value as one of the columns in a 'SELECT' statement. <<
    Populate a column? We do not do that in a declarative language like SQL. The row with that column comes into existence all at once, and all the rows in the table come into existence all at once. This is a set-oriented language. 
    >> Can you please give me some input like how can I write a function to retrieve this score from the procedure and use it in the SELECT statement? <<
    NO! An SQL programmer will take the body of the procedure and replace the parameters with column names. It will be part of a SELECT statement and not a function call. We hate UDFs and other procedural constructs. 
    Please post the code and DDL, if you want help. Your failure and rudeness in not following Netiquette only hurt yourself. Your mindset is still locking into 1960's FORTRAN, not SQL. 
    --CELKO-- Books in Celko Series for Morgan-Kaufmann Publishing: Analytics and OLAP in SQL / Data and Databases: Concepts in Practice Data / Measurements and Standards in SQL SQL for Smarties / SQL Programming Style / SQL Puzzles and Answers / Thinking
    in Sets / Trees and Hierarchies in SQL

  • Please help, how can i reset my "forget this device" in bluetooth, without my restrictions passcode?

    Hi, i got some new bluetooth headphones which are really good but one time i accidentally pressed "forget this device", and now my ipod cant find the headphones. I did some reading online and i tried to "reset all settings" but i needed my restrictions passcode, which i have forgotten ( well actually i dont remember making one, because i know i would forget it ). Can anyone help me because at the moment i cant use my new headphones ?

    You will not like the answer
    Forgotten RESTRICTIONS Passcode
    - Place the iOS device in Recovery Mode and restore via iTunes. For how to restore: iTunes: Restoring iOS software
    You have to either:
    - Restore from a backup that was make before you added the Restrictions passcode. If you restore from a backup made with the Restrictions passcode the Restrictions passcode is also restored.
    - Restore to factory settings/new iPod

  • Please help how to use WITH query in UPDATE

    Hi Experts,
    Please help me.
    Thanks.

    Not sure about your required output. But try using WITH clause query inside SET clause of UPDATE statement.
       UPDATE SALES_REVENUE SR
        SET
                 (SR.TODAY_REV,
                 SR.TODAY_MARGIN,
                 SR.TODAY_UNIT
                 ) =
    (WITH result_sum_temp
    AS(
        SELECT SALE_ID, IN_TEAM, 1 SALE_FLAG, loc, seg,
            SUM(REV * rate) AS sum_rev,
            SUM(MARGIN * rate) AS sum_mar,
            SUM(UNIT) AS SUM_UNIT
        FROM SALES
        WHERE (IGNORED IS NULL OR IGNORED <> 'Y')
        AND SALE_SPOT = 7
        AND SALE_ID = 375
        AND SALE_MODEL = 'D'
        AND IN_TEAM IS NOT NULL AND loc IS NOT NULL
        GROUP BY SALE_ID, IN_TEAM, loc, seg
         UNION ALL
        SELECT SALE_ID, OUT_TEAM, 2 SALE_FLAG, loc, seg,
            SUM(REV * rate) AS sum_rev,
            SUM(MARGIN * rate) AS sum_mar,
            SUM(UNIT) AS SUM_UNIT
        FROM SALES
        WHERE (IGNORED IS NULL OR IGNORED <> 'Y')
        AND SALE_SPOT = 2
        AND SALE_ID = 375
        AND SALE_MODEL = 'D'
        AND OUT_TEAM IS NOT NULL AND loc IS NOT NULL
        GROUP BY SALE_ID, OUT_TEAM, loc, seg)
                    (SELECT   t.sum_rev, t.sum_mar, t.sum_unit
                       FROM   result_sum_temp t
                      WHERE       SR.SALE_ID = t.SALE_ID
                              AND SR.team_id = t.team_id
                              AND SR.SALE_FLAG = t.SALE_FLAG
                              AND SR.SEG = t.seg
                              AND SR.loc = t.loc
                              AND t.SALE_ID = 255)
        WHERE   SR.SALE_SPOT = 890
                AND SR.SALE_ID = 255
                AND (SR.SALE_ID, SR.team_id, SR.sale_flag, SR.SEGMENT, SR.LOB) IN
                          (SELECT   SALE_ID,
                                    team_id,
                                    sale_flag,
                                    seg,
                                    loc
                             FROM   result_sum_temp));

  • Hi, when ever I'm using 3G, on my Iphone4 sim stops working and Network is lost, this started after I updated my phone with  6.0.1(10A523)version. Please help how to solve this problem.

    Hi, when ever I'm using 3G, on my Iphone4 sim stops working and network is lost, this started after I updated my phone with  6.0.1(10A523)version. Please help how to solve this problem. Thanks.

    Photos/videos in the Camera Roll are not synced. Photos/videos in the Camera Roll are not touched with the iTunes sync process. Photos/videos in the Camera Roll can be imported by your computer which is not handled by iTunes. Most importing software includes an option to delete the photos/videos from the Camera Roll after the import process is complete. If is my understanding that some Windows import software supports importing photos from the Camera Roll, but not videos. Regardless, the import software should not delete the photos/videos from the Camera Roll unless you set the app to do so.
    Photos/videos in the Camera Roll are included with your iPhone's backup. If you synced your iPhone with iTunes before the videos on the Camera Roll went missing and you haven't synced your iPhone with iTunes since they went missing, you can try restoring the iPhone with iTunes from the iPhone's backup. Don't sync the iPhone with iTunes again and decline the prompt to update the iPhone's backup after selecting Restore.

  • After updating my Macbook Pro retina display to os x yosemite 10.10.2, the mause and track pad locks, and do not respond especially when using the Mac for a long period, please help, how can I solve this, I do not like feel like in windows, so I paid

    after updating my Macbook Pro retina display to os x yosemite 10.10.2, the mause and track pad locks, and do not respond especially when using the Mac for a long period, please help, how can I solve this, I do not like feel like in windows, so I paid good money for this mack, I feel calm

    Hi Buterem,
    I'm sorry to hear you are having issues with your MacBook Pro since your recent Yosemite update. I also apologize, I'm a bit unclear on the exact nature of the issue you are describing. If you are having intermittent but persistent responsiveness issues with your mouse or trackpad, you may want to try using Activity Monitor to see if these incidents correspond to occupied system resources, especially system memory or CPU. You may find the following article helpful:
    How to use Activity Monitor - Apple Support
    If the entire system hangs or locks up (for example, if the system clock freezes and stops counting up), you may also be experiencing some variety of Kernel Panic. If that is the case, you may also find this article useful:
    OS X: When your computer spontaneously restarts or displays "Your computer restarted because of a problem." - Apple Support
    Regards,
    - Brenden

  • HT201270 i have just updated my old 3GS and now when i am on restore the window is comming up and asking for a password. i have not set up a password for restore, please help how i can restore my date???

    i have just updated my old 3GS and now when i am on restore the window is comming up and asking for a password. i have not set up a password for restore, please help how i can restore my date???

    capriz wrote:
    i have just updated my old 3GS ...
    To what... iOS 7 is Not supported on the 3 GS

  • Please Help,how do i get my iphone 4 to play all my songs from icloud, it is currently only playing just a smal number of songs from my library which is stored in icloud.

    Please Help,how do i get my iphone 4 to play all my songs from icloud, it is currently only playing just a smal number of songs from my library which is stored in icloud.

    There are a number of OS X apps, many free, that will save your messages, allowing to view and print them. 
    http://www.softwarebbs.com/wiki/How_to_transfer_SMS_from_iPhone_to_Mac,_backup_i Phone_SMS_message_on_Mac
    Google, for other options
    Your "other" of 6 GB may include corrupted data or file sytem errors. If after removing the messages there is still >2GB, you will need to restore the phone in iTunes, first using a backup (made after deleting the messages) and if needed as a new iPhone.
    iTunes: Restoring iOS software

  • I bought a used iphone from a friend and I am not able to use it in Ethiopia. It is carrier blocked. Can you please help how could I unlock my iphone 4?.

    I bought a used iphone from a friend and I am not able to use it in Ethiopia. It is carrier blocked. Can you please help how could I unlock my iphone 4?.

    Unlikely as you do not meet there requirements for unlocking.
    Have your friend the provided the phone contact them.  Based on your statements I am concluding he was or still is an AT&T customer, that is one of the requirements of getting the device unlocked.

  • For updation of IOS 7.1.1 passcode required,I forget my passcode please help how can I get my passcode

    Hello,
    I forget my passcode please help how can I get my it

    You will need to try to restore your iPad from the same computer that you most recently synced to.
    Read this: http://support.apple.com/kb/ht1212
    If you can't do the restore then you will need to try Recovery Mode.
    Read this: http://support.apple.com/kb/ht1808
    Follow the instructions very carefully.

  • I have windows 8 and I got this error "Adobe Photoshop has stopped working" whenever I start a program. please help. how can I fix this problem? many thanks

    i have windows 8 and I got this error "Adobe Photoshop has stopped working" whenever I start a program. please help. how can I fix this problem? many thanks

    Please read these and proceed accordingly:
    http://blogs.adobe.com/crawlspace/2012/07/photoshop-basic-troubleshooting-steps-to-fix-mos t-issues.html
    http://forums.adobe.com/docs/DOC-2325

  • I want to cahage my peyment method ( i wana do take out my credit card  from there) please help how???

    want to cahage my peyment method ( i wana do take out my credit card  from there) please help how???

    You can't change to 'None' until you clear up the previous payment problem.  Add a fresh iTunes gift card, or add a credit card, and then once the billing issue clears, you can choose 'None' again.

  • Hi, please help my other daughter her ipod touch is disabled connect to itunes after say its itunes couldnt connect to the ipod touch coz its is locked with a passcode?? please help how...

    hi, my daughter hers ipod touch is disabled connect to itunes after say its itunes couldnot connect to the "ipod touch" because its is locked with a passcode please help how to fix connect...i did turn off her ipod touch put usb back on there same in doenot say still ipod is disabled i dont understand please help how???

    If You Are Locked Out Or Have Forgotten Your Passcode or Just Need to Restore Your Device
      1. iTunes 10 for Mac- Update and restore software on iPod, iPhone, or iPad
      2. iPhone, iPad, iPod touch: Wrong passcode results in red disabled screen
      3. iOS- Understanding passcodes
         If you have forgotten your Restrictions code, then follow the instructions
         below but DO NOT restore any previous backup. If you do then you will
         simply be restoring the old Restrictions code you have forgotten. This
         same warning applies if you need to restore a clean system.
    A Complete Guide to Restore or Recover Your iDevice (if You Forget Your Passcode)
    If you need to restore your device or ff you cannot remember the passcode, then you will need to restore your device using the computer with which you last synced it. This allows you to reset your passcode and re-sync the data from the device (or restore from a backup). If you restore on a different computer that was never synced with the device, you will be able to unlock the device for use and remove the passcode, but your data will not be present. Refer to Updating and restoring iPhone, iPad and iPod touch software.
    Try restoring the iOS device if backing up and erasing all content and settings doesn't resolve the issue. Using iTunes to restore iOS devices is part of standard isolation troubleshooting. Restoring your device will delete all data and content, including songs, videos, contacts, photos, and calendar information, and will restore all settings to their factory condition.
    Before restoring your iOS device, Apple recommends that you either sync with iTunes to transfer any purchases you have made, or back up new data (data acquired after your last sync). If you have movie rentals on the device, see iTunes Store movie rental usage rights in the United States before restoring.
    Follow these steps to restore your device:
         1. Verify that you are using the latest version of iTunes before attempting to update.
         2. Connect your device to your computer.
         3. Select your iPhone, iPad, or iPod touch when it appears in iTunes under Devices.
         4. Select the Summary tab.
         5. Select the Restore option.
         6. When prompted to back up your settings before restoring, select the Back Up
             option (see in the image below). If you have just backed up the device, it is not
             necessary to create another.
         7. Select the Restore option when iTunes prompts you (as long as you've backed up,
             you should not have to worry about restoring your iOS device).
         8. When the restore process has completed, the device restarts and displays the Apple
             logo while starting up:
               After a restore, the iOS device displays the "Connect to iTunes" screen. For updating
              to iOS 5 or later, follow the steps in the iOS Setup Assistant. For earlier versions of
              iOS, keep your device connected until the "Connect to iTunes" screen goes away or
              you see "iPhone is activated."
         9. The final step is to restore your device from a previous backup. If you do not have a
              backup to restore, then restore as New.
    If you are restoring to fix a forgotten Restrictions Code or as a New device, then skip Step 9 and restore as New.

  • Please help -- How can I install flash player plugin (version 8) in browser without downloading setup or redirecting to macromedia site if flash plugin is not available in browser

    Hi,
    Please help
    How can I install flash player plugin (version 8) in browser
    without
    downloading setup or redirecting to macromedia site if flash
    plugin is not
    available in browser
    Thanks

    Via Javascripting. Look for Flash detection kits at the
    Adobe/Maromedia web
    site and also at Internet search engines.
    As well this forum focuses on database access issues and you
    might find more
    takers for this type of question in the Flash General forum.
    Lon Hosford
    www.lonhosford.com
    May many happy bits flow your way!
    "jiby" <[email protected]> wrote in message
    news:e3odp2$pdc$[email protected]..
    Hi,
    Please help
    How can I install flash player plugin (version 8) in browser
    without
    downloading setup or redirecting to macromedia site if flash
    plugin is not
    available in browser
    Thanks

  • IPhoto app stops responding upon launch. Please help how I can fix this problem., iPhoto app stops responding upon launch. Please help how I can fix this problem.

    iPhoto app stops responding upon launch. Please help how I can fix this problem., iPhoto app stops responding upon launch. Please help how I can fix this problem.

    Please clarify:
    What is your iPhoto version?
    And what do you mean by "not responding"? Is iPhoto hanging and showing the spinning beachball?
    Can you launch iPhoto, if you hold down the options key while launching and select or create a different library?

Maybe you are looking for