'ToDate function doesn't work when I select a month

Hello all,
I've got a problem. It worked before, but can't get it to work anymore
I have a fact called XXOBI_GL_LINES_MV which has a column Amount_accounted. Now I want to use the ToDate function which look something like this:
ToDate(XXOBI_GL_LINES_MV,TIMEDIM.YEAR)
So I want to create a year to date.
Now when I make a report it all works fine. Except when I add a column of the time dimension to the report.
But the strange thing is, it worked, but I can't get it to work anymore so I hope someone can help me out!!
Best regards,
Remc0

I don't know if this adds any value, but this is the query it generates:
select D1.c1 as c1,
D1.c2 as c2,
D1.c3 as c3,
D1.c4 as c4
from
(select D2.c4 as c1,
sum(T12332.AMOUNT_ACCOUNTED * -1) as c2,
D2.c3 as c3,
D2.c5 as c4
from
XXOBI_GL_LINES_MV T12332 /* Feit - Journaal */ ,
(select distinct min(D1.c1) over (partition by D1.c4) as c1,
min(D1.c2) over (partition by D1.c4, D1.c3) as c2,
D1.c3 as c3
from
(select Case when case D1.c5 when 1 then D1.c3 else NULL end is not null then Rank() OVER ( ORDER BY case D1.c5 when 1 then D1.c3 else NULL end ASC NULLS LAST ) end as c1,
Case when case D1.c6 when 1 then D1.c3 else NULL end is not null then Rank() OVER ( PARTITION BY D1.c4 ORDER BY case D1.c6 when 1 then D1.c3 else NULL end ASC NULLS LAST ) end as c2,
D1.c3 as c3,
D1.c4 as c4
from
(select T12378.DAY_DATE as c3,
T12378.YEAR_ID as c4,
ROW_NUMBER() OVER (PARTITION BY T12378.YEAR_ID ORDER BY T12378.YEAR_ID DESC) as c5,
ROW_NUMBER() OVER (PARTITION BY T12378.YEAR_ID, T12378.DAY_DATE ORDER BY T12378.YEAR_ID DESC, T12378.DAY_DATE DESC) as c6
from
XXOBI_TIME_MV T12378 /* Dim - Tijd */
) D1
) D1
) D3,
(select distinct min(D1.c1) over (partition by D1.c5) as c1,
min(D1.c2) over (partition by D1.c5, D1.c6) as c2,
D1.c3 as c3,
D1.c4 as c4,
D1.c5 as c5
from
(select Case when case D1.c7 when 1 then D1.c6 else NULL end is not null then Rank() OVER ( ORDER BY case D1.c7 when 1 then D1.c6 else NULL end ASC NULLS LAST ) end as c1,
Case when case D1.c8 when 1 then D1.c6 else NULL end is not null then Rank() OVER ( PARTITION BY D1.c5 ORDER BY case D1.c8 when 1 then D1.c6 else NULL end ASC NULLS LAST ) end as c2,
D1.c3 as c3,
D1.c4 as c4,
D1.c5 as c5,
D1.c6 as c6
from
(select T12378.MONTH_ID as c3,
T12378.MONTH_DESCR as c4,
T12378.YEAR_ID as c5,
T12378.DAY_DATE as c6,
ROW_NUMBER() OVER (PARTITION BY T12378.YEAR_ID ORDER BY T12378.YEAR_ID DESC) as c7,
ROW_NUMBER() OVER (PARTITION BY T12378.YEAR_ID, T12378.DAY_DATE ORDER BY T12378.YEAR_ID DESC, T12378.DAY_DATE DESC) as c8
from
XXOBI_TIME_MV T12378 /* Dim - Tijd */
) D1
) D1
) D2
where ( T12332.EFFECTIVE_DATE = D3.c3 and D2.c1 = D3.c1 and D2.c4 = 'January 2009' and D2.c2 >= D3.c2 )
group by D2.c3, D2.c4, D2.c5
) D1

