Best way to create blocks from "No Year" to each year

Hi,
I have a scenario where I need to create blocks for each year based on the data in "No Year", keeping all the other members same.
Years in Year dimension are not fixed as every year it would be added, so I do not want to hard code the years.
I was looking the Datacopy command but am not able to get it using the same.
Following is the extract of the code that I am trying to execute.....
SET UPDATECALC OFF;
SET CREATEBLOCKONEQ ON;
SET LOCKBLOCK HIGH;
FIX(
     [Scenario],
     "No Year",
     "ALDAR PJSC",
     "ICE99999",
     "ARB-Al Bandar","P115101", /* Projects */
     @RELATIVE("Emp013",0), /* Employees*/
     @RELATIVE("EMPG001",0), /* Employee Grade */
     @RELATIVE("D100000",0), /* Department */
     @RELATIVE("Period",0), /* Period - Dense */
     "ADJ120",     /* Adjust - Dense */
     "ST02021300" /* Account - Dense */
     [Version]
          [Version] = [Version] + 0;
ENDFIX
In the above case, I want to use @RELATIVE("Projects",0) which has around 90 members, but it takes huge amount of time. So, I tried having only one Project member initially and it took around 1 minute; then I tried using 2 members from Project dimemsion, then it took 2 minutes...
Let know if there is any way to create blocks......

Why not do a DATACOPY with a substitution variable as the target?
FIX(
[Scenario],
[Version]
"ALDAR PJSC",
"ICE99999",
"ARB-Al Bandar","P115101", /* Projects */
@RELATIVE("Emp013",0), /* Employees*/
@RELATIVE("EMPG001",0), /* Employee Grade */
@RELATIVE("D100000",0), /* Department */
@RELATIVE("Period",0), /* Period - Dense */
"ADJ120", /* Adjust - Dense */
"ST02021300" /* Account - Dense */
/* Copy the data, creating blocks along the way. */
DATACOPY "No Year" TO &NextYear ;
/* Get rid of data, but keep blocks. */
FIX(&NextYear)
CLEARBLOCK ALL ;
ENDFIX
ENDFIX
That would be pretty quick.
Regards,
Cameron Lackpour

Similar Messages

  • Best way to create DVD from videos from several events?

    Hi all - I'm very new to iMovie and iDVD and was hoping for some advice. I'm making a compilation DVD "for the grandparents" of videos from a variety of the kids' events throughout the year. What's the best way to do this? By the way, I've switched to using iMovie HD but am still using iDVD '08. I've been prototyping a few things and came up with the following options:
    Option 1: Create one iMovie HD project and import all the videos from the various events into one timeline. I then create the chapter markers as usual, then Share with iDVD.
    Question: I want each of the event videos to return to the DVD Menu. How would I do that if all the videos have been combined into one timeline in iMovie HD?
    Option 2: Create each event video under its own iMovie HD project. Export each video into .dv format (I don't know what the best format would be). In iDVD, insert each video.
    Questions: Would I lose video quality going this route? If I wanted to create chapter markers within each event video, I assume I would lose them once I've exported to .dv format?
    Which of the above would be a better option? Is there a better option?
    Thanks!

    If you make changes to your iMovie project, the next time you open your iDVD project a pop-up will inform you that assets have been updated and asks if you want to update. Click update and your changes will be incorporated. As long as you haven't changed locations of your iDVD project and iMovie project, iDVD will point to the ongoing iMovie project. But if you move your iDVD project to another drive, or rename the iMovie project, iDVD will tell you that there are missing assets because it can't find your iMovie project. At least, that's what happens to me when I do that.
    Happy Turkey day!

  • Best way to extract data from 2 years records/Numbers files for tax return?

    Hi
    I am wanting to find a way of generating my annual tax returns from my financial records, which will be stored in a separate Numbers file for each Calendar Year.
    As the Tax Year (in the UK) is different from the Calendar Year (in the UK it runs from April 6 to April 5), I would need to extract information from two different Numbers files, to a third Numbers file. Is it possible to do this, and would this be relatively straightforward?
    I'd be interested to hear from others who have used Numbers for a similar purpose, and how they have organised things.
    Thanks
    Nick

    The easiest soluce is to forget the use of separate documents.
    Use one sheet per year and it will be really easy to achieve your goal using only formulas.
    With separate documents, the unique soluce is to use an AppleScript.
    I may write one but I'm a bit tired because I posted a lot of such soluce and in most cases, I don't know if they give satisfaction to the askers.
    Coding for the clouds isn't my cup of tea so I think that for some days, I will leave AppleScript and will work upon the archives of my workshop.
    Yvan KOENIG (VALLAURIS, France) mercredi 4 août 2010 19:15:58

  • Best way to create array from sampled signal???

    I'm not sure exactly how to pose this question (been using labview for less than 2 weeks). I'm trying to graph the position of a motorized stage being run though an old Newport controller. I can obtain the position no problem. My sub-routine to get the position is in a while loop that repeats every 200 ms. I added a shift register to keep create an index to make the array, but it only stores the final position in the middle of the array, and puts zeros everywhere else (I initialized a large array outside the loop so it's basically just not writing anything except for that one value).
    When I use the probe the index and position values change together, I just don't understand why it doesn't store.
    Sorry if this is vague, I'm just not sure how to store these values to plot them. Any help is apprecated.
    Thanks
    Tim

    I'm unclear from you message exactly what you are doing with the shift register, but if you create an array outside the loop, of the maximum size expected (with a little more in case your guestimate is wrong) then use the loop index to index a "replace array subset" to replace the 0 value with your new value. Alternatively, create a null array of the right data type (an array constant) and do an append. Or just lead the value to the loop edge and enable indexing. The first two allow you to "see" the array during the running, the later one only allows you to see the results when the loop is stopped.
    P.M.
    Putnam
    Certified LabVIEW Developer
    Senior Test Engineer
    Currently using LV 6.1-LabVIEW 2012, RT8.5
    LabVIEW Champion
    Attachments:
    adding to loop.vi ‏43 KB

  • What's the best way to transfer everything from my 5-year-old iMac to my 1-year-old iMac?

    What's the best way to transfer everything from my 5-year-old iMac to my 1-year-old iMac?
    I'm doing role reversal with these two.  The newer imac is becoming our business computer, the older one will be our personal computer from now on until it gives out.  For the record, I have Carbonite on the business unit.  Should be a no-brainer, right?  (Which is precisely why I'm asking!)
    Thanks for whatever timely and accurate advise you may have.

    Thanks. I stumbled across migration assistant later that afternoon in a google search. Just finished using it today to do the deed. Appreciate your quick response!

  • What is the best way to create a database schema from XML

    What is the best way to create a database schema from XML?
    i have  a complex XML file that I want to create a database from and consistently import new XML files of the same schema type. Currently I have started off by mapping the XSD into Excel and using Mysql for Excel to push into MySQL.
    There must be a more .net microsoft solution for this but I cannot locate the topic and tools by searching. What are the best tools and way to manage this?
    Taking my C# further

    Hi Saythj,
    When mentioning "a database schema from XML", do you mean the
    XML Schema Collections? If that is what you mean, when trying to import XML files of the same schema type, you may take the below approach.
    Create an XML Schema Collection basing on your complex XML, you can find
    many generating tools online to do that.
    Create a Table with the above created schema typed XML column as below.
    CREATE TABLE youTable( Col1 int, Col2 xml (yourXMLSchemaCollection))
    Load your XML files and try to insert the xml content into the table above from C# or some other approaches. The XMLs that can't pass the validation fail inserting into that table.
    If you have any question, feel free to let me know.
    Eric Zhang
    TechNet Community Support

  • What is the best way to create Aperture book from Pages '09 document?

    What is the best way to create Aperture book from Pages '09 document?

    There is no way to import pages documents to Aperture and convert them to an Aperture book. Aperture books can only be created by manually adding images and text to the pages of a book, and using the layout of the predefined templates.
    The best you could do, would be to print your pages document to pdf and import the resulting pdf file into Aperture as a new project. This will create one image for each page. Then select the page images all at once and  create a new book. Select a theme with fullsize page images, like "picture Book", and then add the images of the pages to the empty pages of the book.
    But probably would you get a much better quality and layout, when you recreate your pages document in Aperture, by starting with an empty book and copying and pasting the text from your Pages document. But don't paste the photos from the document - try to use the originals of those photos.

  • Best way to create SVG file from drawing application?

    I am developing a drawing application that allow the users to draw and edit static two dimensional images such as Rectangles, Ellipses and Text. I have a superclass SVGShape that contains all the common features of a shape such as x1, x2, color etc. I then have SVGRectangle as a subclass of SVGShape.
    I want to know what would be the best way to create an SVG file from this? An idea I have at the minute is to have an abstract method getSVG() in the SVGShape class, and then implement the method in the subclasses. I will then create a new class called SVGManager which iterates through the list of shapes (Btw I'm using MVC, my shapes are stored in a Collection) and uses the getSVG() mehtod in each shape to build up a SVG file.
    What do you think of this? Any better ideas?
    Thanks guys

    I used a visitor for this in a similar project, so that when the svg library is used in a applet or browser and the writing functionality isn't required, it may be omitted from the bundle.
    Pete

  • Best way to create a conact list from the user profile properties

    We have a customer looking for a phone book utility, starting with a table showing main user information and with some search options. We would like o base it on the user profile properties and not to create an indipendent studion record browser porlet.
    What is best way to create a conact list from the user profile properties ?

    I did something like this using search.  It can get messy, so you need to take care with it.
    * Identify the properties you want to make accessible to search (ex: name, etc.)
            - add them to the user property map
            - flag them as searchable
    * I broke down and used the native server API.  I'd still suggest this approach.
    * Write some simple code to do vcard export if you like
    (my code is all in vb.net)
    I really believe this is the "right" approach, but honestly, this was a bit painful and has been
    messy for us given some other business issues.  (to my chagrin we have users with 2-letter last
    names...)
    I have code you're welcome to poke at, but it's more or less slapped together and has various
    different search methods commented out so you can see how I tinkered w/ the remote vs. server
    API.
    If you'd like it mail me at [email protected] and I'll send you a zipped copy w/ a
    readme.  I hope it may be useful to you as both a starting reference.

  • Best way to create an html from application

    I need connect to an Oracle database and generate a static report from the result Query.
    Do you know what can be the best way to create this html file ?
    There is exists some html library to use?
    Thanks in advance

    you don't need a library. html is verry easy to use. you only have to write text to a file with html-tags.
    hope it helps

  • What's the best way to create a panorama from a series of images?

    What's the best way to create a panorama from a series of images?

    This is PhotoMerge result
    This is WLPG
    This is a manual merge
    Before anyone comments on the poor image quality, I know. Its not my photography.
    The beach huts were in an arc which doesn't help.
    You can see that the photomerged image has not 'understood' the image and has bad destortion on the doors of some huts. The blend lines are also visible

  • What is the best way to create a SSRS 2005 Line Chart Report for a 12 month period?

    I'm looking for advice on how to create a SQL Server 2005 query and line chart report for SSRS 2005.
    I need to display the peak number of patients assigned to a medical practice each month for a 12 month period based on the end-user selecting a
    single month and year.
    I've previously created a report that displays all patients assigned to the practice for any single month but I’m looking for advice on how to
    how to produce a resultset that shows the peak number of patients each month for a 12 month period. I thought about creating a query that returns the peak count for each month (based on my previously created report which displays all patients assigned to the
    practice for any single month) and then use a UNION statement to join all 12 months but I'm sure that isn't the most efficient way to do this. The other challenge with this approach (twelve resultsets combined via a UNION) is that the end-user needs to be
    able to select any month and year for the parameter and the report needs to display the 12 month period based on the month selected (the month selected would be the last month of the 12 month period).
    For the report I’ve previously created that displays all patients assigned to the practice for any single month, the WHERE statement filters the
    resultset on two fields:
    Start Date - The date the patient was assigned to the practice. This field is never null or blank.
    End Date - The date the patient left the practice. This field can be null or blank as active patients assigned to the practice do not have an End Date. When the patient
    leaves the practice, the date the patient left is populated in this field.
    Using these two fields I can return all patients assigned to the practice during Nov 2012 by looking for patients that meet the following criteria:
    start date prior to 11/30/2012 (using the last day of the month selected ensures patients added mid-month would be included)
    AND
    end date is null or blank (indicates the patient is active) OR the end date is between 11/1/2012 -11/30/2012 (returns patients that leave during the month
    selected)
    Regarding the query I need to create for the report that displays the peak count each month for 12 months, I'm looking for advice on
    how to count patients for each month the patient is assigned to the practice if the patient has been assigned for several months (which applies to most patients). Examples are:
    John Doe has a start date of 6/01/2012 and an End Date of 10/07/2012
    Sally Doe has a start date of 8/4/2012 and no End Date (the patient is still active)
    Jimmy Doe has a  start of 7/3/2012 and an End Date of 9/2/2012
    Given these examples how would I include John Doe in the peak monthly count each month for May - October, Sally Doe in the peak monthly count for
    August - December and Jimmy Doe in the peak monthly count for July – Sept if the end-user running the report selected December 2012 as the parameter?
    Given the example above and the fact I'm creating a line chart I think the best way to create this report would be a resultset that looks like
    this:
    Patient Name              
    Months Assigned
    John Doe
    June 2012
    John Doe                     
    July012
    John Doe                     
    Aug 2012
    John Doe                     
    Sept 2012
    John Doe
    Oct 2012
    Sally Doe                     
    Aug 2012
    Sally Doe                     
    Sept 2012
    Sally Doe
    Oct 2012
    Sally Doe                     
    Nov 2012
    Sally Doe
    Dec 2012
    Jimmy Doe                  
    July 2012
    Jimmy Doe
    Aug 2012
    Jimmy Doe
    Sept 2012
    From the resultset above I could create another resultset that would count\group on month and year to return the peak count for each month:
    June 2012 - 1
    July 2012 – 2
    Aug 2012 - 3
    Sept 2012 - 3
    Oct 2012 - 2
    Nov 2012 - 1
    Dec 2012 - 1
    The resultset that displays the peak count for each month would be used to create the line chart (month would be the X axis and the count would
    be the y axis).
    Does this sound like the best approach?
    If so, any advice on how to create the resultset that lists each patient and each month they were assigned to the practice would be greatly appreciated.
    I do not have permissions to create SPs or Functions within the database but I can create temp tables.
    I know how to create the peak monthly count query (derived from the query that lists each patient and month assigned) as well as the line chart.
    Any advice or help is greatly appreciated.

    Thanks for the replies. I reviewed them shortly after they were submitted but I'm also working on other projects at the same time (hence the delayed reply).
    Building a time table and doing a cross join to my original resultset gave me the desired resultset of the months assigned between dates. What I can't figure out now is how to filter months I don't want. 
    Doing a cross  join between my original resultset that had two dates:
    08/27/2010
    10/24/2011
    and a calendar table that has 24 rows (each month for a two year period)
    my new resultset looks like this:
    I need to filter the rows in yellow as the months assigned for stage 3 that started on 8/27/2010 should stop when the patient was assigned to stage 4 on 10/24/2011.
    You'll notice that Jan - Sept 2011 isn't listed for Stage 4 assigned on 10/24/2011 as I included a filter in the WHERE clause that states
    the Months Assigned value must be greater than or equal to the date assigned value.
    Any advice would be appreciated.

  • Best way to create slide shows in PE4 and PSE 6

    What's the best way to create a fancy slide show in PE 4 and PSE 6? I need to create a slide show of about 600 pictures. I'm on Windows XP with 3gb RAM. I've done this a few years ago in earlier versions of PE and PSE. Before i plunge into this again i wanted to get some overall guidance for what to do or not do.
    My ultimate goal is to create a slide show that:
    1. uses pan and zoom on every photo
    2. transitions between every photo
    3. has an audio track
    4. has some nice special effects -- words and graphics that appear on slide at precisely the right moment to match the song, and stay on the screen as one slide transitions to another. i want the text to be able to move and fade in and out.
    My view is that it's easy to accomplish #1-3 in PSE 6; it's quite simple to create a slide show, add pan and zoom, and transitions. However, #4 is not doable because adding text and graphics can only be done on a slide at a time and only when the slide start/stops (i.e., you can't have text appear 2 secs after the slide has started displaying and stay on screen while the next slide appears). Need PE 4 to do that.
    What i'm wondering is:
    -- is it best to create the basic slide show in PSE6 and then export to PE 4 to do the final fancy stuff, or is it best to just create the show in PE4? Seems that doing the pans, zooms, and transitions are easiest in PSE 6.

    eric,
    I am going to offer some reasons NOT to start this slide show in Photoshop Elements. This is despite the fact that I have used the workflow of starting in Photoshop Elements and used the Send Slideshow to Premiere Elements in PSE5 - PE 3 and PSE7 - PE7.
    1- Timing differences between the PSE and PE slide show construction and processing
    There are many differences in timing between the two products. Transitions can start/end slightly offset from their timing in PSE once they arrive and are processed in PE. Same for pan and zoom. Does this matter? Well the more precise your timing, the more potential for a show stopper.
    Example: one person who wanted continual motion using pan and zoom needed to go modify the transition positioning and the keyframing of the pan/zooms on every single slide after sending a slideshow from PSE to PRE.
    2- your requirement to
    "words and graphics that appear on slide at precisely the right moment to match the song, and stay on the screen as one slide transitions to another. i want the text to be able to move and fade in and out."
    You can't really sync the audio to a slide in PSE. The text can't move or fade in/out. I think that it will be more grief to retrofit these functions to a slide show that was created in PSE than it will be to do the all the work in Premiere Elements.
    3- "Add the sound track for the ENTIRE slide show (this will be longer than i currently have slides for because i don't have all the photos"
    I am suspicious that adding the ENTIRE sound track in one PSE slide show will not work.
    I have done multiple sends from PSE slide show editor to Premiere Elements. However, I decided on the approach of using no audio in the PSE slideshow editor and adding Audio in Premiere Elements AFTER sending all the slide shows.
    Again, your objective of syncing specific photos to music points is good artistically - but I am concerned that it will make your PSE to PRE workflow problematic.
    4- "as new photos arrive, do the arrangement/pans/zooms in PSE and move them to PE"
    As Steve mentioned when you do subsequent sends of the slideshow, it appends to the end - does not seem to fit your objective of replacing part of the middle.
    Also if you get new photos in for the second section of the slideshow - but over in Premiere Elements you had already made other changes in the second section. There is no function to combine new changes doen in PSE and changes done in PE for that same "section" of the slideshow.
    5- you did not say whether you will be outputting this slide show in Full Screen or Widescreen format. Will you be burning a DVD? If you will be doing widescreen output, additional problems with specifying pan/zoom in PSE have been identified on various forums because the PSE pan/zoom boxes are not widescreen aspect ratio.
    Conclusion:
    Some of my comments here are definitely subjective - however, it is my overall conclusion that your objectives and work plan are not a good fit for the Photoshop Elements slide show editor to Premiere Elements workflow.
    My perspective on the Photoshop Elements slide show editor is that it is designed to simple, quick and easy. Therefore it has limitations.

  • Need help knowing best way to create record

    What is the best way to create a new record... I have a form pulling info from about 20 tables. When the user wants to create a new record, I want a new form to open and allow them to select the values based on the foreign key fields so it makes more sense than just random numbers.
    The problem I'm having is knowing when and how to insert. Should the "new record" form be it's own database block that inserts from within it. (but then when they go back to the original form they must requery to see the new value.) Or what about copying each field back to the original form. I'm new to forms and would appreciate any insight and tips.

    would a wire like this help me?
    I doubt it. You want FireWire.
    Take look at the Canopus ADVC300. It comes with a nice Macintosh application that works flawlessly with iMovie 06.
    http://www.canopus.com/products/ADVC300/index.php
    Yes, it does cost more but it works.

  • WHAT IS THE BEST WAY TO CREATE AN XSD FILE (TO BE USED BY SOAP ADAPTER)

    Dear friends
    I have a simple scenario.
    OUTBOUND DATA  -->  SOAP ADAPTER  --> ( XI )  -->  RFC ADAPTER  --> INBOUND DATA
    The XML file that I got from mapping area of IR (Design) is as follows
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:MT_NAME_SOURCE xmlns:ns0="http://test3.com">
       <FIRSTNAME>DAVE</FIRSTNAME>
       <LASTNAME>SMITH</LASTNAME>
    </ns0:MT_NAME_SOURCE>
    If you notice, there are only 2 fields.
    I need to create an XSD file and import it as an external object, which I can use for SOAP Adapter.
    Which is the best way to create it.
    Also, I need to know if there is any step by step of sending a message from XML SPY. I have downloaded this software, but am not able to undertand how to use this.
    Hope to hear from any experts on this forum.
    Thanks in advance
    Ram

    Hi Ram,
    See the below blog..
    It shows how to send SOAP message using XML Spy.
    It also shows how to generate wsdl.
    /people/siva.maranani/blog/2005/09/03/invoke-webservices-using-sapxi
    Regards,
    Sumit

Maybe you are looking for