Column filtering for the current year measure

Hello

I'm blocked up with the question, we have a report of three tables D1, D2, and F1. Where D1 is of time dimension. We now report D2 and F1 with action, and the report is placed on the dashboard which is having the guest of the year.

F1 is joined with dimension D2 and D1 time as well, the requirement is in the report we measure column say X should always show the values for the current year, while others displayed according to the prompt values... In short, I want to show the column to measure for the current year, even if the user selects the value of prompt for year earlier and it must not change the values.

Please let me know, how to get there.

Thanks in advance

I am able to do this by following steps.

  1. I created a column in the MDB layer with similar to above said Srini case statement.
  2. Then I made the logic level of the time dimension column at ALL. So obiee ignores / filter join with the dimension of time to this measure, and the measure will always displays the data from the current year according to the case statement.
  3. If I did not this measure to all levels at the logical level, it's not working to the dashboard, when we change the year with the previous year it shows null values or zero according to the instruction box.

Thank you.

Tags: Business Intelligence

Similar Questions

  • Script for updating a field for the current year

    Is it possible to have an update of field at the end of the current year? Example 20-(dashes to change it for any year). I think that it is not possible, but if anyone knows how this is possible I'd really appreciate help. Thank you

    Sorry, I guess I need to change throughout the year, not only at the end.  Thank you

    I tried a few scripts that I found here, such as; year (dateAdd ("yyyy", 1, now()))) with no luck. I confess that I don't know about scripts and can be a bad thing. The script goes on the Action tab as a javascript or somewhere else (validation?) Any advice or assistance would be appreciated. I use Acrobt Pro version 9.

    Going by your post you wanted the year is displayed in a text field, I gave the code to go into the script will count for this field. If you want to use it somewhere else (e.g. a mouseup), then use the variable 'year' in this script. In a calculation script, any value you assign to "event.value" is what will show on the field during the calculation.

  • Display of the remaining hours of holidays for the current year

    I want to show other vacation hours that are reserved for employees to take for the rest of the current year, how is the error code that is in bold below?


    SELECT
    * EXC_DATE, EXC_PERSON, EXC_HOURS, EXC_COMMENT, SHP_SHIFT, SHP_PERSON, *.


    * CASE *.
    * WHAT SHP_SHIFT IN ('A', 'B', 'C', 'LUBRICANT') THEN (10-(EXC_HOURS)) *.
    * WHAT SHP_SHIFT IN (', 'E', 'F', 'G') THEN (12-(EXC_HOURS)) *.
    * ELSE *.
    * (8 (EXC_HOURS)) *.
    * TIMERESERVED END *.

    Of
    * R5EXCEPTIONS LEFT OUTER JOIN R5SHFPERS ON EXC_PERSON = SHP_PERSON *.

    WHERE
    * (EXC_COMMENT = 'holiday' or EXC_COMMENT = 'Holiday' or EXC_COMMENT = 'HOLIDAY') AND *.
    * EXC_DATE BETWEEN SYSDATE AND TRUNC (SYSDATE + 366, 'YEAR') AND *.
    * EXC_PERSON = #prompt ('Parameter1') #*.

    Published by: Joel Rubinoff on December 10, 2008 11:03

    Why not tell us?

    What your query does not work?

  • Facing the question in calc script while trip data for the current year to the previous year

    Hi all

    Need your serious help in my calc script.

    I am writing a calc script to transfer data from order book of FY15 Q1 to Q4 FY14 here is the problem in my script. If spin this script to copy the same year, it works fine but when trying to load between two different years, it does not work. could someone help me please. where miss me the logic. Thanks for the help in advance.

    Here's the script:

    ESS_LOCALE English_UnitedStates.Latin1@Binary

    SET AGGMISSG

    DIFFICULTY (@List ("real GL", "Real ML", "ACT", & ActualLoadYrBklg))

    () "Dec / (Inc.) in suffering.

    IF (@Ismbr ("Q4"))

    "Dec / (Inc.) in suffering (Non - di) =.

    -1 * (("Q1"-> "starting Backlog",-1,@Relative("Years",0)) @Prior - ' count backward (Non - di) ");

    "DENTE change overdue =.

    -1 * (@Prior ("Q1"-> "Cost",-1, @Relative("Years",0))-"Cost of rear" rear);

    Else if (@IsMbr ("Q1": "Q3"))

    "Dec / (Inc) order book ' =-1 * (@Prior ('Rear start',-1, @Relative("YearTotal",0))-" starting back (Non - di) "");

    'Change of GEAR wheels in suffering' =-1 * (@Prior ("backward Cost",-1,@Relative("YearTotal",0)) - "money back");

    endif ;)

    endfix

    SM.

    My first question is what is the order of members in your dimension years and quarter the level low your dimension of periods? Secondly, what dimensions are rare and dense (can you tell me which members in the calc are in dense and sparse dimensions)

    Third, you cite the specific years FY15 and FY14, I suppose that & ActYearBklg is FY15 assuming this is correct, I would add a substitution variable for & PriorYrBklg with FY14 inside (if I'm back, and then modify the variables) for clarity, I'm going to hardcode the values in the Calc. It also assumes years is sparse

    You can try this

    FIX ("GL 'real 'real ML", "ACT", "FY15") / * you need not @list * /.

    () "Dec / (Inc.) in suffering.

    IF (@Ismbr ("Q4"))

    "Dec / (Inc.) in suffering (Non - di)"-> "FY14 =.

    -1 * ("Q1'-> 'backlog begins' - 'Start rear (Non - di)'->"FY14");

    "DENTE change orders"-> "FY14 =.

    -1 * ("Q1"-> "Of back - cost"Back cost"-> FY14");

    Else if (@IsMbr ("Q1": "Q3"))

    ("Dec / (Inc) order book"-> "FY14' =-1 * beginning backlog->"FY14'-'Begins the backlog (Non - di)');

    'Change of CMV in the order book "->" FY14' =-1 * ('Back cost'-'Back cost'-> "FY14");

    endif ;)

    endfix

    The years may be replaced by the subvars

  • Sales of the previous year with the guest of the current year

    Hello

    I have the year and sales in the criteria and my year is receiving messages. When I select the current year, my report must return data for the current year and previous year and if I select the previous year in the command prompt report should indicate the previous year and before yr previous data.  Could you help us meet this goal.

    Thanks for your help. I was able to do with the variable of presentation... My intention was not to change anything in the RPD. My time dimension is something not clear.

    I just used below the formula to this YEAR being my PV.

    FILTER ("Operation". "Unit price" USING ((cast ("Temps de la Transaction".))) " ((Year of operation"AS INTEGER)) = @{YEAR} {2014}))

    FILTER ("Operation". "Unit price" USING ((cast ("Temps de la Transaction".))) " ((Year of operation"AS INTEGER)) = @{YEAR} - 1))

  • Is there a tag to display the current year? For example, the exercise of copyright?

    Is there a tag to display the current year? For example, the exercise of copyright? I want to put this in the site map (I guess) so it is displayed on the footer of each page.

    With the addition of liquid you can easily do this using:

    {{globals.site.dateNow | date: "yyyy"}}

    Please review the documentation to learn more about what you can achieve with liquid:

    Introduction to liquid

    Liquid | Reference

  • OBIEE 10 g THAT LY YTD returns for a YEAR for the last years

    Hello

    I have recent data of 2009,2010,2011. When I use LY YTD it returns the complete data of the CDA instead of year last to this day.
    For EX:

    A report contains: location, YearToDate, LastYearYearToDate
    CDA: from 1 January 2012 to 31 July 2012
    LYYTD: Since January 1, 2011 to July 31, 2011
    For the latest data LYYTD: Jan 01, 2010 to July 31, 2010, it returns the data for the entire year instead of until July 13, 2010.
    Is there a formula I can apply on the column to return only the data up to the date of today for the last years?

    For 2011, I applied the formula of the FILTER (measure. ("" SALES "with the HELP of cAST (Time.Month # as int) < = MONTH (CURRENT_DATE)) and it works only for 2011 and not for the years 2010, 2009.

    Please advice

    user8337346 wrote:
    Report consists of 4 columns:
    Location, year, LY Sales, Sales YTD LY
    NJ 2009
    2010
    2011
    2012
    Sales of LY I get it correctly, but not for YTD LY.

    On Sales YTD LY I apply the filter columns
    FILTER ("Facts". "LY YTD Sales' with the HELP of cast (Time." Months "as int)<= month(current_date)="">

    By doing this, I am not able to get accurate figures for the years 2009, 2010 and 2011.
    Please notify

    Published by: user8337346 on July 16, 2012 11:09

    You did not make what I said! Repeat your mistake won't make it work. Read what I said above still.

  • by default the current year in view

    Hello
    I have a req in a view column whichone should I set a default value according to the current year
    for example current is 2010, so for this year, it should show 2011 and next year when to recover, it will be 2012 so now

    and this column will be part of the means to see every time that the view will be called this column should define default current year how to write sql for this with respect to display
    and it should be in sync with the other column of the view

    Dear Sir

    View name is not in the view script you sent...

    Script below can be useful for you...

    create or replace view  ( emp_id,Emp_name,year) as select emp_id,emp_name, to_char(sysdate, 'yyyy') + 1 year from employee 
    

    Kind regards
    Dodo...

  • use Image catalog script for the current document

    Is it possible to use the script to image catalogue for the current document in which we work instead of leaving the mark of script a new document fees for placed images?

    use,

    //ImageCatalog.jsx
    //An InDesign CS6 JavaScript
    /*
    @@@BUILDINFO@@@ "ImageCatalog.jsx" 3.0.0 15 December 2009
    */
    //Creates an image catalog from the graphic files in a selected folder.
    //Each file can be labeled with the file name, and the labels are placed on
    //a separate layer and formatted using a paragraph style ("label") you can
    //modify to change the appearance of the labels.
    //
    //For more information on InDesign scripting, go to http://www.adobe.com/products/indesign/scripting/index.html
    //Or visit the InDesign Scripting User to User forum at http://www.adobeforums.com .
    //
    //The myExtensions array contains the extensions of the graphic file types you want
    //to include in the catalog. You can remove extensions from or add extensions to this list.
    //myExtensions is a global. Mac OS users should also look at the file types in the myFileFilter function.
    main();
    function main(){
      var myFilteredFiles;
      //Make certain that user interaction (display of dialogs, etc.) is turned on.
      app.scriptPreferences.userInteractionLevel = UserInteractionLevels.interactWithAll;
      myExtensions = [".jpg", ".jpeg", ".eps", ".ps", ".pdf", ".tif", ".tiff", ".gif", ".psd", ".ai"]
      //Display the folder browser.
      var myFolder = Folder.selectDialog("Select the folder containing the images", "");
      //Get the path to the folder containing the files you want to place.
      if(myFolder != null){
      if(File.fs == "Macintosh"){
      myFilteredFiles = myMacOSFileFilter(myFolder);
      }
      else{
      myFilteredFiles = myWinOSFileFilter(myFolder);
      }
      if(myFilteredFiles.length != 0){
      myDisplayDialog(myFilteredFiles, myFolder);
      alert("Done!");
      }
      }
    }
    //Windows version of the file filter.
    function myWinOSFileFilter(myFolder){
      var myFiles = new Array;
      var myFilteredFiles = new Array;
      for(myExtensionCounter = 0; myExtensionCounter < myExtensions.length; myExtensionCounter++){
      myExtension = myExtensions[myExtensionCounter];
            myFiles = myFolder.getFiles("*"+ myExtension);
      if(myFiles.length != 0){
      for(var myFileCounter = 0; myFileCounter < myFiles.length; myFileCounter++){
      myFilteredFiles.push(myFiles[myFileCounter]);
      }
      }
      }
      return myFilteredFiles;
    }
    function myMacOSFileFilter(myFolder){
      var myFilteredFiles = myFolder.getFiles(myFileFilter);
      return myFilteredFiles;
    }
    //Mac OS version of file filter
    //Have to provide a separate version because not all Mac OS users use file extensions
    //and/or file extensions are sometimes hidden by the Finder.
    function myFileFilter(myFile){
      var myFileType = myFile.type;
      switch (myFileType){
      case "JPEG":
      case "EPSF":
      case "PICT":
      case "TIFF":
      case "8BPS":
      case "GIFf":
      case "PDF ":
      return true;
      break;
      default:
      for(var myCounter = 0; myCounter-1){
      return true;
      break;
      }
      }
      }
      return false;
    }
    function myDisplayDialog(myFiles, myFolder){
      var myLabelWidth = 112;
      var myStyleNames = myGetParagraphStyleNames(app);
      var myLayerNames = ["Layer 1", "Labels"];
      var myDialog = app.dialogs.add({name:"Image Catalog"});
      with(myDialog.dialogColumns.add()){
      with(dialogRows.add()){
      staticTexts.add({staticLabel:"Information:"});
      }
      with(borderPanels.add()){
      with(dialogColumns.add()){
      with(dialogRows.add()){
      staticTexts.add({staticLabel:"Source Folder:", minWidth:myLabelWidth});
      staticTexts.add({staticLabel:myFolder.path + "/" + myFolder.name});
      }
      with(dialogRows.add()){
      staticTexts.add({staticLabel:"Number of Images:", minWidth:myLabelWidth});
      staticTexts.add({staticLabel:myFiles.length + ""});
      }
      }
      }
      with(dialogRows.add()){
      staticTexts.add({staticLabel:"Options:"});
      }
      with(borderPanels.add()){
      with(dialogColumns.add()){
      with(dialogRows.add()){
      staticTexts.add({staticLabel:"Number of Rows:", minWidth:myLabelWidth});
      var myNumberOfRowsField = integerEditboxes.add({editValue:3});
      }
      with(dialogRows.add()){
      staticTexts.add({staticLabel:"Number of Columns:", minWidth:myLabelWidth});
      var myNumberOfColumnsField = integerEditboxes.add({editValue:3});
      }
      with(dialogRows.add()){
      staticTexts.add({staticLabel:"Horizontal Offset:", minWidth:myLabelWidth});
      var myHorizontalOffsetField = measurementEditboxes.add({editValue:12, editUnits:MeasurementUnits.points});
      }
      with(dialogRows.add()){
      staticTexts.add({staticLabel:"Vertical Offset:", minWidth:myLabelWidth});
      var myVerticalOffsetField = measurementEditboxes.add({editValue:24, editUnits:MeasurementUnits.points});
      }
      with (dialogRows.add()){
      with(dialogColumns.add()){
      staticTexts.add({staticLabel:"Fitting:", minWidth:myLabelWidth});
      }
      with(dialogColumns.add()){
      var myFitProportionalCheckbox = checkboxControls.add({staticLabel:"Proportional", checkedState:true});
      var myFitCenterContentCheckbox = checkboxControls.add({staticLabel:"Center Content", checkedState:true});
      var myFitFrameToContentCheckbox = checkboxControls.add({staticLabel:"Frame to Content", checkedState:true});
      }
      }
      with(dialogRows.add()){
      var myRemoveEmptyFramesCheckbox = checkboxControls.add({staticLabel:"Remove Empty Frames:", checkedState:true});
      }
      }
      }
      with(dialogRows.add()){
      staticTexts.add({staticLabel:""});
      }
      var myLabelsGroup = enablingGroups.add({staticLabel:"Labels", checkedState:true});
      with (myLabelsGroup){
      with(dialogColumns.add()){
      //Label type
      with(dialogRows.add()){
      with(dialogColumns.add()){
      staticTexts.add({staticLabel:"Label Type:", minWidth:myLabelWidth});
      }
      with(dialogColumns.add()){
      var myLabelTypeDropdown = dropdowns.add({stringList:["File name", "File path", "XMP description", "XMP author"], selectedIndex:0});
      }
      }
      //Text frame height
      with(dialogRows.add()){
      with(dialogColumns.add()){
      staticTexts.add({staticLabel:"Label Height:", minWidth:myLabelWidth});
      }
      with(dialogColumns.add()){
      var myLabelHeightField = measurementEditboxes.add({editValue:24, editUnits:MeasurementUnits.points});
      }
      }
      //Text frame offset
      with(dialogRows.add()){
      with(dialogColumns.add()){
      staticTexts.add({staticLabel:"Label Offset:", minWidth:myLabelWidth});
      }
      with(dialogColumns.add()){
      var myLabelOffsetField = measurementEditboxes.add({editValue:0, editUnits:MeasurementUnits.points});
      }
      }
      //Style to apply
      with(dialogRows.add()){
      with(dialogColumns.add()){
      staticTexts.add({staticLabel:"Label Style:", minWidth:myLabelWidth});
      }
      with(dialogColumns.add()){
      var myLabelStyleDropdown = dropdowns.add({stringList:myStyleNames, selectedIndex:0});
      }
      }
      //Layer
      with(dialogRows.add()){
      with(dialogColumns.add()){
      staticTexts.add({staticLabel:"Layer:", minWidth:myLabelWidth});
      }
      with(dialogColumns.add()){
      var myLayerDropdown = dropdowns.add({stringList:myLayerNames, selectedIndex:0});
      }
      }
      }
      }
            var myResult = myDialog.show();
            if(myResult == true){
      var myNumberOfRows = myNumberOfRowsField.editValue;
      var myNumberOfColumns = myNumberOfColumnsField.editValue;
      var myRemoveEmptyFrames = myRemoveEmptyFramesCheckbox.checkedState;
      var myFitProportional = myFitProportionalCheckbox.checkedState;
      var myFitCenterContent = myFitCenterContentCheckbox.checkedState;
      var myFitFrameToContent = myFitFrameToContentCheckbox.checkedState;
      var myHorizontalOffset = myHorizontalOffsetField.editValue;
      var myVerticalOffset = myVerticalOffsetField.editValue;
      var myMakeLabels = myLabelsGroup.checkedState;
      var myLabelType = myLabelTypeDropdown.selectedIndex;
      var myLabelHeight = myLabelHeightField.editValue;
      var myLabelOffset = myLabelOffsetField.editValue;
      var myLabelStyle = myStyleNames[myLabelStyleDropdown.selectedIndex];
      var myLayerName = myLayerNames[myLayerDropdown.selectedIndex];
      myDialog.destroy();
      myMakeImageCatalog(myFiles, myNumberOfRows, myNumberOfColumns, myRemoveEmptyFrames, myFitProportional, myFitCenterContent, myFitFrameToContent, myHorizontalOffset, myVerticalOffset, myMakeLabels, myLabelType, myLabelHeight, myLabelOffset, myLabelStyle,  myLayerName);
            }
      else{
      myDialog.destroy();
      }
      }
    }
    function myGetParagraphStyleNames(myDocument){
      var myStyleNames = new Array;
      var myAddLabelStyle = true;
      for(var myCounter = 0; myCounter < myDocument.paragraphStyles.length; myCounter++){
      myStyleNames.push(myDocument.paragraphStyles.item(myCounter).name);
      if (myDocument.paragraphStyles.item(myCounter).name == "Labels"){
      myAddLabelStyle = false;
      }
      }
      if(myAddLabelStyle == true){
      myStyleNames.push("Labels");
      }
      return myStyleNames;
    }
    function myMakeImageCatalog(myFiles, myNumberOfRows, myNumberOfColumns, myRemoveEmptyFrames, myFitProportional, myFitCenterContent, myFitFrameToContent, myHorizontalOffset, myVerticalOffset, myMakeLabels, myLabelType, myLabelHeight, myLabelOffset, myLabelStyle,  myLayerName){
      var myPage, myFile, myCounter, myX1, myY1, myX2, myY2, myRectangle, myLabelStyle, myLabelLayer;
      var myParagraphStyle, myError;
      var myFramesPerPage = myNumberOfRows * myNumberOfColumns;
      var myDocument = app.activeDocument;
      myDocument.viewPreferences.horizontalMeasurementUnits = MeasurementUnits.points;
      myDocument.viewPreferences.verticalMeasurementUnits = MeasurementUnits.points;
      var myDocumentPreferences = myDocument.documentPreferences;
      var myNumberOfFrames = myFiles.length;
      var myNumberOfPages = Math.round(myNumberOfFrames / myFramesPerPage);
      if ((myNumberOfPages * myFramesPerPage) < myNumberOfFrames){
      myNumberOfPages++;
      }
      //If myMakeLabels is true, then add the label style and layer if they do not already exist.
      if(myMakeLabels == true){
      try{
      myLabelLayer = myDocument.layers.item(myLayerName);
      //if the layer does not exist, trying to get the layer name will cause an error.
      myLabelLayer.name;
      }
      catch (myError){
      myLabelLayer = myDocument.layers.add({name:myLayerName});
      }
      //If the paragraph style does not exist, create it.
      try{
      myParagraphStyle = myDocument.paragraphStyles.item(myLabelStyle);
      myParagraphStyle.name;
      }
      catch(myError){
      myDocument.paragraphStyles.add({name:myLabelStyle});
      }
      }
      myDocumentPreferences.pagesPerDocument = myNumberOfPages;
      myDocumentPreferences.facingPages = false;
      var myPage = myDocument.pages.item(0);
      var myMarginPreferences = myPage.marginPreferences;
      var myLeftMargin = myMarginPreferences.left;
      var myTopMargin = myMarginPreferences.top;
      var myRightMargin = myMarginPreferences.right;
      var myBottomMargin = myMarginPreferences.bottom;
      var myLiveWidth = (myDocumentPreferences.pageWidth - (myLeftMargin + myRightMargin)) + myHorizontalOffset
      var myLiveHeight = myDocumentPreferences.pageHeight - (myTopMargin + myBottomMargin)
      var myColumnWidth = myLiveWidth / myNumberOfColumns
      var myFrameWidth = myColumnWidth - myHorizontalOffset
      var myRowHeight = (myLiveHeight / myNumberOfRows)
      var myFrameHeight = myRowHeight - myVerticalOffset
      var myPages = myDocument.pages;
      // Construct the frames in reverse order. Don't laugh--this will
      // save us time later (when we place the graphics).
      for (myCounter = myDocument.pages.length-1; myCounter >= 0; myCounter--){
      myPage = myPages.item(myCounter);
      for (var myRowCounter = myNumberOfRows; myRowCounter >= 1; myRowCounter--){
      myY1 = myTopMargin + (myRowHeight * (myRowCounter-1));
      myY2 = myY1 + myFrameHeight;
      for (var myColumnCounter = myNumberOfColumns; myColumnCounter >= 1; myColumnCounter--){
      myX1 = myLeftMargin + (myColumnWidth * (myColumnCounter-1));
      myX2 = myX1 + myFrameWidth;
      myRectangle = myPage.rectangles.add(myDocument.layers.item(-1), undefined, undefined, {geometricBounds:[myY1, myX1, myY2, myX2], strokeWeight:0, strokeColor:myDocument.swatches.item("None")});
      }
      }
      }
      // Because we constructed the frames in reverse order, rectangle 1
      // is the first rectangle on page 1, so we can simply iterate through
      // the rectangles, placing a file in each one in turn. myFiles = myFolder.Files;
      for (myCounter = 0; myCounter < myNumberOfFrames; myCounter++){
      myFile = myFiles[myCounter];
      myRectangle = myDocument.rectangles.item(myCounter);
      myRectangle.place(File(myFile));
      myRectangle.label = myFile.fsName.toString();
      //Apply fitting options as specified.
      if(myFitProportional){
      myRectangle.fit(FitOptions.proportionally);
      }
      if(myFitCenterContent){
      myRectangle.fit(FitOptions.centerContent);
      }
      if(myFitFrameToContent){
      myRectangle.fit(FitOptions.frameToContent);
      }
      //Add the label, if necessary.
      if(myMakeLabels == true){
      myAddLabel(myRectangle, myLabelType, myLabelHeight, myLabelOffset, myLabelStyle, myLayerName);
      }
      }
      if (myRemoveEmptyFrames == 1){
      for (var myCounter = myDocument.rectangles.length-1; myCounter >= 0;myCounter--){
      if (myDocument.rectangles.item(myCounter).contentType == ContentType.unassigned){
      myDocument.rectangles.item(myCounter).remove();
      }
      else{
      //As soon as you encounter a rectangle with content, exit the loop.
      break;
      }
      }
      }
    }
    //Function that adds the label.
    function myAddLabel(myFrame, myLabelType, myLabelHeight, myLabelOffset, myLabelStyleName, myLayerName){
      var myDocument = app.documents.item(0);
      var myLabel;
      var myLabelStyle = myDocument.paragraphStyles.item(myLabelStyleName);
      var myLabelLayer = myDocument.layers.item(myLayerName);
      var myLink =myFrame.graphics.item(0).itemLink;
      //Label type defines the text that goes in the label.
      switch(myLabelType){
      //File name
      case 0:
      myLabel = myLink.name;
      break;
      //File path
      case 1:
      myLabel = myLink.filePath;
      break;
      //XMP description
      case 2:
      try{
      myLabel = myLink.linkXmp.description;
      if(myLabel.replace(/^\s*$/gi, "")==""){
      throw myError;
      }
      }
      catch(myError){
      myLabel = "No description available.";
      }
      break;
      //XMP author
      case 3:
      try{
      myLabel = myLink.linkXmp.author
      if(myLabel.replace(/^\s*$/gi, "")==""){
      throw myError;
      }
      }
      catch(myError){
      myLabel = "No author available.";
      }
      break;
      }
      var myX1 = myFrame.geometricBounds[1];
      var myY1 = myFrame.geometricBounds[2] + myLabelOffset;
      var myX2 = myFrame.geometricBounds[3];
      var myY2 = myY1 + myLabelHeight;
      var myTextFrame = myFrame.parent.textFrames.add(myLabelLayer, undefined, undefined,{geometricBounds:[myY1, myX1, myY2, myX2], contents:myLabel});
      myTextFrame.textFramePreferences.firstBaselineOffset = FirstBaseline.leadingOffset;
      myTextFrame.parentStory.texts.item(0).appliedParagraphStyle = myLabelStyle;
    }
    
  • Calculate days a year in the current year/CDA days in the previous year and store in Variables to repository

    Hello peers - how can we calculate CDA days in the current year, CDA days in the previous year using SQL Timestampadd/Timestampdiff works and store them as variables to repository? Appreciate any inputs.

    Thank you.

    Regarding the answer to your other question (How to use the functions Timestampadd/Timestampdiff in the repository Variables) you don't need to use timestampadd / timestampdiff for a block init but real SQL, to verify the features in charge of your database.

    PS: Days CDA? If you just want to know the day number based on the year?

  • How to compare a Date with the current year data and member of period on FIX

    Hi experts,

    I have a Sun project that each Member is a project (P01, P02,...)
    and account IMGs who stores the information of each project (name, Start date, finished...)
    Finished Date member is of data type Date

    So how can write an IF condition below in order to be able to compare the end Date of the project with the members of the current year and period on FIX
    DIFFICULTY (@Descendants (Projects), Descendants (year-round), Descendants ("year Total")...)
    IF (@CURRMBR (Period)-> @CURRMBR (Year) < Project > - FinishedDate)
    Do something...
    On the other
    Do something


    Please help me on this. Sorry for my bad grammar. Please ask if there is something not clear

    Thank you very much
    Van Huy.

    Published by: Van Huy on 29 January 2013 01:14

    Published by: Van Huy on 29 January 2013 02:24

    Published by: Van Huy on 29 January 2013 02:25

    Published by: Van Huy on 29 January 2013 18:04

    Here's what I did. Post for which may later cover

    VAR FM; / * End of month of the project.
    VAR EXERCISE; / * Year of the project terminated * /.
    VAR CM; / * Capture the current month on FIX declarations * /.
    VAR CY; / * Capture current year on FIX declarations * /.

    DIFFICULTY (@RELATIVE ('year', 0), @RELATIVE ('period', 0), @IDescendants ("core projects")...)

    FY = @ROUND ('TGHT'-> ' NA contract "-> 'FY06'-> ' NA period" / 10000, 0);
    FM = @MOD (@ROUND ('TGHT'-> ' NA contract "-> 'FY06'-> ' NA period" / 100, 0), 100);
    / * For FY13 back 13... */
    CY = @JgetDoubleFromString (@CONCATENATE ('20', @SUBSTRING (@NAME (@CURRMBRRANGE (year, Lev, 0, 0, 0)), 2)));
    / * Value CM set based on perceived period on the DIFFICULTY of statement * /.
    IF (@ISMBR ("Jan"))
    CM = 1;
    ELSE IF (@ISMBR ("February"))
    CM = 2;
    .....
    ELSE IF (@ISMBR ("Dec"))
    CM = 12;
    ENDIF

    IF (CY< fy="" or="" (="" cy="=" fy="" and="" cm=""><>
    Do something...
    ON THE OTHER
    Do something...
    ENDIF
    ENDFIX

    Published by: Van Huy on 19 February 2013 23:10

    Published by: Van Huy on February 20, 2013 19:46

  • Retrieve the current year in the list of members

    Hi all

    Is there any function in the member lists to retrieve the current year? Example:

    = Month() Returns current month

    Thanks a lot for your help.

    Benoit

    I do not recommend the use of this code...

    Prior_Month_Date = Now() - 28
    

    IF you want to determine the previous month, use the DateAdd command...

    Prior_Month_Date = DateAdd("m", -1, Date())
    

    Charles

  • Copy of retained earnings in the current year to the future year

    Hi all

    I want every month of year (2013) the future of a group of entities to the exemplary gains kept of current (December 2012).

    My dimension structure is

    Retained_Earnings_Total
    -1000_Retained_Earnings
    -1100_Retained_Earnings_Acquired
    -Retained_Earnings_Current_Activity

    I want the value of 2012-> Dec-> Retained_Earnings_Total to copy to 2013-> 1000_Retained_Earnings (for each month). The code I used is


    DIFFICULTY ('Jan': 'Dec', @LevMbrs("Product",0), @LevMbrs("Location",0), @LevMbrs("Cost Center",0), @LevMbrs ('Channel', 0))

    FIX (& FutureYr, @Relative("Desired_Entity_List",0))

    Fix ("1000_Retained_Earnings")

    'Local' = FcstBS-> & CurrYr-> 'Dec'-> 'Retained_Earnings_Total'-> 'Local ';
    & RateCurrFcst = RateCurrFcst-> & CurrYr-> 'Dec'-> 'Retained_Earnings_Total',-> & FcstBS;
    ENDFIX

    ENDFIX

    ENDFIX

    Sub Variables: & FcstBS = Balancesheet7 + 5 & RateCurrFcst = USDForecast7 + 5Rates & CurrYr = 2012 & 2013 = FutureYr.

    Data for the FutureYr are not getting copied from Dec, current year. Can someone help me please?

    Using Essbase v11.1.1.3.

    Thank you

    Published by: Ministry of Foreign Affairs on August 19, 2012 19:41

    Published by: Ministry of Foreign Affairs on August 19, 2012 21:10

    Hello

    This seems a problem of creation of block as indicated by Ringo.

    I would use DATACOPY to copy the data from the current year-> dec to the future-> jan/begbalance. And then I copy data from jan/begbalance for the remaining months of the coming year.

    Something as follows (assuming the dimension that contains the members Retained_Earnings_Total as spare and as dense period);

    DATACOPY & CurrYr-> 'Dec'-> 'Retained_Earnings_Total' to & FutureYr-> "Jan"-> "1000_Retained_Earnings";

    And then copy data from January of the coming year in the last months of the coming year.

    DIFFICULTY (Feb:Dec and any combination of the years to come)
    "Local" = "Local"-> "Jan";
    & RateCurrFcst = & RateCurrFcst-> Jan;
    ENDFIX

    That you'd be using DATACOPY, block would be created when it is required for fastest way.

    Ministry of Foreign Affairs wrote:
    Lol data may not have filled in the destination. I tried to use CREATENONMISSINGBLK the ON VALUE, the script took a little longer but the filling of another value.

    I think that for creation of block, in this scenario, using the VALUE CREATENONMISSINGBLK ON you will be asked to create a member of spare member block. (However, this creation of block might take longer than datacopy)

    I hope this helps.

    Concerning
    -SM

  • Display of the current year in a dynamic text field

    I have a project where I have to click a button and and the current year to display in the form YYYY in a dynamic text field.  My current code was written as:

    var myDate:Date = new Date();

    function whatYear(e:MouseEvent):void {}
    display_txt. Text = myDate.getFullYear ();
    }

    date_btn.addEventListener (MouseEvent.CLICK, whatYear);

    I get an Error 1067: Implicit coercion of a value of number type to a type unrelated to String.

    I also have to create one for the current date.

    Any sugessetions? I have tried everything I can thing of, but I'm new to AS3.

    Thank you!

    Try:

    display_txt. Text = myDate.getFullYear (m:System.NET.SocketAddress.ToString ());

    or

    display_txt. Text = String (myDate.getFullYear ());

    or

    display_txt. Text = "" + myDate.getFullYear ();

  • How complete the current year one year Net income in profits not distributed

    We had details in a Dimension of 4 Custom in our new application of IFRS. We call this type of data. Basically we use for detailing the different types of adjustments for IFRS. The problem is the total P & L are copied into the retained earnings for the 4 total of Custom Dimension but not for the descendants of 4 personalized with the exception of [none] members.

    This is the rule:

    "Goal: complete the current year one year Net income in retained earnings"
    KSM erase 'a #L3310 '.
    "KSM Exp ' an L3310 #" & NUNS & "= W #YTD. A LA8999 # "& TOPS"

    What would be the best practice?

    Amendment to the rule on the right side and specified Custom 4 descendants? In this way the Net income will be copied to all members of dimension 4 Custom

    What would happen in the future when we will integrate the business unit in detail in our personal 2? Wouldn't be good practice to change the right side of the rule and put personal descendants 2?

    According to what I saw during the copy of profit form P & L retained we copy only the best members. If bifercation is necessary, then break us into the P & L not profits not distributed.

    I would also advice allows you to copy the top member PKI (place it to the right) ICP None(place it on the left) so what are not disadvantaged as the accounts of PKI, if not retained earnings could not show correct result. This happens for autonomous entities. Since P & L has no intersection of PKI. That the data will not get copied into retained earnings.

    Hope this is useful

    Also, if you find useful or correct answer kindly mark.

    Varun

Maybe you are looking for

  • HP P6540f - BIOS doesn't support AHCI for newly installed SSD with OS Win 7

    I cloned the drive hard 1 TB of origin provided with OS win 7 x 64 in a blusher SSD Samsung 500 b Bank and replaced the HDD with SSD.  The BIOS does not accept the AHCI mode for this drive and it only accepts the RAID.  Only SATA1 is acrive on this S

  • No mono sound in the Viewer

    Sometimes I video clips with a mono track included. So, when I play the Clip in the Viewer window, I can´t hear. Just the meter shows me, that there must be a little sound. So I changed my audio output to the local speaker in my mac pro. This works.

  • Satellite Pro L350 SSD upgrade does not work

    Hi all I'm trying to upgrade a Satellite pro L350 with ssd, currently I try with an ssd samsung 830. I've already updated the bios to version 2.2, but it doesn't work. Can someone help me? Concerning Mike

  • fpga data transfer

    Hello How transfer two values, an FxP and a single value of the timer, the fpga for the RT host simultaneously so I don't know what timer value is what FxP value on the host of the RT. With DMA FIFO, it is not possible to select "custom control" data

  • Windows Microsoft XP saved itself?

    Okay, so I tried to speed up one of my computers without spending more money (he was missing the RAM to make it even a little fast and DDR1 is cheap these days) so what I did take the former stop of the computer hard drives and put them in another ca