How can i subtract budget and actuals amount from gl_balances in discoverer

I have a problem with a discoverer report.
The table is GL_BALANCES (Financials), and i tried to subtract data of current year and last year, same month, or data from actuals and budgets amounts.
Data from actuals have the "A" code in the ACTUAL_FLAG field, and budgets amounts have a "B" code. I construct a cross-tab report with ACTUAL_FLAG field in the "X" axis and the accounts segments in the "Y" axis (From GL_CODE_COMBINATIONS). The problem is: How can i substract budget and actuals amounts? Is the same field but differents columns in report.
I cannot use analytics function because the version of database does not support that .
Somebody told me: "...You need to construct a custom folder to handle this..."
I don't want to finish the reports in Excel...
Thanks.

Hi Miguel
You can either create a database view or custom folder to do this using aliases for the two joins to the same table.
For example, you need something like this in the body of the SQL:
select
act.code_combination_id,
nvl(act.period_net_dr,0) actual_net,
nvl(bgt.period_net_dt,0) budget_net,
nvl(bgt.period_net_dt,0) - nvl(act.period_net_dr,0) diff,
act.period_name
from
gl_balances act,
gl_balances bgt
where
act.set_of_books_id = bgt.set_of_books_id and
act.code_combination_id = bgt.code_combination_id and
act.period_name = bgt.period_name
Of course you will still need to add your own joins to get the code combinations but I trust you get the gist.
Hope this helps
Regards
Michael