Similar Messages

  • Export to Excel functionality doesn't work when DataControlScope is shared.

    Hi All,
    I have a taskflow whose transaction setting is as Below:
    1.Always Begin New Transaction
    2.DataControlScope is isolated(Share data controls with calling task flow checkbox is unchecked).
    I have an Export to Excel functionality with exportCollectionActionListener.The jsff source snippet is given below.
    <af:commandMenuItem text="#{smviewcontrollerBundle.EXPORT_TO_EXCEL}"
    id="cmi1" icon="/images/excel_icon.jpg"
    binding="#{backingBeanScope.backing_fragments_RefSetSearch.cmi1}">
    <af:exportCollectionActionListener exportedId="resId1"
    type="excelHTML"
    filename="SmRefSetCodes"
    title="System Reference Inquiry Result"/>
    </af:commandMenuItem>
    The jsff is used in the above mentioned task-flow.Having this configuration in task-flow,export to excel doesn't export any table data in the excel sheet.But the moment,data-control-scope is changed to shared,export starts working.
    Is there any specific reason on this kind of behavior.
    In all other task-flows in my application,I have data-control-scope as isolated only,but there,export is working perfectly fine.
    Please help.
    Thanks,
    Gaurav

    Hi Frank,
    Thanks for your reply.
    Exactly,I have just one task-flow in which I have a page fragment for which export to excel is not working.The moment I change the data-control-scope to shared,export functionality starts working.
    I do have correct table id mentioned in exportCollectionListener.
    Is there anything I need to look into?
    Thanks,
    Gaurav.

  • Quit LabVIEW function doesn't work when called from Actor Framework

    This is related to a known bug. Details can be found in a discussion we had with LV R&D here: https://decibel.ni.com/content/docs/DOC-28012
    I need a functional workaround to this bug because my application's top-level panel is an Actor Core.vi override. Can the AEs please help, as suggested by Aristos_Queue (LV R&D member) in the link above?

    Hi David,
    Were you able to try the workaround AristosQueue gave you? Below is the workaround he suggested.
    Not sure, but I think that it will work just fine if you start a VI running using the Run VI method and have it invoke the Quit LabVIEW node. Not the Call By Reference node, but just wire a Static VI Reference to the Run VI method with FALSE wired to the terminal for whether to wait for it to finish. That subVI will then be running as a top-level VI on its own... and the only thing on its diagram would be the Quit LabVIEW node. I think that will work. Haven't tried it, but based on the description in the CAR, I think it will work.
    Carl W.
    Applications Engineering
    National Instruments

  • Lightroom 5.7.1, Yosemite OS X - Synchronise Folder function doesn't work in Lr. Is there a compatibility issue? I can see the folders/images in Finder but when trying to synchronise folders in Lr it does not recognise that there are any images and theref

    Lightroom 5.7.1, Yosemite OS X - Synchronise Folder function doesn't work in Lr.
    Is there a compatibility issue? I can see the folders/images in Finder but when trying to synchronise folders in Lr it does not recognise that there are any images and therefore unable to import to catalogue. Anyone has any idea how to make it work. Thanks a lot.

    Hi Elba,
    Thank you very much for your reply. Not sure, however, that we are talking about the same problem.
    I am trying to perform the same function in Lr that I have been doing for many years in the past and has only been a problem in the last few days (possibly coinciding with upgrading to Yosemite, trying to find out whether that is the problem)
    I am not intending to sync any files with Creative Cloud but only trying to use 'Synchronize Folder' function in Lr. Normally, I would right click on a particular folder in Lr catalogue and click on that function to check that the Lr Catalogue is perfectly matching my drives where the original photos are actually stored.
    The problem that I only started to encounter is that I can see the files on the actual drives but they do not appear in my Lr Catalogue and they are completely invisible to Lr. I simply can not get Lr to recognise them and then import them to catalogue.
    If for example, I export images to Ps and then save and close them, they do appear on my drive but are invisible to Lr and I can't get them imported into the catalogue. Import to folder also not producing any results as they are still invisible to Lr.
    Completely baffled by it. Any idea what could be the reason?
    Kind regards,
    Nik

  • The to_date function doesn't work ?

    Hello
    I don't know why my to_date function doesn't work on my pc.
    my statement is pretty complex so i just tried simple one
    select to_date('10-Jan-2006','dd-mon-yyyy') from dual;
    but even this one doesn't work it says it is invalid month
    howcome?
    is it because my Windows XP (not english version) doesn't recognise month Jan?
    i tried it another place it worked
    so is there any language pack / patch i need to install? ?
    so does OS matters?
    or how to fix this..please help me

    By default SQL Developer picks up it's language settings up from (on Windows) the Regional and Language Options. You can see what it has set by querying the NLS_SESSION_PARAMETERS view.
    Assuming you don't want to change to using DD-MM-YYYY formats for your months or change your regional settings on your PC, you need to tell SQL Developer which language you want, which you can do by adding the following lines to the file sqldeveloper\jdev\bin\sqldeveloper.conf:
    AddVMOption -Duser.language=en
    AddVMOption -Duser.country=US

  • BitmapData draw method doesn't work when the project is published as the .swf file of the web applic

    Hi,
            I am totally confused by this strange error. When I tried using the draw method of BitmapData to draw a movieclip symbol of my project, it seems to work fine locally. However, as I uploaded the published .swf file to my web server and launched it as the plugin of my web application, it failed. The source codes as follows,
    function printscreenClicked():void
         //ExternalInterface.call calls a javascript function to print message1
        var bd:BitmapData = new BitmapData(stage.width,stage.height);
        //ExternalInterface.call calls a javascript function to print message2
      bd.draw(stage);
        //ExternalInterface.call calls a javascript function to print message3
    message3 didn't show at all. Instead, the browser console shows "Uncaught Error: Error calling method on NPObject.". My understanding of this error message is that the .swf is calling something crashing, and I believe that bd.draw(stage)is the crashng method call.
    Also, here is my html embed tag:
        <embed src="/tests/videoplayer.swf" id="flash" quality="high" height="510" width="990" scale="exactfit" name="squambido" align="middle" allowscriptaccess="always" allowfullscreen="true" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" style="margin: 0px auto;clear:both;position:relative;"/>
    Can someone help me?

    Thank you for your reply.
    I tried stageWidth and stageHeight, but it still doesn't work.
    The draw() methid is triggered when I clicked a screenshot button in my application as follows,
    ExternalInterface.addCallback("printscreenClicked", printscreenClicked);
    function printscreenClicked():void
         //ExternalInterface.call calls a javascript function to print message1
        var bd:BitmapData = new BitmapData(stage.width,stage.height);
        //ExternalInterface.call calls a javascript function to print message2
      bd.draw(stage);
        //ExternalInterface.call calls a javascript function to print message3
    Would you please give me an example of "waiting for Event.RESIZE is good, or just at least Event.ENTER_FRAME"?
    My real purpose in this application is to capture a snapshot of a streaming video. The video is contained in a movieclip object. I tried stage first since BirmapData.draw() doesn't work when drawing the movieclip on the web site. Do you have any suggestion for this situation? Also, is there any good method to find out what happened if the browser have "Uncaught Error: Error calling method on NPObject."?

  • I have Adobe Acrobat 9.5.4 installed on my computer and it doesn't work when PDFing

    I have Adobe Acrobat 9.5.4 installed on my computer and it doesn't work when PDFing my document using Microft Word 2010. I have tried using the tab add-in, but it doesn't respond either. The only way to convert my document is to save it as a .pdf from the save as drop down box. I need to be able to have the full functionability of creating a PDF document with the tabs and links working.
    Please help!

    From OFFICE 2010 you either have to have AA X or just print to the Adobe PDF printer. You give no information on your operating system or specifically what you mean by PDFing -- there are multiple ways to create a PDF from a WORD document and you have given no information. However, in this case your only choice is to print to the Adobe PDF printer. Otherwise, you need to upgrade Acrobat.

  • [Photoshop CC 2014] Click&hold-move-release doesn't work when adding adjustment layer from the layer panel

    When selecting a menu item I used to click the left mouse button and hold it down, move the pointer to the desired menu item and release the mouse button. Everything works fine in the mine menu, but there's a problem when adding new adjustment layer from the layer panel: when I release the button nothing happens, I have to press the button again. In previous PS version it worked fine. How can I fix this?

    I don't think that is user fixable, meaning you'll have to wait till adobe fixes it with an update.
    Photoshop cc 2014
    windows does not work
    mac does work
    Did you already post over here:
    [Photoshop CC 2014] Click&hold-move-release doesn't work when adding adjustment layer from the layer panel

  • TS1398 The internet on my Iphone 4 doesn't work when I use the Wifi

    The internet on my Iphone 4 doesn't work when I use the Wifi at home. My Mac works fine. On the Iphone it shows it's connected but it doesn't open any app. Anyone knows what to do? Thanks

    Ÿ. If you tap and hold the "Y" does it appear? If so, just slide your finger up to select.

  • It doesn't work when I press "transfer purchased items from ipod" and I don't know specidicly whitch item I need to transfer

    It doesn't work when I press "transfer purchased items from ipod" and I don't know specidicly whitch item I need to transfer.
    Whenever i press "transfer purchased items from ipod", itunes sync's for about 3 seconds, but I still can't install updates on the ipod without itues warning me about purchased items on the ipod, that aren't in the itunes library. I've tried folowing the steps in itunes help, but I can only find a step guide for when you know the specific item that needs transferring, and I donøt know that specific item.

    This Apple Tech Note explains the process:
    http://support.apple.com/kb/ht1848
    It will transfer all purchased items that the computer you are transferring to is authorised to play: you don't have to select the items.

  • Sort function doesn't work E12

    the sort function doesn't work half the time on Elements 12 organizer.

    What about FUNCTION CLOCK_INFormula
    RETURN NUMBER
    IS
        l_hours_worked  NUMBER;
        l_to_return     NUMBER;
    BEGIN
        l_hours_worked := TO_NUMBER(NVL(:ATX_CLOCK_IN,'0'));
        IF (MOD((l_hours_worked - 0.02),0.25) = 0) THEN
            l_to_return := TRUNC((l_hours_worked - 0.02) * 4) / 4;
        ELSE
            l_to_return := TRUNC((l_hours_worked + 0.23) * 4) / 4;
        END IF;
        RETURN (l_to_return);
    EXCEPTION  
        WHEN VALUE_ERROR THEN
            RAISE_APPLICATION_ERROR ( -20100
            ,   'ERROR, Cannot represent '
            ||  :ATX_CLOCK_IN
            ||  ' as a number.');
    END CLOCK_INFormula;?
    This function assumes :ATX_CLOCK_IN is always positive.
    T.

  • How do I delete items in my calendar when it doesn't work when I hover them over the trash can?

    How do I delete items in my calendar when it doesn't work when I hover them over the trash can?

    There are several ways
         - Selecting the event and hitting the "delete" key on your keyboard (as Wayne Contello said)
         - Selecting the event and opening the "edit" dropdown menubar item, and then selecting "delete"
         - Selecting the event and right clicking, then selecting "cut" (this option puts the event on your clipboard)

  • Tap function doesn't work, recovered files in bin etc

    Hi
    I'm using Mac Book Pro 13' - Mac OS 10.6.8
    1) Every time, I switched on my laptop, the one finger (tap to click) function doesn't work (although I have set it up).
    I have to go to 'systems preferences' to set it up again.
    2) Why is there 'Recovered files' in the trash bin each I switched on my laptop? How to get rid of it?
    3) Sometimes when I work using Word 2011, it takes a long time to save (the little icon will be swirling and swirling) and then I had to force quit and lose unsaved info. Why does this happen and how to avoid it from happening?
    Pls help me. I'm in the middle of my thesis submission and urgently need solutions to my Mac problems. Thanks!

    Reinstall Photoshop. That often fixes the issue.

  • I've gotten 60 or 70 messages that that my iCloud doesn't work and to select preferences.  The message says I will get an email to verify but I never get an email.  I've checked old email, blocked email, and have low filters on emails.  Any ideas?

    've gotten 60 or 70 messages that that my iCloud doesn't work and to select preferences.  The message says I will get an email to verify but I never get an email.  I've checked old email, blocked email, and have low filters on emails.  Any ideas?

    Hey CarolinQc,
    Thanks for the question. The symptoms you are experiencing can result from an Apple ID address that has been changed prior to signing out of all of the services. Before you change the email address associated with your Apple ID, you’ll want to sign out of all services to avoid this. As a fix, you can temporarily change your Apple ID back to the old address:
    iOS 7: If you're asked for the password to your previous Apple ID when signing out of iCloud
    http://support.apple.com/kb/TS5223
    Change your Apple ID temporarily
    If signing out and back in to iMessage or FaceTime didn't help, try these steps:
    1. Change your Apple ID to the Apple ID you used previously. You shouldn't need to verify the email address.
    2. Go to Settings > iCloud. Complete these steps only if the Find My [Device] setting is turned on:
              - Scroll down and tap Delete Account, then tap Delete to confirm.
              - Tap “Keep on My [Device]” or “Delete from My [Device].” In either case, your data remains in iCloud and will be updated on your device when you sign in to iCloud again.
              - Enter the password for your previous Apple ID.
    3. Change your Apple ID to the new email address that you want to use. You'll need to verify the email address.
    4. Return to Settings > iCloud and sign in with your new Apple ID.
    Additional Information:
    Apple ID: What to do after you change your Apple ID
    http://support.apple.com/kb/HT5796
    Thanks,
    Matt M.

  • Why the italic function doesn't works in my Pages? I have already installed the actualization and it keeps not working...

    Why the italic function doesn't works in my Pages? I have already installed the actualization and it keeps not working...

    drag the other clip 'over' the main clip
    the 2nd clip has to be selected/yellow border...
    then you're prompted in the Inspector with the several options...

