Summarizing Data Across Multiple Dates

Here is my issues.
I have two dimensions.
Date and Time. Date is a standard date dimension. Time is a time dimension who's leaf level is at the second.
I need the ability to obtain a value like maximum from my fact table for a given set of prices. I want to summarize this value at the day level. The issue is that the value can span across 2 dates.
Example. A Sunday starts at 4PM and ends Monday at 9AM. I need to obtain the maximum value across these specific times from both Monday and Sunday (at the specified times).
Effectively, I need MAX(MONDAY at time 12:00AM - 9AM, SUNDAY at time 4PM - 11:59:59PM) to be displayed in the data for Date Monday.
Suggestions on to approaches for this?

Guys thanks for your suggestions.  Yes I'll give those options a try...
Just a pity there was no 'aggregator' type activity which would negate the need to go down the route of writing out to SQL or create master/child runbooks which just seem a bit of overkill or adding complexity esp when using very simple runbooks - like I
say maybe one for the IP developers out there...
To illustrate my specific eample (one of many simple runbooks requires a summary email sent out to show output) as below:
So the first Powershell gets VDI desktop names (3 of them) then 2nd Powershell uses these machine names as published data to get associated registration state.  From there I'd ideally like to just generate out the single summary email showing the 3
machines/reg states instead of 3 separate emails.  I added the append line and get line activities to expose the output to check it was OK and then tried flattening various activities to try and only generate the single email (I removed the junction activity
infront of sendmail as it didn't work)
So I'll try the options suggested for spliiting runbooks and/or writing to SQL and see how that goes..
Cheers

Similar Messages

  • Share data across multiple WAR

    Does somebody know any pattern to share data across multiple WAR applications?
    I need to modularize an Intranet Application?
    So, I don't have to shutdown the entire intranet to make the changes in just one module .
    It is possible to share a session object? or I must to get and propagate browser session id :( ?
    Any idea will be appreciated.

    Yes you can, I did it running tomcat
    -First have to set crossContext propertie value to "YES"
    Then this is my pice of working code :
    javax.faces.context.FacesContext facesContext = javax.faces.context.FacesContext.getCurrentInstance();
    javax.faces.context.ExternalContext externalContext = facesContext.getExternalContext();
    javax.servlet.ServletContext servletContext = (javax.servlet.ServletContext)externalContext.getContext();
    Object yourObject = new Object();
    if(servletContext.getContext("/yourContextName")!=null)
    servletContext.getContext("/yourContextName").setAttribute("yourObject ",yourObject);
    Jesus

  • Sync data across multiple clients

    I am create an application in flex that pulls and pushes data to a MySQL database.  This program will have multiple clients logged in at the same time.  I am wondering what the best way to ensure that the data is accurately updated across all of the clients would be.

    Can you explain what you mean exactly by sockets?
    Is there any way to Sync data across multiple clients without the crazy expensive cost of LCDS?

  • Joining multiple tables across multiple data sources in MYSQL throws error

    Hi all,
    I have to join tables across multiples MYSQL databases
    eg :
    Table T1,T2 from DB1
    Table T3 from DB2
    Columns from T3 are aggregated ( dimensional column ).
    Hence when i query using oracle answers ( say i have columns from T1,T2 and T3 ) , OBIEE tries to a query DB1 by having NULL for columns in T3
    It uses cast(NULL as INTEGER ) for columns from T3 . But MYSQL throws an error because "cast(NULL as INTEGER )" is not supported by MYSQL.
    I tried executing the query generated by OBIEE manually , if i try giving cast(NULL as SIGNED INTEGER ) , it works.
    pasting the query for reference
    select distinct D1.c2 as c1,
    D1.c1 as c2,
    cast(NULL as INTEGER ) as c3
    from
    (select distinct T87.title_id as c1,
    T59.asin as c2
    from
    print_book_catalog T59 left outer join
    title_authority T87 On T59.asin = T87.asin
    where ( T59.asin = '0345378911' )
    ) D1
    I am not able to find any config file to set this property ( and use signed integer instead of integer ) . Even DBFeatures.INI does not have relevant information.
    Can someobody please help me solve this problem.

    Stijn,
    Thank you for the article link. That was very helpful! It seems that I had a few things off as you do need the "This source should be combined with other sources at this level." checked. In my two table source columns for DATA_SOURCE I defined a literal ('086496' and '085597' for the other) in the Column Mapping tab. I pasted the following in the Fragmentation content, checking the "This source..." box on the Content tab:
    eSIS.SANDBOX4_SCHOOLS.DATA_SOURCE = '086496'
    And pasted the following into the WHERE clause, checking "Select distinct values" on the Content tab:
    sandbox4."".OBIEE.NWOCA_SCHOOLS.SCHOOL_CODE = VALUEOF(NQ_SESSION."SCHOOL") AND sandbox4."".OBIEE.NWOCA_SCHOOLS.DATA_SOURCE = VALUEOF(NQ_SESSION."GROUP")
    This took care of my user's security, utilizing the session variables in the WHERE clause. I am now able to generate reports that only one user can access from one data source and share that same report with another user who can only see data from the other data source.
    Many thanks!!!

  • Spreading user data across multiple HD's?

    I hope this is the right forum for this. I'm on a Mac Pro 1,1 and recently installed a few extra hard drives to optimize performance for video editing (accoring to recommendations over at another big software company's support docs -- this is not about FCP).
    My goal is to have this general set-up:
    SSD: Boot Drive (OS & Apps) -- already set up
    Disk 2: Editing Project Files, media and exports
    Disk 3: Cache, renders and previews
    Disk 4: Ideally this would be for docs, itunes, photos and anythings non video related.
    The thing is, this advice comes from PC users mainly and the OSX User Folder structure isn't an issue.
    Question: Can the same user folder's contents be spread across multiple HD's? I realize I'll need to physically place a different "house" icon folder in each HD, probably, but can those have different contents? How can I make them all boot on start-up so the disk allocation is pretty much not noticeable?
    Thanks!

    A simple version of what you are trying is to establish a Boot Drive, with only System, Library, Applications, and the hidden unix files. All user files are moved off to a different drive.
    Here are some simple recipes for Moving the "Home" folder"
    Japamac's Blog: Make space for Performance -- Moving the Home Folder
    http://chris.pirillo.com/how-to-move-the-home-folder-in-os-x-and-why/
    You can embellish this basic setup any way you wish, especially putting Movie data on a different drive, and Movie cache data on yet another drive.

  • Time utility shell dimension across multiple date dimensions

    Hello,
    I have built a time utility shell dimension based on a solution from Tomislav Piasevoli (book: MDX with SSAS 2012 cookbook) however I have modified it slightly
    In his example he uses two hierarchies from the same dimension. However I have modified it to use two different date dimensions, 1 hierarchy from each of the dimensions. The hierarchies must be able to be filtered by one another or combined
    in the same query. The problem I’m having is my solution does not work for
    distinct count measures. It works for every other type of measure…sum, count of rows etc etc. The filtering works perfectly when one hierarchy is filtered by the other, it’s just the distinct count that won’t show the parallel period.
    I have created the shell dimension the typical way. Creating a named query like below. Creating the dimension with the default value etc etc
    SELECT       
    0 AS ID, 'As is' AS Name
    UNION ALL
    SELECT       
    1 AS ID, 'Year ago' AS Name
    Below is the original MDX and my modified MDX. If anyone can help that would be great!
    --original mdx for one date dimensions.. the below works perfectly for all measures including distinct counts
    SCOPE( [Time Calcs].[Calc].[Year ago]);
    SCOPE([Date].[Date].MEMBERS,
    [Date].[Calendar Year].[Calendar Year].MEMBERS
    This = (ParallelPeriod([Date].[Calendar].[Calendar Year],1,[Date].[Calendar].CurrentMember),
    ParallelPeriod([Date].[Calendar Weeks].[Calendar Year],1,[Date].[Calendar Weeks].CurrentMember),
    [Time Calcs].[Calc].&[0]
    End
    Scope;
    End
    Scope;
    --my modifed mdx for multiple date dimensions.. the below works perfectly for all measures
    except distinct counts
    SCOPE( [Time Calcs].[Calc].[Year ago]);
    SCOPE([Date].[Date].MEMBERS,
    [Date].[Calendar Year].[Calendar Year].MEMBERS
    [Delivery Date].[Date].MEMBERS,
    [Delivery Date].[Calendar Year].[Calendar Year].MEMBERS
    This = (ParallelPeriod([Date].[Calendar].[Calendar Year],1,[Date].[Calendar].CurrentMember),
    ParallelPeriod([Delivery Date].[Calendar Weeks].[Calendar Year],1,[Delivery Date].[Calendar Weeks].CurrentMember),
    [Time Calcs].[Calc].&[0]
    End
    Scope;
    End
    Scope;

    Hi Toro07,
    Thank you for your question. 
    I am trying to involve someone more familiar with this topic for a further look at this issue. Sometime delay might be expected from the job transferring. Your patience is greatly appreciated. 
    Thank you for your understanding and support.
    Regards,
    Charlie Liao
    TechNet Community Support

  • Office Web Apps Farm Across Multiple Data Centers?

    I have not been able to find any definitive information about this but the article below seems to suggest what I have in mind is not recommended.  I am not sure about supported.
    "Stick to one data center.  Servers in an Office Web Apps Server farm must be in the same data center. Don’t distribute them geographically. Generally you need only one farm, unless you have security needs
    that require an isolated network that has its own Office Web Apps Server farm."
    http://technet.microsoft.com/en-us/library/jj219435.aspx#topology
    What I have is two very well connected data centers located in the same metro area.  We will be deploying a Lync EE pool at each site and use pool pairing for DR.  What I am wondering is should I:
    Create a single Office Web Apps farm with the server from each data center as members?
    Create a farm in each site with a single member, but both farms sharing the same URL?
    Create a farm in each site with a single member, but both farms have different names.  This seems unnecessarily ugly, but throwing it out there.
    Since Lync is using Office Web Apps in read only mode the question is different than if SharePoint were involved.  However, I can't rule out this farm also being used for SharePoint down the road.
    The LB/RP device of choice is Citrix NetScaler.  Another thought I had is can that be configured so incoming requests for Office Web Apps at each data center can prioritize traffic to the server or farm within that data center?  If that is unavailable
    then switch to the server at the other data center?
    Thanks.

    Hi,
    An Office Web Apps farm can be deployed to provide functionality for multiple sites.
    Also you can deploy one Web Apps farm on each site.
    So I think you can choose to deploy with the option one and three as you said.
    Here is a case about deploying Lync deploy Office Web Apps server may help you:
    http://social.technet.microsoft.com/Forums/lync/en-US/7e67bacf-4895-4bdb-95b8-0aff8a0c575f/geographical-placement-of-office-web-app-servers?forum=lyncdeploy
    Best Regards,
    Eason Huang
    Eason Huang
    TechNet Community Support

  • Best workaround for querying across multiple Data Sets?!

    Hi folks
    Today I was migrating my older OEID 3.0 applications to 3.1, and I noticed some of my older version views are not working anymore in new version.
    We used to have multiple Bulk Add/Replace (without specifying Collection Keys) and we could use any attributes from any of these, in a certain View for example.
    My views were like SELECT SUM("an attribute/metric from Bulk Add_1") / SUM("an attribute/metric from Bulk Add_2")
    Now that you have to specify a FROM clause in your views, and it has to be from a certain Data Set, whats the best way to achieve above line goal?
    Bests,

    Patrick
    What I meant by Cross Join is Cartesian Product in situation that you have many-to-many relations between 2 Data Sets
    Lets say, I have to different data, coming from 2 totally different source, one from Sales Dept and the other one from Purchase Dept:
    Sales Table:
    Part Number
    Sales QTY
    Sales Date
    Part Type
    Manufacturer
    Country
    0001
    70
    10/5/2012
    TYPE1
    Manuf1
    US
    0001
    120
    10/6/2012
    TYPE1
    Manuf1
    US
    0001
    350
    10/7/2012
    TYPE1
    Manuf1
    US
    0002
    100
    10/8/2012
    TYPE2
    Manuf2
    US
    0002
    80
    10/9/2012
    TYPE2
    Manuf2
    CA
    0003
    2500
    10/10/2012
    TYPE3
    Manuf3
    CA
    0004
    180
    10/11/2012
    TYPE4
    Manuf4
    US
    Purchase Table:
    Part Number
    Purchase QTY
    Purchase Date
    Part Type
    Manufacturer
    Country
    0001
    50
    10/5/2012
    TYPE1
    Manuf1
    US
    0001
    60
    10/6/2012
    TYPE1
    Manuf1
    US
    0001
    100
    10/7/2012
    TYPE1
    Manuf1
    US
    0001
    200
    10/8/2012
    TYPE1
    Manuf1
    US
    0002
    1100
    10/9/2012
    TYPE2
    Manuf2
    US
    0003
    20
    10/10/2012
    TYPE3
    Manuf3
    US
    What is the preferred approach to ingest this data?

  • Search across multiple data stores

    Hello,
    I have 1 Endeca Server with 2 different data stores in it. I would like to search for example "Marco" in the first data store and also also get the records back from the other data store where "Marco" is in the text. Is that possible?
    Thanks.
    Marco
    Edited by: Marco Snels (AortaBI)(NL) on 9-mei-2012 2:21

    Hi Marco -
    The search box component can be configured for use against multiple search interfaces, potentially from multiple datastores. In this case, the expectation is that during configuration you would specify a target page for each search interface datastore in use and those pages would have components focused on that datastore. The end user can then toggle between the different search interface options and when they submit their search they will be pushed to a page with breadcrumbs and a results list etc. focused on that datastore. All other components are tired to a single datastore and do not merge results from multiple datastore instances. The more common case is that the search box in configured with a single datastore in use.
    Jason

  • Duplicate rows and data across multiple pages.

    My form has 12 pages (each page = 1 month). With a loop, the pages are hidden until the corresponding button is clicked and it becomes visible (Thanks Assure Dynamics for a great solution to a very long form).
    In Month 1, I have a table with a repeating row. What I would like to do is copy the repreating row and it's data to Month 2. Then I would like to have the table from Month 2, duplicate to Month 3, Month 3 to Month 4 and so on.
    I have been able to get the row from Month 1 to duplicate in Month 2 on the exit event of each cell in the row, however, when you are in Month 2 and do not change a cell which was created in Month 1, the data does not duplicate into the next month (Month 3). Instead of on the exit event of the cell(field), I thought placing it on a button would work but it is not.
    This is what I used on the exit event in the table for Month 1:
    xfa.resolveNode("Month2.Performancegoals2.updates.details[" + this.parent.index + "]").projectName.rawValue = this.rawValue;
    I also thought instead of using a table and a repeating row, I could place the information in a repeating subform but I am still stuck with how to copy the subform and its completed data to the next month.
    I am really stuck and have been looking for hours for a solution. Can anyone help, I am out of time for the deadline of this form.?

    Hi,
    Firstly,you must do the count of the table.
    frmTableBlock.tblTableMonth2._rowItem.count = frmTableBlock.tblTableMonth1._rowItem.count
    frmTableBlock.tblTableMonth12._rowItem.count = frmTableBlock.tblTableMonth1._rowItem.count
    And write the code which is do you want to copy the data Month1 to month12.
    I hope
    S,Candy

  • Cartesian time data across multiple hourly rows

    Looking for a solution for exploding time rows into multiple rows by hour. For example, take a row like this:
    EventTime         EventLengthSeconds
    2014-04-25 13:31:16.857 6657
    What I need is multiple rows to allocate the time by hour like this:
    EventTime         EventLengthSeconds
    2014-04-25 13:31:16 1724
    2014-04-25 14:00:00 3600
    2014-04-25 15:00:00 1333
    I've crafted a solution using a derived table that I cross join to then use case statements, etc. but it's super ugly and I'm embarrassed to post it. 
    I'm thinking in SQL 2012 there must be a elegant and efficient way to do this with the new windowing functions that are available. 
    Thanks for any insights and suggestions.

    You need a table of hours for this problem. The more general concept is a table of numbers. That is, a table that spans the dimension you are working and provides a row for each discrete value.
    Below is an example how you can fill the table and then a query which uses this table:
    CREATE TABLE Hours (Hour smalldatetime NOT NULL PRIMARY KEY);
    WITH digits (d) AS (
       SELECT 1 UNION SELECT 2 UNION SELECT 3 UNION
       SELECT 4 UNION SELECT 5 UNION SELECT 6 UNION
       SELECT 7 UNION SELECT 8 UNION SELECT 9 UNION
       SELECT 0)
    INSERT Hours (Hour)
       SELECT dateadd(Hour, Number, '20000101')
       FROM   (SELECT i.d + ii.d * 10 + iii.d * 100 + iv.d * 1000 +
                      v.d * 10000 + vi.d * 100000 AS Number
               FROM   digits i
               CROSS  JOIN digits ii
               CROSS  JOIN digits iii
               CROSS  JOIN digits iv
               CROSS  JOIN digits v
               CROSS  JOIN digits vi) AS Numbers
       WHERE  Number > 0
         AND  dateadd(Hour, Number, '20000101') < '20500101'
    DECLARE @eventtime datetime2(3) = '2014-04-25 13:31:16.857',
            @eventspan int          = 6657
    SELECT @eventtime AS EventTime,
           3600 - (60*datepart(minute, @eventtime) +
                      datepart(second, @eventtime)) AS EventSeconds
    UNION ALL
    SELECT Hour,
           CASE WHEN dateadd(second, @eventspan, @eventtime) >
                     dateadd(HOUR, 1, Hour)
                THEN 3600
                ELSE datediff(SECOND, Hour, dateadd(second, @eventspan, @eventtime))
          END
    FROM   Hours
    WHERE  Hour > @eventtime
      AND  Hour < dateadd(SECOND, @eventspan, @eventtime)
    Erland Sommarskog, SQL Server MVP, [email protected]

  • How to autopopulate a text field with unique data from multiple data sets

    Hi,
    I'm a laboratory manager in charge of a hospital project which will be using pdf forms to send and receive data from our end users across the city. I need help with the last part of our pdf form, specifically with a js that will do a bit of text-field autopopulation magic. This, unfortunately, is a beyond what I have taught myself about pdf js functionality.a
    The problem:
    I need to provide my end users with a text field containing a set of data [A, B, C, D, E, F ...] and the total items in this set [tot#]. The end user needs this information as part of the implementation of this particular laboratory machine.
    The particulars
    When the end user asks for an experiment to be run, we must specify some pieces of data to help them interpret the results. These are constructed as panels which contain discrete data elements.
    For example - One experiment may use two panels, Panel#1 and Panel #2. Panel #1 includes the items A, B, D, E, Panel #2 includes the items A, B, C, F, G.
    Thus, the panels may share some of the same items, but, I only want the unique members to be displayed in the text field. If I make a drop down box or checkboxes with the panels, I want to  be able to select the panels that we ran and (in this example) have the text field display only the unique items among all the panels that were used:
    textfield outpute = A, B, C, D, E, F, G - 7 total.
    Any assistance from the pdf community would be very much appreciated.
    Thanks!

    Thanks for that help.
    I should have made it more apparent that I'm very new to scripting and I'm
    not a programmer by trade. I have a few questions before modifying the code
    you kindly provided.
    1) Where should I embed this script? Within the 'selection change' area of
    my listbox?
    2) Can I replace the term 'arr' with the names of the various items in my
    listbox or should I put 'arr#' as the output value for each term?
    3) Will this script find and display the unique values when a user selects
    multiple items in my listbox?
    4) How does the script know where to output the unique members of the
    combined set?
    I appreciate your patience with me.
    ck

  • To comapre a single date with multiple dates

    Hi All,
    I am using fetch xml report in which there are two table Opportunity and activity
    One Opportunity with have multiple activity
    Opportunity has a field  called new_dateofapplication
    and Activity has a field called StartDateActivity which have multiple values
    i need to compare these dates somehow as below  but it didnt work
    =iif((Fields!new_dateofapplicationValue.Value)<=(Fields!StartDateActivityValue.Value),sum(Fields!ActivityDurationValue.Value),0)
    for e.g
    Any help much appreciated
    Thanks
    Pradnya07

    Hi Simran08,
    According to your description, you have two tables in your report. Now you want to compare the date in Opportunity table with the date in Activity table, sum all activity hours which their date are later than the start date. Right?
    In Reporting Service, if you want to compare two values in IIF() function without using Lookup/LookupSet, these two data fields need to be in same scope. Your date are from different tables. It seems you have different datasets for those tables. This may
    be the reason why you can’t make your expression working in your report. And for comparing data from different datasets, we only have Lookup/LookupSet function. However, this function is only working in conditions where the value of one field is equals to
    the value of the other field. So we can never use this function to judge if the value of one field is greater/less than the value of the other field. So in your scenario, it’s impossible to find a solution if your Activity table only has those two columns.
    Also if you get the total hours in that way (like you post in your picture), you can’t figure out how many hours in total hours are spent on each program. But I guess it supposed to have some fields in your Activity to show clients and program. If so, you
    just need to set groups in your table and get total in group footer. It will looks like below:
    If possible could you post the dataset and table structure or any other detail information about your report? That can help us tested your case in our local environment and do further analysis. Thank you.
    Reference:
    LookupSet Function (Report Builder and SSRS)
    Best Regards,
    Simon Hou
     

  • How can split data into multiple sheets using an excel template

    Hi all,
    I'm using BIP 10.1.3.4.1 upgrated with the latest rollup patch, 9546699.
    I followed the example inside the article "Real Excel Templates 1.5" (on the Tim Dexter's blog)
    http://blogs.oracle.com/xmlpublisher/2010/05/real_excel_templates_i.html
    and I built my report directly from an excel template containing only one sheet (plus the XDO_METADATA sheet), and for one sheet it worked fine !!!
    Now I need to add more sheets to the template.... and I have two big questions:
    1. if I need to create a second sheet which contains almost the same data (with a different layout), I saw that it is not possible to map a value to more than 1 cell....so if I map a value in the first sheet, I can't map it in the second sheet (because it's already used in the first one).
    How can I map same values into two or different execll
    2. if I need to create a second sheet which contains another dataset (completely different from the dataset in the first sheet), I can I do, considering that every BIP report is based on ONLY a data source.
    Tim wrote: The most impressive, for me at least, is the sheet 'bursting'. You can split your hierarchical data across multiple sheets and dynamically name those sheets
    but I didn't yet understand how this bursting it's possible.....considering what I said above.....
    Surely I've a lack of knowledge.....but anybody can help me to understanding the "multiple excel sheets" black hole ?
    I'll appreciate any kind of help
    Thanks in advance
    Alex

    You can find working solution here http://xlspe.com

  • Need inputs how to extract data to BI in multiple Data packets from ECC

    HI Experts,
    would like to know how can i restrict  the data to be fetched in multiple data packets as of now all  the data is coming in to BI in a single data packet....
    I want to get this data in multiple data packets.
    I have checked the infopackage settings  in BI its as similar to any other Infopackage  which is fetching  in multiple data packets.
    Is there any posibility to restrict data with in ECC

    Hussein,
    Thank you for the helpfull information.
    That document gave me lot of information about ANSI extract for BENIFITS.
    Thanks
    Kumar.

Maybe you are looking for