How can I create a Filter for a four week period?

Post Author: Sarahg
CA Forum: Formula
I am trying to create a filter so that on a sales report I can have a Year to Date figure and then the last 4 weeks shown. So far I have tried to creat a filter that shows current week number - 4 but this does not show the correct weeks.
Any Ideas?

Post Author: jsanzone
CA Forum: Formula
sarahg,
You don't mention if there is a Universe involved or not, but if there were then you could create some objects that calculate measures based on a timeframe.  For instance, if you have a date field (date_fld) and a measure (x) in your database then you could create a measure such as:
case when <date_fld> between getdate()-28 and getdate() then sum(x) else 0 end
(the SQL code I'm using is in MS SQL server, so you may need to adapt if you're using a different DBMS).
The key to dealing with the date field is in substracing 28 (i.e. 28 days), so any time that this report would run and include the above coding it would be a 28-day lookback.

Similar Messages

  • How can I create a filter for an exact set of characters?

    Hello! I am setting up a filter to catch messages with GG in the subject. Sometimes this will be at the beginning of the subject (no space at the front) and other times it will be somewhere in the middle. The problem I'm having is that this filter catches any word with "gg" in it, like "logged" or "baggage" (one of my customers has baggage in their name, but their messages should not be caught by this filter). How can I make this work? Thank you for your time!

    I think FiltaQuilla might be useful. It adds so-called Regular Expressions to the filter system, where you could use a construction like:
    "subject regex" "matches" "/\bgg\b/i"
    \b means a word boundary
    gg is your two letters
    \b is the trailing word boundary
    / and /i mean ignore the case, so it'll find gg, GG, Gg and gG.
    There lots of ways of doing this. You could have
    [ ]GG[ ]
    where it would require a space (explicitly; nothing else!) before and after, and capital letters. \b is usually superior as it matches at the beginning and end of the line, and recognizes regular punctuation in addition to spaces.

  • How can I create a URL for a PWA for MS Project Server 2010 project file that includes the view?

    Hi, this question has been answered for 2013. The answer here suggests that it can be done in  2010.
    See:
    http://social.technet.microsoft.com/Forums/projectserver/en-US/3affdc4f-36bf-4381-8b75-27c73465efd4/action?threadDisplayName=how-can-i-create-a-url-for-a-pwa-for-ms-project-server-2013-project-file-that-includes-the-view
    Who knows how?
    Regards
    Sander

    Hi Sander,
    As far as I tested it, it is not possible either with PS2010. The URL only contains the PDP name and the projUID.
    Hope this helps,
    Guillaume Rouyre, MBA, MCP, MCTS |

  • How can i create a Trash for external USB Drives ?

    Hello,
    how can i create a Trash for external USB Drives or my TimeCapsule ?
    Thanks.

    You do not need to create trash cans for individual drives.  The trash can on the desktop holds deleted files from all mounted drives.
    TimeCapsule manages its own space.  If it fills up it will delete older backps to make space for newer ones.

  • How can I create a form for users wherein the text field will expand to accommodate additional text?

    How can I create a form for users wherein the text field will expand to accommodate additional text?

    You need to use LiveCycle (PC Only) to create a dynamic form like that.
    The best you can do with Acrobat to view all of the text in a field is to set the field to multiline, and set the size to "Auto" (If you don't set the size to 'Auto', you can enter as much text as you wish, but the user will need to use the scrollbar to view all of the text.)

  • How can mass create batch classification for many material batches? ?

    Hi Experts,
    In our system , there are so many material batches which have not been classified,see by
    BMBC Tcode.
    That means these batches has no values in the batch class. I know we can create
    classification for these batches with MSC2N Tcode.
    But there are so many batches  which have not been classified,more then 2000.
    It is not possible to create classification for every batch with with MSC2N once a time.
    So how can I create batch classification for so many batches once a time?
    How can I mass create batch classification for so many batches??
    Thanks for any reply!

    Hi,
    Please be aware that SAP does not support the use of batch
    input in the classification system. SAP recommends you use BAPI's for
    example in your case BAPI BAPI_OBJCL_CREATE and BAPI_OBJCL_CHANGE
    would be able to help. For more information, please have a look at the
    note: 943559 - Point 2 and 13. Point 13 references the note 1083986.
    I hope this helps!.
    Best Regards,
    Arminda Jack

  • How can i create apple id for i tune store

    how can i create apple id for i tune store?????

    Since you're posting here, you already have an Apple ID. Use it to sign into the iTunes Store.
    (81019)

  • How can I create an EntityStore for a Database?  Advice on DB strategy?

    Hello All,
    How can I create an com.sleepycat.persist.EntityStore for a com.sleepycat.db.Database? Advice on DB strategy?
    I'm looking to create an application prototype that creates a database dynamically and can delete it programatically. Is openDatabase/removeDatabase what I'd want to use for that?
    So far, the Direct Persistence Layer is an amazing piece of technology and has the potential to make my team's application faster than we every though possible, so kudos to the author.
    I've built a high-security application using the DPL and a single database for hundreds millions of users. I'd like to attempt to create a database for each user for security and manageability purposes. Our mission statement doesn't allow us to execute queries for sensitive data across more than one user account at a time, so I don't get any benefit from having every user's objects in a single database. I'm investigating if giving each user their own database will speed up insert times and SecondaryIndex queries. It'll certainly be more secure as each database will be encrypted with a unique password.
    My design is that I have an app with dozens of com.sleepycat.persist.model.Entity beans which I persist and query on their Primary and secondary indexes. I've been accessing things through an EntityStore as illustrated in the Getting Started Guide. Can I access a database created with openDatabase through an EntityStore and com.sleepycat.persist.PrimaryIndex?
    Thanks in Advance,
    Steven
    Harvard Childrens Hospital Informatics Program

    I closed this as I found another way to solve my issue.
    Thanks,
    Steven

  • How can I create a Title for the worksheet in Discoverer Plus

    Dear members,
    I am using discoverer 4i Plus to create workbooks. I am not finding an option to insert a title for the worksheet. In Discoverer Desktop we have a separate option to insert or edit a title. I am not sure how can we create titles in Plus.
    Any suggestions.
    Thanks
    Sandeep

    Hi,
    I am not able to login to Discoverer Desktop Using my Applications username. My Desktop Version is 4.1.37. The same username works in Discoverer 4i Plus and i can create workbook there.
    I went to Tools--->Options--->Connections and checked the option connect to both standard and application EUL's and while i am logging in i checked the small box which comes in the login screen. I do not know why this happening.
    I am also able to login as the database user in Desktop but not as an application user.
    I want to login into desktop as an application user and create a template workbook which has title and then assign that workbook to a particular responsibility since creating title cannot be done in Plus.
    I am not sure what's going wrong here because the Desktop works for database user but not for an application user. Any comments are highly appreciated.
    Thanks
    sandeep

  • How can I create a object for a note?

    Hi experts,
        I need to apply the note 501905 but when I try in the SNOTE transacction I receive this error:
    Object REPS Z_MRM_DELETE_PP does not exist; create it
    Diagnosis
    The SAP Note that you want to implement contains changes to an object that does not yet exist in your system.
    SAP Notes contain only changes to objects that already exist. This means that the the system cannot automatically create new objects during the implementation of this SAP Note.
    Procedure
    1. Cancel the SAP Note implementationl.
    2. Create an empty object REPS Z_MRM_DELETE_PP with the corresponding object editor.
    3. Restart the SAP Note implementation.
    How can I create that Object??
    Thanks for the help!

    Hi Carlos,
    It says that you have to create a new program with a name Z_MRM_DELETE_PP.
    Once you create and activate the program you can execute the SAP Note.
    All this processure will be written in the SAP Note.
    Please Go through the Note using below:
    Step1: Use T.code SNOTE.
    Step2: Use menu GOTO --> NOTE BROWSER. Provide the Note no and EXECUTE.
    Step3: Double click on the displayed line.
    Here you will get the information to do before implementing the note.
    Go through all the documentation, and once you did all the development given in the note then you can implement the note.
    Regards,
    Sreekanth.

  • MRRL : How can we create Credit Memo for these Invoices

    Hi Gurus,
    How can we create Crerdit memo in case when the Invoice has been posted thru MRRL?
    Is there any way the we can do Subsequent Credit / debit for the ERS vendor (posted by MRRL) as well?
    Thanks in advance
    Shashidhar

    Hello
    How can we reverse fi document created through MRRL transaction.
    FI document cannot be reversed reason being -Error-Invoice doc. 5105692828/2009 was created via evaluated receipt settlement.
    GR material document cannot reversed reason being-Error-Deficit of PU IR quantity 1,456.000 CS
    Not possible even to return the delivery to Vendor , Movement type 122
    Thanks
    Dinabandhu

  • How can I create a filter from a contact list?

    I have a lot of classes that I teach. I have created an email contact list for all of my individual classes, which I would like to create a single fitler for each of these list, in order to put them into a corresponding folder. It would save me a lot of drag and drop and checking, in which class my student is to create a filter for that student. I have ten classes with about 25 students each... So that would save me a huge amount of time!
    cheers and regards
    pmjj

    Perhaps a filter that looks like the one in this picture would work.
    http://kb.mozillazine.org/Filters_(Thunderbird)

  • How can I create a fIlter to delete only "junk" from the server?

    One of my E-mail accounts is that of a major client. I handle their customer service online. Normally our protocol is to always leave all messages on the server, so for that one Thunderbird account, I have it set to never delete messages on the server.
    But the account recently started getting a lot of junk messages. Thunderbird is doing a remarkable job at marking those and placing them in the junk folder for that account. I would like to create a filter that could remove them from the server, preferably those more than "x" days old so I could monitor the activity to be sure that no important message are removed.
    I did notice that in "Filters" I can create a custom filter from a header of my choice, but can't seem to create what I want which is:
    - after mail is marked as Junk by Thunderbird to delete those messages from the server if they are older than "X" days (my choice of "X").
    - not delete any other messages from the server for that account

    I believe that did it! Thank you. I am running those changes on a secondary E-Mail address for the same job and server and it appears to be working properly.

  • How can I create events dynamic for a Group/List?

    Hey,
    atm I'm programming a little application where i want to add elements to my center-pane.
    Simpyfied I got:
    - Center Pane : here shall the elements appear on right click in bottom-pane. This pane shall be used as anything like a playground where you can drag/drop and connect items from the bottom-pane
    - Bottom Pane: here I got about 180 elements which are quite equal. This is sth like a menu of items which you can use. I realised them in java classes extended from a parent class with differend calulations.
    What I want:
    I want to create an event handler for EACH of the "menu" elements dynamically. Just sth like:
        for (int i = 0; i < basic_menu_list.size(); i++)
          final Element el = hbox_bottom.getChildren().get(i);
          hbox_bottom.getChildren().get(i).setOnMouseClicked(new EventHandler<MouseEvent>()
            public void handle(MouseEvent event)
              if (event.isSecondaryButtonDown())
                playground.add(el);
                redrawPlayground();
        }But as i expected this doesnt work...
    Now my question:
    How can I solve this problem? Is there any option to listen to all elements of a group without hard-coding every single listener?
    Thanks for your help,
    Martin

    Hello User,
    Why did you expect that it wouldn't work?
    You have an example with "transition" apply on a bunch of circles in the Getting Started with JavaFx (http://download.oracle.com/javafx/2.0/get_started/jfxpub-get_started.htm)
    Here a basic example class...
    import javafx.application.Application;
    import javafx.event.EventHandler;
    import javafx.scene.Node;
    import javafx.scene.Scene;
    import javafx.scene.control.TextBox;
    import javafx.scene.input.MouseEvent;
    import javafx.scene.layout.Pane;
    import javafx.scene.layout.VBox;
    import javafx.stage.Stage;
    public class HelloWorld extends Application {
        //~ ----------------------------------------------------------------------------------------------------------------
        //~ Methods
        //~ ----------------------------------------------------------------------------------------------------------------
        public static void main(String[] args) {
            // Entry point
            Application.launch(args);
        @Override
        public void start(Stage mainStage) throws Exception {
            Pane pane = new Pane();
            Scene scene = new Scene(pane, 200, 200);
            VBox vBox = new VBox();
            TextBox input1 = new TextBox();
            TextBox input2 = new TextBox();
            vBox.getChildren().addAll(input1, input2);
            for (Node input : vBox.getChildren()) {
                input.setOnMouseClicked(new EventHandler<MouseEvent>() {
                        public void handle(MouseEvent event) {
                            System.out.println("test click");
            pane.getChildren().add(vBox);
            mainStage.setScene(scene);
            mainStage.setVisible(true);
    }Niculaiu

  • How can I create an installer for my project that can work on 32-bit Windows if I have 64-bit Windows Vista?

    Hi, 
    I made a LabVIEW project that works perfectly and made an installer for it. I tested the installer on my own computer and everything worked well. The goal for my installer was to put it on multiple computers. So I tried to do this on another computer that has Vista 32-bit and it told me that the installer can only run on 64-bit computers. I tried to choose to install run-time 32bit and it did not change anything, there was still a message to tell me that this installer only can be ran on 64-bit computers. How can I make an installer that works on 32-bit computers? 
    Thank you. 
    Solved!
    Go to Solution.

    Langelier wrote:
    Will my project work on 32-bit version even if created on 64-bit version?
    The code will have to recompile, but yes it should work.  I recommend making a backup before proceeding just in case.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

Maybe you are looking for

  • PrintSetup/Preview issue with WebBrowser control in 64bit applications

    The WebBrowser Control appeared to be working well in a 64-bit VB.Net application I've been developing, until I looked more closely at what was happening when using the ShowPrintSetupDialog and ShowPrintPreviewDialog members. If I opened the print se

  • Deleting row of zero in one dim array

    In my application, I am using the first column of the table as a selection from the combo box. The table is converted to one dimension array of 200 rows and 1 column, Some of the rows have zero value which is visible in the combo box selection , I ne

  • Graphical glitches after installing mavericks

    I have a MBA 2012 After I´ve installed Mav I get random glitches with the graphics. I have re-booted several times. I occurs both in dual screen use as normal laptop use. Sometimes its only in the dock but some times all over the screen as in the att

  • Zen Micro - "BACK" button sensitivity iss

    My Micro has functioned flawlessly except for one thing: the "back" button doesn't seem as responsi've to touch as the other "buttons". Sometimes I need to tap it three or four times to get it to function properly. On occasion, I actually have to pre

  • Idvd with pdf?

    Client wants a video with a pdf file also on the disk. Is this possible with Idvd? I burned a dvd with the video ts and audio ts, and a folder with a pdf file. It plays on a commercial dvd player but alas not on my mac. Insert Colbert here with raise