Similar Messages

  • I have 2 Macs - an iMac that holds my entire iPhoto library and a Mac Book Pro that I use to hold a subset of the main library - how can I transfer photos and their metadata from the main library of the iMac to my Mac Book?

    I have 2 Macs - an iMac which holds my main iPhoto library and a Mac Book Pro which holds a subset of the library. How can I transfer photos and their metadata from the main library to the smaller 1 on the Mac Book Pro?

    Link the two Macs together and use iPhoto Library Manager
    Regards
    TD

  • My iPhone 5S drowned in a rainstorm. How can I retrieve contacts and text messages from iCloud backup onto my iPad mini?

    My iPhone 5S drowned in a rainstorm. How can I retrieve contacts and text messages from iCloud backup onto my iPad mini? There are some contacts on the iPad already but nowhere near all of them. I need to re-enter the contacts manually into an iPhone 4 as it does not support iOS 8.

    Let me get this straight.....You lost your phone.  You never backed it up, either to your computer or to a cloud service.
    How in the world would you expect to get data back?

  • How can I subtract in formcalc  sum(amount[0],amount[1],amount[2])

    How can I subtract amount[3] from this sum?  sum(amount[0],amount[1],amount[2])

    sum(amount[0], amount[1], amount[2]) - amount[3]
    Kyle

  • How can I merge bookmarks and saved passwords from two computers onto one computer?

    Before I got rid of my old computer, I backed up my profile folder on a thumb drive. Then, I got a new computer and started customizing firefox, adding bookmarks and new saved passwords, without ever uploading my passwords and bookmarks from my old computer 's profile. How can I add the bookmarks from my old computer's profile folder onto my new computer's new firefox profile?

    That is about saving your current bookmarks to an HTML file because you would lose those when you restore a JSON backup from the backup.
    *Bookmarks > Show All Bookmarks > Import & Backup > Export Bookmarks to HTML
    *Bookmarks > Show All Bookmarks > Import & Backup > Import Bookmarks from HTML

  • How can I save finished and shared movies from old iMovieHD-projects

    Hi there, I have a big problem:
    I have found some old iMovieHD 6 Projects. (.iMovieProject) that already have been finished years ago.
    Now I would like to save the finished movies outside the projects but I can't find a way to do this although I've been searching in the www for hours.
    When I go to the folder 'shared movies' I find a small .mov file - it's only some KB big.
    I can start this and the movie plays with no problem im QuickTime Player 7, the quality ist quite ok - original films were .DV from a camcorder.
    When I use iDVD I can take this movie without problems and burn it as DVD or .img on my hard disk.
    In this .img I can find the folder VIDEO-TS where I can find the movie al .VOB. But the Quality is really awful.
    How can I save the finished movie right out of the folder 'shared movies' in the best quality, maybe as .mov or other ?
    I can't install iMovieHD 6.0.3 because my old iLive install-DVD was sold with my old macbook years ago and I don't know if it would work  anyway on Mavericks 10.9.5
    Now I have iMovie 10 and 11. Importing the old projects would not solve the problem because only the original clips were imported, not the project itself.
    Would be QuickTime Pro a solution ? There are items like 'save as' or 'export' but I don't know if it works with this kind of files...

    Save the clips as Quicktime files (full quality), then you can import them into later versions of iMovie. An iMovie 6 project would not be compatible with recent versions of iMovie.

  • Why does iCal insist on formatting a phone number as a hyperlink? How can I prevent this, and prevent iCal from launching FaceTime in response to entering the phone number in the event box?

    I just want to enter a phone number into an event in iCal. I do not want to launch FaceTime. How can I just put a phone number in an iCal event, without OSX 10.10 insisting on launching FaceTime in response to entering the phone number? I use a Macbook Pro.

    Megantic wrote:
    Ever since I upgraded my iPhone 4S to iOS7, it has basically become a brick.  It constantly freezes, and the home button becomes completely inoperable.  People have suggested a number of fixes for the home button problem ("calibrating", tightening screws, etc.) but none of the fixes solved the problem.  Through trial and error, I've come to realize that the problem is that the phone doesn't have enough computing power and that too much of its RAM gets used up by background processes, causing the phone to freeze.
    I have found an app that stops unnecessary background processes currently running, frees up RAM, and lets the phone function properly (Free RAM 1.3). Once I've run this app, the phone functions perfectly.
    However, this clean up only happens each time the app is launched (ie: it does not continuously free up RAM).  So, I constantly have to run it (and sometimes am not able to because the phone is frozen and the home button won't work).
    When it is running, the app  displays the background processes that are running.  Looking at the list, there are many processes for which I have no need, such as processes related to automatic checking for app updates, processes related to iCloud (which I do not use), etc.  Preventing these processes from running in the first place would go a long way in making my phone more useable (being able to return to a previous iOS would be a better option, but Apple won't allow this).
    Here is my question:  is there a way to prevent unnecessary background processes from running at all?
    Which app is this?

  • How can I transfer text and call history from an iPhone 5 to an iPhone 6 Plus?

    I just received the iPhone 6 Plus today.  In moving information to it from my iPhone 5, I discovered that my text history, call history, and voicemail history haven't been transferred.  I had synced the iPhone 5 to iTunes and then synced the iPhone 6 Plus to iTunes.  But, since the operating system on the 6 Plus was newer than the 5, iTunes made me treat the 6 Plus as a new phone instead of just backing up the old phone.  How can I transfer the call, text, and voicemail history?

    Make a backup of the old device and restore the new device to that backup. You will get an exact duplicate of the old phone.

  • How can I remove red and green lines from a footage?

    I cannot remove red and green lines without removing the title graphics that I have in my footage. How can I solve the problem and keep the graphic there?

    @Ann Benns
    I will try to do that. Thank you!
    @Bill Hunt
    Well, the raw footage is an avi filmed with a handycam. This error occurred
    the next day after I finished the editing in Adobe Premiere cs5. It might
    be something wrong with the title graphics that I use, but still if there's
    a solution I would like to find it out as this error occurred before.
    Cristina

  • How can I stop thumbnails and keyword tags from rapid movement?

    PSE 10 for Mac: When going through catalog thumbnails or trying to locate a particular keyword tag, the images or the tags just whiz by rapidly.  How can I prevent this?  Thank you.

    I think even using Get Info may not reveal the change, though it is possible the behaviour has altered since I last tested it. Playing or updating the tracks location in a script such as UpdateTagInfo seems to get iTunes to re-evaluate the tag.
    Assuming WMP is involved it may be best to make the necessary settings adjustments to prevent further changes, use the script to get all of the background changes exposed within iTunes, then correct as you see fit. Alternatively I do have another script called ExportImport that could be used to back up the current state of your tags (you should temporarily rename the media folder during the export phase), after which you would then run UpdateTagInfo and then use ExplortImport in its import mode to restore the corrupted data.
    tt2

  • When I exit Firefox, it continues running in the background. How can I prevent this and keep it from happening apparently by default?

    I know that Firefox continues running in the background because after I exit the program, I use CCleaner and it indicates programs are still running: Firefox. This happens every time I exit Firefox. There seems to be a default mechanism to keep it running. How can I prevent this?

    See "Hang at exit":
    *http://kb.mozillazine.org/Firefox_hangs
    *https://support.mozilla.com/kb/Firefox+hangs

  • How can we retrieve list and library data from rest services

    Hi Everybody,
    How can we get the list or library data from sharepoint 2010 rest services.
    Here is the URL I am trying: https://siteurl/_vti_bin/listdata.svc
    Can anybody please provide sample c# code to pull the info.
    Thanks in advance,
    Krishna
    Krishnasandeep

    Here is reference material:
    http://msdn.microsoft.com/en-us/library/ff798339.aspx
    And an example:
    http://www.c-sharpcorner.com/uploadfile/anavijai/rest-api-in-sharepoint-2010-for-listdata-svc-part-2/
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • How can i subtract two numeric numeric numbers from two switch cases ?

    I have two switch cases in my labView program. I can see them individually on front panel but i need to subtract them and see the result on front panel. 
    Can someone please help me out...
    I am trying to display (Result1 - Result 2) on my front panel. Result1 and Result2 will change with time.
    Regards,
    Awais 
    Attachments:
    play4.vi ‏122 KB

    Move result 1 and result 2 out of the case structures and subract them.
    Right now result 1 or result 2 only get written to if its respective comparison is true.  What do you want to do with the math if either comparison is false?  You haven't defined your problem clearly enough.

  • How can I eliminate prefix and suffix fields from Apple Contacts?

    Apple Contacts has a terrible system that adds "Mr" or "Ms" in front of every name in my contacts and sometimes a suffix.  This is a truly bad feature.  There must be some way to eliminate these fields from Contacts.  How can the prefix and suffix fields be eliminated from Contacts?

    This might help: http://support.apple.com/kb/HT1495.

  • HT5262 during itunes backup how can i push contact and calendar information from my iphone to my computer

    I want to transfer all my contact and calendar info from my iphone 4s to my home computer (not a mac).  My home computer currently doesn't have this info on it.

    See Recover your iTunes library from your iPod or iOS device.
    tt2

Maybe you are looking for

  • Systemd network-route configuration: defining source-ip doesn't work

    I have a machine that has multiple outgoing IP -addresses (one of which is a Keepalived VIP) and I want to force outgoing traffic to use a certain IP. This is what I thought would be the best solution: [Match] Name=eth0 [Network] DNS=8.8.8.8 DNS=2001

  • EPM 11.1.2.2: Load sample data

    I have installed EPM 11.1.2.2 and now I'm trying to load the sample data. I could use help locating instructions that will help with this. While earlier versions of epm documentation seemed to have instructions for loading the sample data, I have yet

  • Resetting System Preferences

    I think, or rather know, this is pretty simple. I know because I was told how to replace or get rid of system preferences by an Apple tech when I first bought this Mac Pro (09 Quad). Alas, I didn't write it down at the time as I was in panic mode in

  • Lightroom 4.0 Löschen von Bildern

    Hi, in my case, LR 4 do not delete files from HD when I choose this item in LR 4. LR turnes the files to the wastebasket of windows, but they still stay on HD. In Win Explorer I can see and open them. My system: Win 7 professionel, 64 Bit and LR 4.0.

  • Sketchy response on WAN network port

    I've got a Mac Mini Snow Leopard Server. The built in ethernet is plugged into a switch that is outside the firewall the network is something like; IP : nn.nn.nn.23 SUBNET: 255.255.255.240 Gateway: nn.nn.nn.17 It plays well with my two other servers