Maybe you are looking for

  • Simple way to insert data from one table

    Hi, I need to know a simple way on how to transfer the data from one table to another.... First table xx_inv_tab1 has three columns col1, col2, col3 and where as second table xx_inv_tab2 has five columns col1, col2, col3, col4, col5. Here col2, col3,

  • Default View Size In My Own Template

    I have created a template of my own called "My Template" and have set it to open automatically as a new document in preferences. Everything works great except it opens at 100% view size I want it to open at 150% view size, I've tried saving it as a t

  • ABAP Proxy with Party

    Party is using to group business systems of one partner? I have in one party business system which comunicate with Abap Proxy. But when I send message to SAP PI, I receive message with out Party. BS_ERP(abap-proxy) -> SAP PI Configuration looks like:

  • After installing WLS, oracle cannot access directory

    We have installed WLS many times on RHEL 5.6 and cannot determine why, but on occasionthe oracle user loses the ability to access /opt directory. The directory structure is listed as only question marks. [oracle@racparticipant opt]$ ll total 36 ?----

  • Regarding the textual description of InfoObejcts in Reports

    Hai I created the InfoObjects by giving the Length and its description . But when I create the Reports then I didn’t get the description of InfoObjects Fully . Why it is like that and what I have to do ??? Is there any limit for textual description o