How to implement aggregation for different date periods

We have a report which shows various metrics for a given date period, selected by date prompts.
The problem is that one of the metrics should show data only for the first day in the range, selected by the prompt.
So, for example, if user selects in the prompt the range Oct 1 - Oct 10, then that particular column should only show data for Oct 1, while all others - for Oct 1 - Oct 10.
Any suggestions how to implement this would be appreciated.

Please try to play around with case statements in the fact column.

Similar Messages

  • Different aggregation for different Dimensions

    Hello,
    is it possible to have different aggregations on different dimensions.
    I have following situation:
    I have a measure per client and day.
    I'm interested in the maximum per month from the daily sums over clients.
    In the measure properties I can only choose between Maximum and Sum in general but not per Dimensions.
    To clearify what i mean here is some sample data.
    * * Client A * Client B *
    * 2014-11-28 * 7 * 8 * SUM() = 15
    * 2014-11-29 * 6 * 8 * SUM() = 14
    * 2014-11-30 * 6 * 10 * SUM() = 16 <-- monthly max
    * 2014-12-01 * 7 * 8 * SUM() = 15
    * 2014-12-02 * 5 * 12 * SUM() = 17 <-- monthly max
    * 2014-12-03 * 6 * 9 * SUM() = 15
    This data is stored in my fact table with reference to date and client dimensions.
    This example data would have to be reported as:
    /* Report on measure
    * * Measure *
    * 2014-11 * 16 *
    * 2014-12 * 16 *
    * Report on measure per client
    (max per client and month)
    * * Client A * Client B *
    * 2014-11 * 7 * 8 *
    * 2014-12 * 7 * 12 *
    Can this be achieved with SSAS? Didn't find any property for that on the measure.
    Best Regards,
    Thomas

    Hi Thomas,
    According to your description, you want to calculate different aggregation for different dimensions, right?
    Based on your scenario, I tested it on AdventureWorks cube, the query below is for you reference.
    with member [Customer].[Country].[USA & Canada] as
    Aggregate( { [Customer].[Country].&[United States],
    [Customer].[Country].&[Canada]
    member [Measures].[MaxAmount]
    as
    max([Date].[Calendar].currentmember.children,[Measures].[Internet Sales Amount])
    select {[Customer].[Country].&[United States],[Customer].[Country].&[Canada],[Customer].[Country].[USA & Canada]} on 0,
    [Date].[Calendar].[Month].members on 1
    from
    [Adventure Works]
    where [Measures].[MaxAmount]
    Here is similar thread with yours, please see:
    https://social.technet.microsoft.com/Forums/en-US/1bd493ef-f957-4fd5-916b-ee60639106c3/calculated-member-different-aggregations-on-different-dimensions?forum=sqlanalysisservices
    Regards,
    Charlie Liao
    If you have any feedback on our support, please click
    here.
    Charlie Liao
    TechNet Community Support

  • How to Generate 997 for different trading partner with different Interchang

    How to Generate 997 for different trading partner with different InterchangIDS
    We are planning to use same working “ABC -> XYZ (Host)” 850 “ecs” file even for “EFG -> XYZ (Host)” 850 Transaction. And we have successfully implemented without any issues.
    We wanted to send 997 Acknowledgement in case of “EFG -> XYZ (Host)” 850 transaction.
    In this case also we would like to use same “ecs” file which has been used for “XYZ (Host) -> ABC”.
    After adding the 997 capabilities to Stanley I don’t see any extra capability added to “XYZ (Host)” trading partner.
    The generated 997 for Stanely EDI file doesn’t reflect the “XYZ (Host)” trading partner Interchange ID. It is getting reflected the previous 997 Transaction “XYZ (Host)” Intercahnge ID.
    We use following Interchange ID’s
    ABC = 005381447
    XYZ (Host) = 049894764
    EFZ = SWEOT30013
    XYZ (Host) = 5273851T
    The 997 which is generated has the InterchangeID as this “049894764” instead of “5273851T”
    Regards
    Ravi

    Hi Ravi,
    You have to have the two Delivery Channels under Host TP's communication capability. One host delivery channel should be used with one TP only and will have specific values to that TP.
    Go to the Exchange Protocol Parameters of Host TP (XYZ) delivery channel (which you are using in the agreement with EFZ) and provide the required values here. Revalidate and redeploy the agreements and run a test. Let us know if you still face issue.
    Regards,
    Anuj

  • How to implement tooltip for the list items for the particular column in sharepoint 2013

    Hi,
    I had created a list, How to implement tooltip for the list items for the particular column in SharePoint 2013.
    Any help will be appreciated

    We can use JavaScript or JQuery to show the tooltips. Refer to the following similar thread.
    http://social.technet.microsoft.com/forums/en/sharepointdevelopmentprevious/thread/1dac3ae0-c9ce-419d-b6dd-08dd48284324
    http://stackoverflow.com/questions/3366515/small-description-window-on-mouse-hover-on-hyperlink
    http://spjsblog.com/2012/02/12/list-view-preview-item-on-hover-sharepoint-2010/

  • How to put condition for one date range should not interfear with another ?

    hi friends,
    how to put condition for one date range should not interfear with another  date range.
    my data base table has two fields
    from date
    to date.
    when we enter the date range in the data base , new date range means from date and to date should not interfear.
    can  anybody help me.
    thanks &Regards,
    Revanth
    Edited by: rk.kolisetty on Jul 1, 2010 7:18 PM

    Do it the SAP way....
    First entry...from is today, to is 99991231.
    New dates entered, now we have two rows...:
        from is original date  to becomes yesterday.
        From is today          to is 99991231

  • How to implement real-time refresh datas in obiee?

    How to implement real-time refresh datas in obiee?

    Can you elaborate more...
    If you want to see refreshed data in OBIEE Reports, you need to implement Caching mechanism based on how you often refresh warehouse..
    [http://download.oracle.com/docs/cd/E05553_01/books/admintool/admintool_QueryCaching6.html]

  • How many MDM certificates for different MDM servers can be generated under one  Apple Developers  Subscription

    Hello All
    Please say how many MDM certificates for different MDM servers can be generated under one Apple Developers Subscription?
    Thanks in advance

    So no Meraki MDM?
    Supports Multiple VPP accounts, completely free, fully encrypted, and quite secure.
    Otherwise, you might want to take a look at the mdm that Spiceworks has.

  • Doing the same task for different data.. Do I need Queues? How to use them if yes?

    Hello all,
    I have created a VI which is getting data from some FTP server and then after comparing with the HDD specified folder copy the missing data from the FTP ... Description is also in the VI. There are few things I need to ask.
    1) The email sending VI gives error 1172..What could be the reason .. is it firewall.. or is there any mistake in the code?
    2) As you people are experts so I really like any suggestion to improve the VI..
    3) The most important .. Currently this VI can only perform the whole task for one FTP folder. Actually my task is I need to check for 4 different FTP folder on different servers..its not 4 different folder in one FTP .. its 4 different FTP.Now my question is how I can do this: First it compare and copy from FTP1.Then FTP2... and so on.. How can I change the data for the cluster for different FTPs? Do I need to use queues? If yes how because I don't have any experience with queues.
    I will really appreciate is someone can either provide me the relevant example or can give me some idea.
    The main VI is the 'TASK START'.VI please find the attached files.
    Thanks
    Regards,
    Naqqash
    Naqqash
    Attachments:
    Project.zip ‏151 KB

    Hi Peter,
    Thank you very much for your reply. I have understood your idea but there are few problems.
    Please see the attached "Final test.vi".. actually my top level vi should be like this.. due to this reason I need to develop the cluster like one with name "Settings" as shown in Enum FTP events.vi.. In this cluster all the data types are not constants (but can be set as constants)  and further all of them are not of same type so whenever I try to create as you created I have got error, wire broken..so what do you think i should do.. In this cluster there are different types of data .. string, path, numeric, array and a cluster with name file properties also... can't figure out what to do..I know things are little scattered and wiered but due to lack of experience, I guess, I am now a little bit confused for this matter. I
    hope guys here in the forum will help me as you guys always did.
    Naqqash
    Attachments:
    Final test.vi ‏11 KB
    Enum FTP Events.vi ‏14 KB

  • How to use decode to calculate sum for different date range

    I'm stuck with decode() function:
    I have a table like this:
    (project_id, approve_date, value, builder_code)
    I want to write a SQL query to get sum of values for different month of the approve_date, and group by builder_code)
    The result is like this:
    builder_code Sum(value)_Sep-03 Sum(value)_Oct-03 Sum(value)_Nov03
    1001 1,299 1,322 990
    1002 3,332 1,222 333
    I tried to use decode for this question but could not get the answer.
    Thanks a lot

    I don't think you need a DECODE() here. I'd do something like this-
    create table builder (
        project_id number,
        approve_date date,
        value        number,
        builder_code number
    insert into builder values( 1, to_date('09-01-2003', 'MM-DD-YYYY'), 100, 990 )
    insert into builder values( 2, to_date('09-03-2003', 'MM-DD-YYYY'), 150, 990 )
    insert into builder values( 3, to_date('09-05-2003', 'MM-DD-YYYY'), 250, 990 )
    insert into builder values( 3, to_date('09-05-2003', 'MM-DD-YYYY'), 250, 333)
    SELECT sept.builder_code, sept.sept_sum, oct.oct_sum
    FROM (SELECT builder_code, sum(value) sept_sum
            FROM builder
           WHERE approve_date >= to_date('09-01-2003','MM-DD-YYYY')
             AND approve_date < to_date('10-01-2003','MM-DD-YYYY')
           GROUP BY builder_code) sept,
         (SELECT builder_code, sum(value) oct_sum
            FROM builder
           WHERE approve_date >= to_date('10-01-2003','MM-DD-YYYY')
             AND approve_date < to_date('11-01-2003','MM-DD-YYYY')
           GROUP BY builder_code) oct
    WHERE oct.builder_code(+) = sept.builder_code
    BUILDER_CODE   SEPT_SUM    OCT_SUM
             333        250
             990        500Justin
    Distributed Database Consulting, Inc.
    www.ddbcinc.com/askDDBC

  • How to implement a 30 day trial period?

    Hello,
    I'm trying to implement a 30 day evaluation period for a pure C# WinForms commercial application. The requirements are basically that an uninstall / reinstall should not reset the countdown and it should not be trivial for the user to do it himself. It would also be nice if it were obscured even from detection using SysInternals regmon / filemon software.
    I'm thinking of storing the install date somewhere, but where? I tried using isolated storage, but was disappointed to see it just stores as a normal file in the user's Application Data directory.
    Certainly this problem has been solved before. Thanks for any ideas...

     in c# this code work for me,
    try it 
    The Code snippiest is,
    In your main Application, add this code to Programm.CS
    using SecureApp;
    static void Main()
                Application.EnableVisualStyles();
                Application.SetCompatibleTextRenderingDefault(false);
                string path = @"Software\Tanmay\Protection";
                Secure scr = new Secure();
                bool logic = scr.Algorithm("tanmay", path);
                if(logic ==true)
                    Application.Run(new Form1());
    Here all the necessary information will save in Registry.
    So you must provide a valid path, which will create this dll. 
    In this case the password is : tanmay, 
    Those two things are provided as,
    bool logic
    = scr.Algorithm("tanmay", path);
    The main code scr.Algorithm(,) is as follows,
    public bool Algorithm(String appPassword, String pass)
                globalPath = pass;
                bool chpass = checkPassword(appPassword);
                if (chpass == true) //execute
                    return true;
                else
                    bool block = blackListCheck();
                    if (block == false)
                        string chinstall = checkfirstDate();
                        if (chinstall == "First")
                            firstTime();// installation date
                            DialogResult ds = MessageBox.Show("You
    are using trial Pack! Would you Like to Activate it Now!", "Product key", MessageBoxButtons.YesNo, MessageBoxIcon.Information);
                            if (ds == DialogResult.Yes)
                                Form1 f1 = new Form1(appPassword,
    globalPath);
                                DialogResult ds1 = f1.ShowDialog();
                                if (ds1 == DialogResult.OK)
                                    return true;
                                else
                                    return false;
                            else
                                return true;
                        else
                            string status = dayDifPutPresent();
                            if (status == "Error")
                                blackList();
                                DialogResult ds = MessageBox.Show("Application
    Can't be loaded, Unauthorized Date Interrupt Occurred! Without activation it can't run! Would you like to activate it?", "Terminate Error-02", MessageBoxButtons.YesNo, MessageBoxIcon.Error);
                                if (ds == DialogResult.Yes)
                                    Form1 f1 = new Form1(appPassword,
    globalPath);
                                    DialogResult ds1
    = f1.ShowDialog();
                                    if (ds1 == DialogResult.OK)
                                        return true;
                                    else
                                        return false;
                                else
                                    return false;
                            else if (status
    == "Expired")
                                DialogResult ds = MessageBox.Show("The
    trial version is now expired! Would you Like to Activate it Now!", "Product key", MessageBoxButtons.YesNo,MessageBoxIcon.Information);
                                if (ds == DialogResult.Yes)
                                    Form1 f1 = new Form1(appPassword,
    globalPath);
                                    DialogResult ds1
    = f1.ShowDialog();
                                    if (ds1 == DialogResult.OK)
                                        return true;
                                    else
                                        return false;
                                else
                                    return false;
                            else // execute with how
    many day remaining
                                DialogResult ds = MessageBox.Show("You
    are using trial Pack, you have " + status + " days left to Activate! Would you Like to Activate it now!", "Product key",MessageBoxButtons.YesNo, MessageBoxIcon.Information);
                                if (ds == DialogResult.Yes)
                                    Form1 f1 = new Form1(appPassword,
    globalPath);
                                    DialogResult ds1
    = f1.ShowDialog();
                                    if (ds1 == DialogResult.OK)
                                        return true;
                                    else
                                        return false;
                                else
                                    return true;
                    else
                        DialogResult ds = MessageBox.Show("Application
    Can't be loaded, Unauthorized Date Interrupt Occurred! Without activation it can't run! Would you like to activate it?", "Terminate Error-01", MessageBoxButtons.YesNo, MessageBoxIcon.Error);
                        if (ds == DialogResult.Yes)
                            Form1 f1 = new Form1(appPassword,
    globalPath);
                            DialogResult ds1 = f1.ShowDialog();
                            if (ds1 == DialogResult.OK)
                                return true;
                            else
                                return false;
                        else
                            return false;
                        //return "BlackList";

  • Can I exit from paintComponent?  ...or... how can I check for invalid data?

    I'm writing a calendar applet for a programming class and I've nearly completed it but I'm stuck at checking for valid data.
    What seems to be happening is that paintComponent() is being called before actionPerformed.
    In actionPerformed (when they click the button), it checks to make sure they entered a valid month (1 to 12). If the didn't it dispalys a message, but if they did it calls repaint().
    But even if repaint() isn't called, Java still seems to call it before actionPerformed and I get exceptions.
    So I tried checking inside of paintComponent() by using a simple if(...) return; but that doesn't seem to do anything... it just keeps going through with the method.
    So -- Once the user presses my button I want to make sure the data is valid before repainting the screen. How can I do this?

    I validate it in actionPerformed which is called by
    the action listener... that is what you meant right?
    The problem is that it seems paintComponent() is being
    called before I can validate the data with
    actionPerformed(). I need to stop paintComponent()
    from always being calledMVC. (Model, View, Controller)
    Initially the internal value of the data (the model) should be valid (or null with a check in the paintComponent method)
    paintComponent (the view part) shows the state of the valid data.
    You press the button.
    actionPerformed is called (the controller).
    It checks the value and, if valid, writes it to the data (model), then updates the view.
    At no point will the view have to render invalid data, because the model is only updated after actionPerformed checks the value.
    The pattern may be applied with different classes performing the three roles, or different methods in the same class (sometimes it's easier that way for simple cases).
    Pete

  • How to implement bapi for transaction code f-02 for multiple line items

    Hi All,
    I am having one requirement to of implementing bapi for tcode f-02.
    I have identified the name of the badi e.i.  BAPI_ACC_GL_POSTING_POST.
    but i dont have any idea how implement it.
    i have multiple line items for one header.
    Please help me in this.
    Regards,
    Shoaib.

    HI
    In recording once u save, the recording comings out the transaction.
    If u want the pop-up to display before save. Then in recording also
    after entering all data and before Save press enter or do check.Try
    this way after that save the transaction.
    Regards,
    Raghu.

  • How to apply metrics for different platform

    Hi,
    If a metric has different code for different platform, or the metric only runs on some specific type of system, how can we apply it to a group of hosts?
    For example, I have a metric that checks only Sun T3 types of systems. I can create a group of hosts that are T3 type system, but how do I apply the metric to this group?
    The other example is the way to collect data is different for Soaris and Linux platform, can I have 2 metrics, one apply to the group of Solaris machines, and the other apply to the group of Linux machines?
    Thanks.

    Hi,
    You can use EM groups and monitoring templates to accomplish what you want to do. For example, create a group for Solaris hosts and a template to push out appropriate metric settings for the group.
    Documentation links:
    - EM groups:
    http://docs.oracle.com/cd/E24628_01/doc.121/e24473/group_management.htm#DAFHBFCB
    - Monitoring templates:
    http://docs.oracle.com/cd/E24628_01/doc.121/e24473/monitor_overview.htm#sthref38
    Regards,
    - Loc

  • How to report on 2 different dates in one report?

    Hello,
    I need to have Date in a sales report represent both Actual Goods Issue Date and Planned Goods Issue Date depending on the  sales order status (i.e. shipped or still in process).
    The report format is like:
    Date--Sales--
    Orders
    Jan 1                                    $0                         $100
    Jan 2                                    $50                       $150
    Jan 3                                    $100                     $300
    Sales is defined as shipped items. Orders are just all incoming sales orders.
    I need Date for Sales to be Actual GI date, and for Orders to be Planned GI date.
    In a customized DSO we have both these dates available, and currently, Calendar Day, Calendar Week are pointing to Planned GI date.
    Thanks.

    For those who might come across this note, the design issue was solved by incorporating Rule Groups.
    Problem:
    Need to have 2 different Date references for 0calday, based on the key figures. For example for Sales key figure date it would reference to Actual GI Date. But, for Intake key figure I needed the date reference to be Planned GI date.
    Solution-- applied to the transfer rules of the desired cube:
    1. In the starndard rule group delete the transfer rule for the appropriate key figures. in this case (sales key figure)
    2. In the same rule group map all time characteristics from the cube to Planned GI date from DSO
    3. Create a new rule group in the transfer rule between the DSO and the Info Cube
    4. In the new rule group, create a new rule for the appropriate key figure i.e. sales
    5. In the new rule group, Map the date/week/month/fiscal period to Actual GI date
    6. save/activate
    This solution eliminates the need for changing the data model, which makes everything almost transparent to the report users.
    Hope this helps someone.
    Edited by: Babak Shafiei on Dec 12, 2008 5:23 PM
    Edited by: Babak Shafiei on Dec 12, 2008 5:24 PM

  • How to implement mapping for a slowly changing dimension

    Hello,
    I don't have any experience with OWB and I need some help.
    I just don't know how to create the ETL process for a slowly changing dimension.
    My scenario is that I have 2 operative systems providing customer information, a staging area and a dwh with a customer dimension with SCD type 2 (created within OWB).
    The oltp data is already transferred to the staging area. But how should the mapping for the dwh table look like? Which operators have to be used?
    I have to check whether the customer record is new or just updated. How can I check every attribute? A new record shall be loaded, an updated record shall be historized (as I configured it in the SCD type 2). I just don't know how the trigger of the SCD is activated. Do I have to try an update on the trigger attribute and then automaticalle a new record is created? But with which operator can I do this? How should the mapping look like? Or is this impossible and do I have to implement this functionality with SQL code only?
    I know how to implement this with SQL code, but my task is to implement this in OWB.
    As you see I did not understand the logic of OWB so far and I hope somebody can help me.
    Greetings,
    Joerg

    Joerg,
    Check the blog below which provides good detail and also check the OWB documentation
    http://www.rittmanmead.com/2006/09/21/working-through-some-scd-2-and-3-examples-using-owb10gr2/
    Thanks,
    Sam.

Maybe you are looking for