Mapping "Time-variant"dimension

Hi,
how can I map in AWM a dimension which has a level "time-variant"? Maybe I must add to the dimension a level which refers to key of Time Dimension?
Thanks
Giancarlo

Giancarlo,
Thanks for the tables and mappings. It always helps to have specific details. The next question is how do you want to report this data? I assume you want to know the total revenue by city and date. E.g.
select sum(revenue), c.city, t.month_id
from
customer_dim_table c, time_dim_table t, fact_table f
where <natural joins>
group by c.city, t.month_id
I assume you also want to know the result by customer name (which I will assume for the sake of argument is a unique identifier). E.g.
select sum(revenue), c.customer_name, t.month_id
from
customer_dim_table c, time_dim_table t, fact_table f
where <natural joins>
group by c.customer_name, t.month_id
Finally, I expect you want the same thing where the group by doesn't include month. e.g.
select sum(revenue), c.customer_name
from
customer_dim_table c, time_dim_table t, fact_table f
where <natural joins>
group by c.customer_name
Is this accurate? The answer will help determine a proper hierarchy structure for the customer dimension.
On another issue, are you only interested in the simple aggregates or do you also want calculated measures (such as year to date)? The answer to this will let me know if you could use rewrite on a cube materialized view, which simplifies matters a little.
One more question. How are you using the 'validity' column? Specifically, what happens if customer 'Patrick Jackson' remains in NY for another month. Will you add a third row (with validity = 3) or are you assuming that the system is smart enough to know that if there is no validity = 3 row, then it should look for validity = 2 (etc)?

