Any Ideas Why LASTDATE Isn't Working as Expected?

I have a measure ... 
Inventory Quantity:=CALCULATE (
SUM ( [PosNetProjdQty] ),
LASTDATE ( Calendar[CLNDR_WK_BEG_DT] )
... which when added to a Pivot Table I'd expect a YEAR subtotal to equal the December Ending MONTH value.  Instead, it's summing all of the months in the year.  Any clues as to why this might not be performing as expected?

Hi Mark,
Is this still an issue? LASTDATE is a very peculiar DAX function as explained
here.  Is there any chance that you could provide a sample workbook with non-sensitive data that can be used to look into the unexpected behaviour in your scenario?
Regards,
Michael Amadi
Please use the 'Mark as answer' link to mark a post that answers your question. If you find a reply helpful, please remember to vote it as helpful :)
Website: http://www.nimblelearn.com, Twitter:
@nimblelearn

Similar Messages

  • Any idea why setSubject() is not working as expected??

    I am using SmtpMessage's setSubject:
    setSubject( "some subject" )
    but the email I receive says "no subject"
    I have made sure that the subject is being set correctly in the code.
    The email is received and the content of the email (set via setContent) is exactly as I had set it.
    But the subject is missing even though I set it.
    Any idea why this is happening?

    Nope.
    Is there anything unusual about the text you're using
    for the subject? Any newlines, for instance?
    If you turn on session debugging, do you see the
    subject in the protocol trace?

  • HT5037 I have downloaded and installed this tool, but it's still telling me I need to update. Any suggestions why this isn't working for me? I have a Macbook Pro.

    I have downloaded and installed the iPhoto tool to update so my pictures transfer over, but it's still telling me I need to update. Any suggestions why this isn't working for me? I have a Macbook Pro.

    You have to download and RUN the iPhoto library upgrade - then launch iPhoto - If you had iPhoto '08 or earlier (version 7.x.x) - the upgrade is installed in the utilities folder of your Applications folder
    LN

  • Any ideas why the sound only works on about half of my apps?

    Any ideas why the sound on my ipad only works on about half of my apps?

    The problem of tracks becoming de-linked between iTunes and the music files in your iTunes music folder happens for different reasons - this seems to come up fairly commonly in this forum.
    The solution can be to locate each song in the iTunes library, as you mentioned - or, but wait, before I get to that...
    trouble finding the original track in your iTunes music folder? maybe look for it under compilations, or if not using the 'group compilations preference' then look in the folder under the songs artist name, but what song artist name iTunes uses depends on what you have in the metedata tag spot for album artist or song artist. Any varyation in artist name spelling, in the menu item 'get info' metadata for any selected individual track will cause iTunes to create that as a separate artist folder in the library, even names like 'various' or any difference at all (even the word 'the' can change where in your iTunes music folder a track gets placed by iTunes). You can try to use the finder function of find file (finder munu item outside of iTunes) to locate hard to find items.
    Back to how to re-link any de-linked tracks .
    There may be scripts that can help re-link de-linked music files - or, at least provide you a list of such files, Scripts are easy to install and use...
    at Dougs Scripts, there is one called iTunes Track CPR that might work
    http://dougscripts.com/itunes/scripts/ss.php?sp=itunestrackcpr
    or, if you just want a list of de-linked tracks, go to
    http://dougscripts.com/itunes/
    and find the script called List MIA's, this will create a text file listing all de-linked tracks
    if you review the thread at
    https://discussions.apple.com/thread/3633708
    also the thread at
    https://discussions.apple.com/message/17513078#17513078
    you may find more insight into dealing with this kind of issue there, although some of that thread may not apply to your case, aspects of it might help.
    Good luck.

  • IE6/CSS browser issue- any idea why this is not working?

    http://www.wilmerdds.com/test/index.htm
    If you look at the left column, you will see a black box.  It shouldn't be black. it should match the bg color of the column.  Any idea why this is happening?

    Hi
    The problem is that you are using a png, and IE6 does not support png transparency. You could try using the iepngfix from - http://www.twinhelix.com/css/iepngfix/.
    PZ

  • Any ideas why this won't work?

    I appreciate all the help this board provides. I've learned a ton coming here as I continue to grow my SQL knowledge.
    I need this query to look at the Work_order table and pull any lines that were closed during the prior day. Then I need it to look at the Stock_Tran table and pulled and lines that had a Date_Trans during the prior day. That will give me the work completed and the work that was partially completed during the prior day.
    I'm getting an error message at the line I've underlined and bolded that work_order.partno is an invalid identifier (I'm sure that's not the only error). The query worked until I started adding the Stock_Tran table.
    Any ideas would be greatly appreciated!!!
    SELECT
    SITECODE
    , WORK_ORDER_NUMBER AS "WO #"
    , partno
    , WO_PRIORITY AS "PRIORITY"
    , QTY_WORK_ORDER
    , QTY_FINISHED
    , TRUNC(WO_RELEASE_DATE) AS "RELEASE DATE"
    , TRUNC(WO_START_DATE) AS "START DATE"
    , TRUNC(WO_CLOSED_DATE) AS "CLOSED DATE"
    , STOCK_TRAN.QTY_CHANGE
    FROM
    WORK_ORDER
    , (SELECT SUM(QTY_CHANGE) AS "QTY WORKED" FROM STOCK_TRAN
    WHERE
    SITECODE = 'FCI'
    AND STOCK_TRAN_CODE = 'P'
    AND DATE_TRAN = TRUNC(SYSDATE - 1)
    AND WORK_ORDER.SITECODE = STOCK_TRAN.SITECODE
    AND WORK_ORDER.PARTNO = STOCK_TRAN.PARTNO)_
    WHERE
    WORK_ORDER_TYPE = 'K'
    AND SITECODE = 'FCI'
    AND (TRUNC(WO_CLOSED_DATE) = TRUNC(SYSDATE - 1) OR STOCK_TRAN.DATE_TRAN = TRUNC(SYSDATE -1) )
    AND QTY_FINISHED >0
    ORDER BY WO_PRIORITY DESC

    Hi,
    847497 wrote:
    That gets me closer! Thanks. Now I've getting an error at the line highlighted below.
    Here's the error I'm getting: ORA-00904: "STOCK"."QTY_CHANGE": invalid identifier
    SELECT
    SITECODE
    , WORK_ORDER_NUMBER AS "WO #"
    , partno
    , WO_PRIORITY AS "PRIORITY"
    , QTY_WORK_ORDER
    , QTY_FINISHED
    , TRUNC(WO_RELEASE_DATE) AS "RELEASE DATE"
    , TRUNC(WO_START_DATE) AS "START DATE"
    , TRUNC(WO_CLOSED_DATE) AS "CLOSED DATE"
    *  , STOCK.QTYCHANGE*_I assume you mean this is the line where the error message points. It would be better to mark it with a comment, like this:
    ,       STOCK.QTY_CHANGE                  -- *****  ORA-00904 occurs here *****  FROM
    WORK_ORDER
    , (SELECT SUM(QTY_CHANGE) AS "QTY WORKED"
    , sitecode
    , partno
    , date_tran
    FROM STOCK_TRAN
    WHERE SITECODE = 'FCI'
    AND STOCK_TRAN_CODE = 'P'
    AND DATE_TRAN = TRUNC(SYSDATE - 1)
    GROUP BY sitecode, partno ) stockThe only columns in the stock "table" (it's acutally an in-line view) are "QTY WORKED", SITECODE, PARTNO amnd DATE_TRAN.
    If QTY_CHANGE is a column in the STOCK_TRAN table, then yiou can include it in the SELECT clause of the in-line view, and that will allow you to use it in the main query.
    WHERE stock.sitecode = work_order.sitecode
    AND stock.partno = work_order.partno
    AND WORK_ORDER_TYPE = 'K'
    AND work_order.SITECODE = 'FCI'
    AND (TRUNC(WO_CLOSED_DATE) = TRUNC(SYSDATE - 1) OR STOCK.DATE_TRAN = TRUNC(SYSDATE -1) )
    AND QTY_FINISHED >0
    ORDER BY WO_PRIORITY DESC

  • Any idea why British Eurosport stopped working. Have reinstalled app and reset network settings.

    The app suddenly stopped working.
    Any ideas ?

    Yes to 1st and No to 2nd.
    I already contacted British Eurosport , it was them that suggested reinstalling the app.
    I don't know of anything that has changed since it did work.
    Thanks for your reply.

  • Any Ideas Why Workspace Won't Work?

    Okay, so it's been bugging me too long to simply continue ignoring the problem... and even still after updating all of the CS6 applications, the problem of the Workspace always being messed up every time I launch CS6 Photoshop 13.0.1 x64 Extended on my Win 7 64-bit machine persists. Any suggestions will be appreciated.
    To help communicate the problem and better understand it, I've prepared this series of screen captures.
    The two Workspaces used in these experiments were 1) VKB's Workspace, a preexisting Saved workspace and 2) Essentials, the preexisting workspace defined by Adobe.
    The experiments consisted of launching the application, observing that the workspace was messed up (Exhibits A, C, D and E), then Resetting the Workspace, closing the application and then opening it again.
    During the course of these experiments I updated the (3) CS6 applications that the updater indicated had available updates, one of which was PS. The announcement on the page (http://forums.adobe.com/community/photoshop/general) indicated 13.0.1.1 was available, but after updates were install, PS reports what I thought I remembered seeing earlier; i.e., 13.0.1 (and not 13.0.1.1). Restarted the system, system would not shut down, would not restart, no video signal, had to give it the finger and force hard restart. Launched PS app, did another check for updates - all apps up to date.
    Began experiments anew - nothing different - Workspace still doesn't work like it always had behaved up until when this issue first presented... maybe a month or three weeks ago - not really sure exactly when.
    The Resetting was done from both the menu Window, Workspace, Reset route and the afforded pull down option (upper right corner).
    Additionally, during the experiments I created a new workspace, also named VKB's Workspace, replaced the earlier one, more experiments, more of the same problem.

    Any ideas will be appreciated.
    Thanks!
    Kelly

  • Any idea why Preview won't work for opening PDF files with this OS?

    For some reason, after the last update to Mavericks 10.9.3, any time I attempt to open a PDF using Preview, the file will not open.  No response from the system.  Any recommended solutions?  Thanks in advance!

    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
    The title of the Console window should be All Messages. If it isn't, select
    SYSTEM LOG QUERIES ▹ All Messages
    from the log list on the left. If you don't see that list, select
    View ▹ Show Log List
    from the menu bar at the top of the screen.
    Click the Clear Display icon in the toolbar. Then try the action that you're having trouble with again. Select any messages that appear in the Console window. Copy them to the Clipboard by pressing the key combination command-C. Paste into a reply to this message by pressing command-V.
    ☞ The log contains a vast amount of information, almost all of which is irrelevant to solving any particular problem. When posting a log extract, be selective. A few dozen lines are almost always more than enough.
    Please don't indiscriminately dump thousands of lines from the log into this discussion.
    Please don't post screenshots of log messages—post the text.
    ☞ Some private information, such as your name, may appear in the log. Anonymize before posting.

  • Any ideas why Smart Zoom only working in Safari and not TextEdit, etc.

    I like using Smart Zoom, but it only works in Safari for me. Is anyone else experiencing this or have a suggestion for fixing this? I thought it was supposed to work in TextEdit and some other Apple programs.

    System Preferences > Universal Access > Seeing. Is Zoom turned on?
    Also look in System Preferences > Trackpad > Scroll & Zoom tab > uncheck Smart zoom
    Or System Preferences > Mouse  > Smart Zoom.
    EDIT: Just tested Text Edit and it won't respomd to a SZ

  • Has any one got any idea why this won't work?

    import java.io.*;
    import java.util.*;
    class VirusScanner
         static String Storedfiles = "c:\\bbb";
         //To change which virus signatures are to be used, the line below must be edited to reflect which directory contains them.
         static String VirusSignatures = "c:\\aaa";
         static int files = 0;
         static int infectedfiles = 0;
    static File sig = new File(VirusSignatures);
         static File dir = new File(Storedfiles);
         public static void main(String args[]) throws IOException
              //if file and signature directories are valid, run scan and then display the results of scan.
              if(dir.isDirectory() && sig.isDirectory())
                   System.out.println("Scanning Directory: " + dir);
                   scanDir(dir);
                   System.out.println("Scan of " + dir + " complete. " + files + " files scanned. " + infectedfiles + " infected files found.");
              //otherwise output "Invalid Directory" on the screen
              else
                   System.out.println("Invalid Directory");
         public static void scanDir(File direct) throws IOException
              //Create a string array containing a list of all files in the directory
              String s[] = direct.list();
    //loop through every file or directory inside current directory
              //and call relevant method
              for (int i=0; i<s.length; i++)
                   File current = new File(direct + "/" + s);
                   if (current.isDirectory())
                        scanDir(current);
                   else
                        scanFile(current);
         public static void scanFile(File filepath) throws IOException
              //Add one to the count of files scanned
    files ++;
              // Create filereader object for file to be scanned, and wrap with buffer
              FileReader fr2 = new FileReader (filepath);
              BufferedReader br2 = new BufferedReader(fr2);
              //Create a string containing the contents of the file
    int fileInt = (int) filepath.length();
    //int fileInt = fileLong.intValue();
    char[] buf2 = new char[fileInt];
              br2.read(buf2,0,fileInt);
              String theFile = new String(buf2);
              //Close readers
              fr2.close();
              br2.close();
              //Create a string array containing a list of all of the signature files
              String s[] = sig.list();
              //for loop which checks the contents of each signature file against the file to be checked
              for(int i=1;i<s.length;i++)
                   //Create filereader object for relevant virus signature and wrap with buffer
    File sigFile = new File (VirusSignatures + "/signature" + i);
                   FileReader fr = new FileReader (sigFile);
                   BufferedReader br = new BufferedReader(fr);
                   //Create a string containing the contents of the signature file
    int virusInt = (int) filepath.length();
    //int virusInt = virusLong.intValue();
    char[] buf = new char[virusInt]; // the buffer
                   br.read(buf,0,virusInt);
                   String theSig = new String(buf);
                   //Close readers
                   fr.close();
                   br.close();
                   //If signature is found in file report to screen
                   if (theFile.indexOf(theSig)!=-1)
                        System.out.println("Virus " + i + " found in file " + filepath);
                        infectedfiles++;

    This topic is apparently indicated as closed here:
    http://forum.java.sun.com/thread.jspa?threadID=621169
    Not sure why you posted this at all.

  • My messaging works for all of my contacts, using iphone or android, except one. Any ideas why?

    My messaging works for all of my contacts, using iphone or android, except one. Any ideas why?

    First thing I would expect is a wrong number. Second might be something at the recipients end.

  • BG image swap won't work - any ideas why not?

    http://designerandpublisher.com/test-bg/test-bg-page01.html
    Hi - I'm trying to set up a background image swap where when the user is viewing the site and clicking on links, the background image will change.  You'll see the soldier one there now and I have others.
    The JS file the 2 HTML pages are linked to doesn't seem to be working [see above].
    Any ideas why it's not working, or is there a better JS file anyone may be aware of that does what I'm looking for?
    Thanks - Deaf Guy

    Hello - I wanted to post an update on this topic and am wondering if someone can still help me.  I figured out a way to make background images change on refresh.  You can see it here:
    http://designerandpublisher.com/test-bg/index.html
    I added a piece of JS to make the wrapper images change.  Although the image swap works now, this is really not a true background image swap because it is not swapping images in the body tag.  What I'd really like to do now is go into the body tag and somehow point it toward this JS code so that when the page is refreshed, it will pick up the image swap array.  I'm not sure if this is possible though.
    Is there a way to do this?
    Thanks - Deaf Guy

  • Cannot get mail without quitting first.  Any idea why?

    Cannot get mail without quitting first.  Any idea why?

    Does it work?  Well, the beep occurs but no mail comes through without a very long wait.  If I quit mail and re-open it, all the new messages come through.
    Love has nothing to do with this.

  • My wifi goes down at least once a day and I have to unplug the time capsule and reboot it and then it works fine.  Any idea why this is happening/what I can do to fix it?

    My wifi goes down at least once a day and I have to unplug the time capsule and reboot it and then it works fine.  Any idea why this is happening/what I can do to fix it?

    I was having this problem while still using Mavericks -- it started after a Mavericks update last spring.  During the initial Yosemite beta runs over the summer, it seemed to be fixed, but after the official launch in October, I had all sorts of problems keeping connected.  Its gotten a little better, but still happens to at least one of my devices every day.  Weird that we still cannot figure out why the connection keeps dropping on some devices, but not others, and then the next day, one of the devices that didn't disconnect the previous day will disconnect, but the ones that did disconnect, stay connected.  It's just sloppy, poorly written software for technology that isn't working the way it should.  If you turn off Continuity and Handoff on all your devices, you will probably see that everything stays connected.  With those turned off on all devices, TC stayed connected to everything for over a month.  The day I turned Continuity back on, all the problems started again.  It had something to do with the bluetooth version being used, the wifi routine, and Apple's AirPlay technology not quite getting along with each other.

Maybe you are looking for

  • Cancellation of posted excise invoice

    Dear All, How to cancel posted incoming excise invoice without cancelling the GRN. User had posted the excise invoice wrogly so now they want to cancel that. For this we have to first reverse GRN but stock also get consumed meanwhile so system is not

  • [solved] problems with pacman after upgrading to 2.6.27-ARCH

    i'm not sure if my problem is related with the new version of software or the fact that i ran out of space during the upgrade. but once i restarted after the upgrade i was not able to boot into the system and the error i would get was: ERROR: Failed

  • Error in activation of DSO

    Hi all, we are geting an error while activating the data of a DSO. ERROR: The object is locked by user RFCUSER. We tried to go to sm12 to see the List. We have two entries in the list related to that DSO. Please suggest. Thank You.

  • Automatic status heritage from parent item to child item in Instal Base R12

    Hi, Do you know please how to deactive automatic heritage of status from parent item to all child items of instal base when updating parent item status in R12? When I update status of package in Instal Base, statuses of all child items are updated au

  • Reservation authorization to limit plant on IW31,IW32

    Dear all,          Could you please advise me about authorization check in reservation created from maintenance order. I create role to use IW32 and maintain authorization to limit plant at authorization object M_MRES_WWA. But we still create reserva