Similar Messages

  • Driving times vary from Maps and Google maps?

    When I plot a trip I find driving times vary significantly from Maps and Google maps.  I wonder what the paramieters are for attaching driving times to routes?  I would hope that it were speed limits.

    Basically it is average driving time. Speed limits is a factor but so is congestion, terrain, weather, construction, etc. Since Apple and Google get their data from different sources, the results are always going to be different.

  • How to use the Time Variants PYTD and Prior Year Annual?

    Hi,
    We have a time dimension which has the generic columns i.e Month, Year.
    We need to calculate the Time variants for the Facts Say Sales. I was able to calculate the Prior Month, Current YTD
    I have some doubts regarding the other variants:
    1. Prior Year : Does this include the Prior Year Annual?
    2. Prior YTD: How to calculate it?
    Somehow I am getting the same results for PYTD and Prior Year.
    The formula used are :
    Prior Year:
    AGO(Sales, Year, 1)
    PYTD:
    AGO(Sales CYTD, Year, 1)
    Has anybody encountered similar issue?

    I assume the Sales measure is a monthly measure. The Prior year calculation as I described will give you the sales for the same month in the previous year when selecting month in your report. When selecting year it will add up all months of the prior year until now and you will indeed see the Prior year YTD.
    If you want to see the total sales for the previous year you have to use the same calculation as 'Prior year' and map it to the year level of your time dimension. This will work as a 'partition by year'.

  • Error While Saving Mapping For A Dimension

    I am getting The Error While Saving The mapping For a Dimension
    Any Clue?
    An error occurred creating DimensionMapGroup BROKERS.MAPGROUP1.DIMENSIONMAPGROUP : ***Error Occured in
    DELETE_MAPPING_GROUP: Analytic workspace object __XML_STARTUP_CALCMMBRS does
    not exist.
    Thanks
    Raghu

    Check the OSS note 550760 regarding the issue.

  • Issues with using SV Time-Varying Loudness.vi

    Hi,
      I am rather new to Labview and am having issues getting my Time-Varying Loudness calcuations to come out correctly. Attached is my current VI and a .csv file of a set of my data (calibrated in Pa. Sample rate = 50kHz for 5 seconds). When i run the VI it does not output what I would expect. Here are my questions:
    Time-Varying Loudness:
    1) What are there so many signals? There are hundreds of lines, but I only expected one.
    2) Why is my x-axis not a range of 1 to 24 like Barks should be?
    1/3 Octave Band Analsysis:
    1) Why does it look incorrect? Their shouldnt be a linear increase as a function of frequency...
    The data is of a part being squeezed and making a squeek. So it is a transient noise that happens around 2 seconds. Additionaly, how would I go about making a waterfall (Time(s),Frequency(Hz),Amplidtude(sones)) of this signal? Is there any easy way? or do I have to make all three signals and add them to make one plot?
    Thank you for your help! Let me know if you need more infromation,
    -Troy
    p.s. i included a picture of the results as well.
    Solved!
    Go to Solution.
    Attachments:
    TimeVaryingIssue.zip ‏668 KB

    Hi Troy,
    1) The SV Specific Loudness VI "chunks" data into 2 ms blocks, and then returns these as individual Specific Loudness vs. Sone plots.  The colored lines you are seeing on your graph are representative of the 2,500 2 ms time periods within your five-second acquisition.  Each of these plots contains 241 points, however they should occur in ten sample "steps", one for each sone.  The digital filter's buffer takes a bit to fill and kick in properly, however, so you may want to give your first few rows( 0-.02 seconds or so) a closer look before using them- you may see a number of unexpected zeroes around the lowest sones.
    2) Since you are using a chart, the x-axis will increment with every subsequent run (the previous data is retained.)  If you only want to display the most recent data, I would recommend switching to a graph, which can also be found in the graph controls palette.  Also, see above (#1) for why the x-axis is longer than 24 points.
    3) Remember that dB is a unitless measure, and can only be used in reference to another value. A typical reference for sound is 20 uPa, however you will likely need to equalize your input data and determine/set a dB reference.  You may want to take a look at SVL Scale voltage to EU.vi (EU stands for equalized units) and SVL Set dB reference.vi.  In your case, I believe the Octave plot is showing your dB relative to a default value of 1.  The values should be accurate with respect to one another, but you will need to provide a reference value to calibrate the scale.
    4) I think that this VI serves as a good example of how to go about creating a waterfall plot:
    Waterfall Display for Octave (DAQmx)
    http://zone.ni.com/devzone/cda/epd/p/id/5562
    You will need to break up your waveform into chunks, much like the specific loudness VI, but the basic concept is roughly the same (take waveform chunk, take octave measurement of chunk, append octave measurement output cluster to array of clusters, repeat for remainder of waveform, display)
    Phew!  That was quite a bit of information.  Let me know if that makes sense, and don't be intimidated by the detail and/or unfamiliar functions or methods  - you're definitely on the right track, or at the very least asking the right questions.
    Tom L.

  • HELP: Run-time array dimension in LabVIEW formula node

    I need to dimension an array at run time within a formula node as follows:
    int32 i,N;
    N = sizeOfDim(inputArray,0);
    float64 outputArray[N];
    for (i = 0; i outputArray[i] = myfunction(inputArray[i]);
    However, LabVIEW complains "Formula Node: index list expected". On the
    other hand, if I say
    float64 outputArray[1000];
    LabVIEW is perfectly happy. But that's not what I need to do! Is there
    an alternative
    way of accomplishing my goal?
    BTW, I've tried calculating N outside the formula node and then
    presenting it as
    an input with the same results. I've got a bad feeling that run time
    array dimensioning
    just isn't allowed.
    TIA,
    Hugh

    Can't you just use the Initialize Array function outside the formula node and pass that instead?

  • SSAS 2008 - How to get processing times per dimension / measure group?

    Hi experts!
    SSAS 2008. I am doing analysis and I'm trying to get information (from dmv or log) about processing times per dimension / measure group. Any ideas how to do that?
    Thanks,

    also in DMV there's no column recording the processing time, so we suggest you using SSAS AMO to programmatically get the state and last processed date time. Please see:
    Analysis Management Objects (AMO)
    Hi John,
    Thanks for you info, As
    Simon Suggested there is no DMV columns available.
    You can use below link for more information.
    Programming Administrative Tasks with AMO
    Cube
    partition attributes for last processed (timestamp and status)
    Thanks
    Suhas
    Mark as Answer if this resolves your problem or "Vote as Helpful" if you find it helpful.
    My Blog
    Follow @SuhasKudekar

  • Question on Time Variant

    Hello All
    How is the time variants gets the data, Do we need to LOAD data from Source system, like how we do for Master Data Load ?
    Thanks, looks silly questions, but good to understand ....
    BI

    Hi,
    In rsa1 of BW goto the source systems. Right click on your source system and select Transfer Global Settings. This will do your job. You need not to LOAD any data from Source system.
    Hope this Helps,
    Thanks,
    Amit

  • User define Function at Mapping Time

    Hello Everyone,
    My requirement is I input the one value to the user define function (at mapping time). That function calls the RFC to R/3 system and return the 3 output values. Now my question is how can I return 3-output value from the user define function.
    What is the other possibility to solve this type of problem?
    Where we have one input parameter and more than one output parameter.
    If any one did this kind of job. Please give me the idea how can I solve this.
    Regards,
    Gaurav Jain

    Hello Richard,
    Are you talking about <b>copy head to line</b> example given in MappingFunctionality.pdf.
    In my scenario:
    Input - NULL
    Output - OP1, OP2, RESULT
    And I write my Advance user define function as
    import com.sap.mw.jco.*;
    public void Lookupfunction(ResultList result, Container container){
    JCO.Repository mRepository;
    // Change the logon information to your own system/user
    JCO.Client mConnection = JCO.createClient(
        "100", // SAP client
        "user", // userid
        "pass", // password
        "EN", // language
        "hostid", // host name
        "00" ); // system number
    // connect to SAP
    mConnection.connect();
    // create repository
    mRepository = new JCO.Repository( "SAPLookup", mConnection );
    // Create function
    JCO.Function function = null;
    IFunctionTemplate ft = mRepository.getFunctionTemplate("ZTEST2");
    function = ft.getFunction();
    mConnection.execute( function );
    result.addValue( function.getExportParameterList().getString( "OP1" ) );
    result.addValue(function.getExportParameterList().getString( "OP2" ) );
    result.addValue(function.getExportParameterList().getString( "RESULT" ) );
    mConnection.disconnect();
    But it shows me only one field as output in mapping icon.
    so as per the mapping document i attach splitbyvalue over that but in the example only one field at the output side where i have three field.
    How can i solve the problem?
    Even i check in XI 2.0 System it doesn't show output at all.
    Thanks & Regards,
    Gaurav Jain
    Message was edited by: Gaurav Jain

  • Time varying velocity input for servo motor

    I 'm running a PXI-8145RT CPU with a 7344 motion controller.I want to load a time varying velocity profile for my servo motor.How can I do this? The "load velocity" tile does not have an input for such a profile,but only for a maximum velocity that will be reached after a certain time.

    Are you using the Motion Assistant or a programming language like LabVIEW? If you are using the motion assistant, you can do a contoured move with a Position-Velocity-Time Profile. I have never done this, but it sounds to be what you are looking for. This assumes that you have a controller that can do contoured moves.
    Hope that this helps,
    Bob
    Bob Young - Test Engineer - Lapsed Certified LabVIEW Developer
    DISTek Integration, Inc. - NI Alliance Member
    mailto:[email protected]

  • Import times vary-explain this to me please

    Why is it that when I’m importing a CD to iTunes (this is with either a new CD or an old CD) the import times vary so drastically?

    2. It displays the objects on the stage. (It displays them one by one in the order in which they
    were dragged to the stage from the Library when you designed the game in the FLA.)what does he mean by saying display them on the stage?? because i cant see them without addchild method and he said the swf file display them??!!!!!!!!
    are you using pure AS3 or are you using the design tool in CS4/5
    when using the design tool in CS4/5 you can have objects in the library and drag them to the stage. this will automatically at the objects to the stage without having to call addChild()
    if you are using pure AS3 you don't have access to this and you have to explicity add all you objects using addChild
    Here’s the issue: if the class’s constructor method includes a reference to the stage or an object that
    is on the stage that hasn’t yet been displayed, you’ll get an error message saying this: here i cant understand any single word!!
    Error #1009: Cannot access a property or method of a null object reference.
    you would only need to add a reference to the stage for non DisplayObjects (e.g. generally things that aren't sprites or MovieClips)
    All DisplayObjects have access to the stage via the stage property. The stage property for an object is always null until you call addChild, not when they are constructed as you mention.
    if you are trying to use the stageWidth and stageHeight property you shouldn't do this in the constructor of the object instead you would need to add an Event.ADDED_TO_STAGE listener and then do any configuration based ont he stage within this listener.
    hope that clears it up a little

  • Frequency analysis of time varying data

    I want to add a routine for frequency analysis of before and after strong impulse on a body.
    Some vibration sensors will be attached to the body.
    In this case, I was told I need to use a time-varying method like wavelet or any other to analysis instead of simple FFT.
    I installed wavelet package but I have no idea how to use it.
    (Wavelet method seems to be popular in reduction of noise.)
    Only what I want to know is the frequency elements in dynamics.
    Can you recommend any tools (functions) for my purpose?
    Are there some LabVIEW examples?
    I am using LV2009 and some extra toolkits (developer suites).
    labmaster.

    labmaster wrote:
    I want to ask some curious things.
    1. I have to analysis the spectrum of frequency in dynamic signal.
    In case of presenting dB, how to know the frequencies?
    2. In high sampling rate (1MHz), the low frequency element can't be analyzed. (too small window for 60Hz in my last example).
    If so, generally, do I have to down sampling to ~1kHz for the 1MHz in wavelet or short time FT?
    Take a look on how the Express VI you are using are made. The Express VI you are using is located here
    C:\Program files\National Instruments\LabVIEW 2010\vi.lib\addons\Time Frequency Analysis\_express\_TimeFrequencySpectrogramConfig.llb
    The VI you need to open is the configure.vi. Copy this VI to your user.lib folder before doing any work on it.
    To answer your first question. The dB setting will change the Y axis scaling, and not the X axis scaling. Which is the frequncy axis 
    The step between each frequncy bin will be( number of Frequency bins/(Fsample/2)). So using 1 MHz may reduce resolution. Perhaps 10 KHz will be bettter for you to use. 
    Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
    (Sorry no Labview "brag list" so far)

  • Time and Dimension Consolidation

    Hi All
    Can some one help in explaining Time and Dimension Consolidation in BICA link under create scorecard metric.
    How does this setting impact target calculation. And what does Enter and None option work under dimension consolidation and options avaiable under time consolidation.
    Help is highly appreciated.
    Regards
    Nagesh

    Nagesh,
    There are some significant differences between how Time and Dimensions are handled in SSM.
    Time: InfoCubes have time characteristics for each time period. SSM has no characteristic for Time which gives it greater flexibility to use different time settings. In BICA you are taking the most granular time characteristic to bring into SSM. Then in SSM you can aggregate or divide the measure value into any other time periodcity.
    Dimensions: Key Figures in InfoCubes are dimensioned by every characteristic in the Dimension Tables. In SSM, measures can have different dimensionality or, in some cases, no dimensionality. An easy example to better understand is that in SSM, SALES can be dimensioned by Customer, Customer Group and Product, and COSTS can be dimensioned by just Customer Group and Product.
    The BICA connector that is used does not bring in all the internal features of BEx. There are internal calculations that BEx does that is not exposed to SSM through the BICA. That is why in some cases you can see some difference between the BEx output and the data in SSM.
    There is a Best Practices Guide BICA for BW which is the best resource of information on the BICA connector and understanding some of the key differences between data in BW and how to bring that into SSM.
    http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/701b8da0-3135-2b10-929d-936e43164b06
    Although the document says its for SSM 7.0, the doc will apply to SSM 7.5 as well.
    Regards,
    Bob
    Edited by: Bob McGlynn on Jan 14, 2011 6:27 AM

  • MPC Time Varying Output Constraints

    Does anyone have experience with implementing time-varying output constraints for an MPC controller (from the Control Design Module)?
    So far, from playing around with the example VIs it seems that I'm stuck with fixed values.
    Cheers.

    Hi Signorec, 
    Can I ask what example VIs you've been looking at? The ones that come with the Control Design Module in LabVIEW example finder?
    When you say time-varying output constraints do you mean be able to change the MPC configuration settings during run time? From the examples I can find it seems that you set it all up and leave it to run. Where as you would like to be able to tweak the settings at particular times? Is that correct? 
    Assuming that it is the implmentation of the MPC controllor occurs within a Control & Simulation Loop. To change any constraints on the MPC you would need to stop that loop, change the settings and re-initalise the process before running that Control & Simulation Loop again. You can implement this with a state machine architecture or a while loop and some logic. I would recommend the state machine personally. 
    Please let me know if I have misinterprted the question or if there's something unclear. If you want me to take a look at an example you're working from I can show you the basic architecture you would need if you like? 
    Best wishes, 
    Charlotte N.
    Applications Engineer, NI UK & Ireland

  • Do 15 times varying problem

    hi all,
    i have to pic the value of BET01.....BET15 from PA0589 according to PERNR where LGA01 = '4004'.
    but i m not able to find the same. can anyone please halp me?
    codes:
    INFOTYPES: 0589.
    DATA : BEGIN OF itab OCCURS 0 ,
           pernr LIKE pa0000-pernr ,                       "Personel no.
    END OF itab .
    DATA: BEGIN OF wagetypes,
          lga LIKE p0008-lga01,
          bet LIKE p0008-bet01,
      END OF wagetypes.
    DATA : BEGIN OF it_itab OCCURS 0 ,
           pernr LIKE pa0000-pernr ,                       "Personel no.
           lga01 LIKE pa0589-lga01,
           bet01 LIKE pa0589-bet01,
           begda LIKE pa0589-begda ,                       "Lta start date
           lgart LIKE pa0015-lgart,                        "SUBTYPE OF INFOTYPE
           endda LIKE pa0015-endda ,                       "LTA Taken Date
           betrg LIKE pa0015-betrg,                        "LTA Amount
           zuord LIKE pa0015-zuord,                        "Assignment number
           ename LIKE pa0001-ename ,                       "Employee name
           ent_amt TYPE p DECIMALS 2,
           pending TYPE p DECIMALS 2,                      "Pending LTA amount
    END OF it_itab .
    START-OF-SELECTION.
      SELECT pernr INTO TABLE itab FROM pa0000 WHERE pernr IN pernr AND endda = '99991231' AND stat2 = '3'.
    SORT itab BY pernr.
    LOOP AT itab.
        rp_provide_from_last p0589 space pn-begda pn-endda.
        DO 15 TIMES VARYING wagetypes-lga
                  FROM p0589-lga01
                  NEXT p0589-lga02
           VARYING wagetypes-bet
                  FROM p0589-bet01
                  NEXT p0589-bet02.
          IF wagetypes-lga EQ '4004'.
            CLEAR wa_itab.
            MOVE p0589-pernr   TO wa_itab-pernr.
            MOVE p0589-begda   TO wa_itab-begda.
            MOVE wagetypes-lga TO wa_itab-lga01.
            MOVE wagetypes-bet TO wa_itab-bet01.
            APPEND wa_itab TO it_itab.
          ELSE.
            EXIT.
          ENDIF.
        ENDDO.
    actually i need amount according to wage type '4004', and this wage type can maintain the value in any colom of table pa0589 as ita define as LGA01....to....LGA15 and respective amount maintained in BET01.....to.....BET15.
    so please help me.
    regards saurabh.
    Edited by: saurabh srivastava on Jan 17, 2009 6:26 AM
    Edited by: saurabh srivastava on Jan 17, 2009 6:40 AM
    Edited by: saurabh srivastava on Jan 17, 2009 7:22 AM

    Hi, Saurabh,
    Following code may help you in this way here i am getting wage types 3003, 3004 and 3005.
    get payroll.
      clear: p0001.
      rp_provide_from_last p0001 space payroll-evp-fpbeg payroll-evp-fpend.
      if ( payroll-evp-srtza = 'A' ).
        clear: orgeh_val .
        clear: wa_wpbp.
        loop at payroll-inter-wpbp into wa_wpbp ."where pernr = pernr.
          orgeh_val = wa_wpbp-orgeh.
        endloop.
        " Test on orgeh_val to get it's ist level node and 2nd  level node value
        if orgeh_val in department.
          objid_root_level = orgeh_val.
          objid_child_level = orgeh_val.
        else.
          perform get_2_dept using orgeh_val changing objid_root_level objid_child_level.
          objid_root_level = objid_root_level.
          objid_child_level = objid_child_level.
        endif.
        "-------------- End of getting ist level and 2nd level node value---------------------
        "----- Now get it's lgart value-------------->
        loop at payroll-inter-rt into wa_rt where   lgart =  '3003' or lgart =  '3004' or lgart = '3005'.
          if sy-subrc = 0.
            clear wa_it_final.
            "     BREAK-POINT.
            wa_it_final-objid = objid_root_level.
            wa_it_final-orgeh = objid_child_level.
            wa_it_final-tot_emp = 1.
            wa_it_final-amount = wa_rt-betrg.
            collect wa_it_final into it_final.
          endif.
        endloop.
        "BREAK-POINT.
      endif.
    Please Reply if any Issue,
    Kind Regards,
    Faisal

Maybe you are looking for

  • Setting dynamic default values in a list/menu

    To save problems with inserting dates into a Mysql database, I have split the input fields on the file insert form into three drop down lists containing the day, month and year. In order to make it easy for users, I wish to take the current date, spl

  • Trying to install itunes on xp. Popup in top left corner "webpage cannot be displayed".

    Using IE8 and have security set to low and pop up blocker off. security allowes software to run without authenticity. Please help! Unable to do anything with my iPods since I wiped my computer!

  • Size of thumbnails in spry image slideshow with filmstrip

    is there some way to make it so the thumbnails on the filmstrip show a mini pic of the actual linked photo. At the moment it only shows a section of the photo (often BG) which kind of defeats the purpose of having a thumbnail filmstrip at all. Thanks

  • File receiver append - how to prevent from data losing

    Hi I am working on scenario where I am appending a file. The problem is that another system is processing that file every 15 minutes. File is copied to another place and then processed, but the original should not be touched until file is copied. How

  • New Lot Creation - Urgent

    Hi all, I have an issue to discuss. I have some stock that has not been entered into the system and that stock is free of cost. I want a quality inspection for this stock. How can i do a quality inspection of this stock without raising a PO?? I know