With overall percentages at end Pivot_data

I thought I had done this (with the help of Frank), but I have a final request from my users.

For my percentages, I used this SQL:

with pivot_data as (select "Observer_LastName", "score",)

round (100 * RATIO_TO_REPORT (COUNT (*)))

OVER (PARTITION OF 'Observer_LastName')) AS pct

FROM MyTable

where "score" IN ('0 ', ' 1',' 1.5 ', 2', 3')

Group "Observer_LastName", "score")

SELECT *.

of pivot_data

PIVOT (MIN (pct)

TO 'score' IN ('0 ', ' 1',' 1.5 ', 2', 3')

)

Output is correct:

Observer_LastName 0 1 1.5 2 3

--------------------------------- ---    ---     ---     ---     ---

Shaon                               33              33     33

17 25 0 30 32 Spillman

They want to now a 'total' at the end of the report, which is the average of each column (0,1,1.5,2,3) General

Observer_LastName 0 1 1.5 2 3

--------------------------------- ---    ---     ---     ---     ---

Shaon                               33              33     33

17 25 0 30 32 Spillman

Total 17 28 0 32 33

I tried to add a UNION to produce, but I can't do this properly. Can anyone help/suggest? TX

Hello

So you want totals for each "Observer_LastName" separately, as well as all of the "Observer_LastName" together. This looks like a job for the REPORT GROUP.

As you post CREDATE TABLE and INSERT statements for your table, I'll use scott.emp to illustrate:

WITH pivot_data AS

(

SOME jobs, deptno

TOWER (100

* RATIO_TO_REPORT (COUNT (*))

COURSES (WORK PARTITION)

) AS pct

FROM scott.emp

WHERE deptno IN (10, 20, 30)

GROUP OF ROLLUP (employment), deptno

)

SELECT *.

of pivot_data

PIVOT (MIN (pct)

TO deptno IN (10, 20, 30)

)

ORDER BY job

;

Output:

10-20-30 JOBS

--------- ---------- ---------- ----------

100 ANALYST

25 50 25 CLERK

MANAGER 33 33 33

PRESIDENT 100

SELLER OF 100

21 36 43

Tags: Database

Similar Questions

  • Manager tasks shows my CPU 100% usage but when I go to the process tab only a handful of programs with a percentage higher than 0 if displayed and none of those who are more than 3%

    Original title: Task Manager

    Manager tasks shows my CPU 100% usage but when I go to the processes tab and sort by CPU usage there are only a handful of programs with a percentage higher than 0 if displayed and none of those who are more than 3%.  What else is using my system resources that is not displayed by the Task Manager?

    Click Show processes from all users . There may be other systemic processes and processes that run under other accounts.

    Ramesh Srinivasan, Microsoft MVP [Windows Desktop Experience]

  • Is it possible to load your phone with the Office using the cord with head phone the ends of both sides?

    Is it possible to load your phone with the Office using the cord with head phone the ends of both sides?

    No, only USB.

    Taken head phones don't have any power.

  • Need a Script to the space of images on a total gap, then tag each image with the percentage of the total image space

    By editing the other scripts, I found here and other sites (including the labels size rorohiko), I worked on a script that will each image with the dimensions of the label and calculate the percentage of the spread of everything (including the text, white space).

    Now, I was invited to a script that tagged the images with the percentage of total image on a gap space. This script is so space images on a total gap, then tag each image with the percentage of the total image space. For example if there is an image that is 10 x 10 inches and four pictures that are images of 2.5x2.5, 10 x 10 would be tagged with 50% and the 2.5x2.5 would be tagged with 12.5%.

    This is the script that does the percentage of total circulation. Can some clever person get to do what I need?

    Suze

    (Sorry, I don't know how to post the script here with line numbers!)

    //

    This script adds printing of information labels to each graphic image. The labels are on a separate layer

    named "PercentageLabels" so that all these added labels can be removed again by simply removing

    the layer.

    //

    If you move or resize items, simply re-run the script to update the labels.

    //

    Before (re) start the script, you can define a paragraph style "SizeLabelStyle".

    This style will apply to all content on labels.

    //

    Before (re) start the script, you can set a style of object 'SizeLabelObjectStyle '.

    This style of object apply to all executives of the label - so if you want a specific background

    fill out or frame, do it through this object style.

    //

    You can change the units of the size label. I put in inches. Change the line below that has

    kUnitToUse - you can use:

    MeasurementUnits.CENTIMETERS

    MeasurementUnits.CICERO

    MeasurementUnits.INCHES

    MeasurementUnits.MILLIMETERS

    MeasurementUnits.PICAS

    MeasurementUnits.PIXELS

    MeasurementUnits.POINTS

    //

    By default the script will not attempt to label the "nested" images If you also want to label

    nested images (for example inline images, anchored frames, pasted images in the images,...) to change the line

    below to read:

    kLabelNestedItems = 1

    //

    If you want a specific image to stay without a label, you can use the Script label palette for

    assign a script called 'ignore' for this frame. The script will then not label this framework to the

    the title of the script is removed again.

    //

    Change the lines with kDontLabelImageFrames, kDontLabelTextFrames, kDontLabelOtherFrames

    below if you want to restrict labelling to only certain types of images: replace the '0'

    in "1" to enable these options.

    //

    Change the line with kShowImageFileName if you also want to display the names of the image in the

    size for the picture frames.

    //

    Small frames are not labelled - the cutoff point is currently a less than 0.1 inch high framework

    or 0.1 inch wide. You can change the cutoff point by adjusting the lines with kDontLabelBelowWidth

    or kDontLabelBelowHeight below.

    //

    var Girard;

    var gScriptFile;

    var gCaches;

    // ****************

    That's cheating spread automatically calculated

    var doc = app.activeDocument;

    doc.viewPreferences.horizontalMeasurementUnits = MeasurementUnits.inches;

    doc.viewPreferences.verticalMeasurementUnits = MeasurementUnits.inches;

    PageWidth = doc.documentPreferences.pageWidth var;

    stucture var pagewidth = * 2;

    var spreadheight = doc.documentPreferences.pageHeight;

    var spreadsquinch = stucture * spreadheight;

    Alert ("the total measure of square inch of spread is:" + spreadsquinch);

    //******************

    VR;

    {

    If (app.activeScript instanceof file)

    {

    var gScriptFile = app.activeScript;

    }

    }

    catch (Girard)

    {

    }

    If (typeof (kLogLevel) is "undefined")

    {

    const kLogLevel = 5;

    const kMaxLogNestLevel = 5;

    const kLogToMessageBox = 0;

    const kLogToConsole = 0;

    const kLogToFile = 0;

    const kLogFileName = "PercentageLabels.log";

    const kIgnoreFrameLabel = "ignore."

    const kSizeLabelLayerName = "PercentageLabels";

    const kLabelNestedItems = 0;

    const kDontLabelImageFrames = 0;

    const kDontLabelTextFrames = 1;

    const kDontLabelOtherFrames = 0;

    const kUnitToUse = MeasurementUnits.INCHES;

    const kShowImageFileName = 0; This set to 1 to precede the name of the image file in the tag

    Below all of the measures are expressed in kUnitToUse (e.g. inches if MeasurementUnits.INCHES is used)

    const kRoundToDecimals = 2;

    The separator to use between objects - for example MyImage.jpg - 7.22 x 9,34

    const kSeparatorBetweenNameAndSize = "-";

    const kSeparatorBetweenHeightAndWidth = "H x"; "

    const kSeparatorAfterWidth = "W";

    const kDontLabelBelowWidth = 0.1; In kUnitToUse

    const kDontLabelBelowHeight = 0.1; In kUnitToUse

    const kLabelStyleName = "SizeLabelStyle";

    const kLabelObjectStyleName = "SizeLabelObjectStyle";

    const kLabelHeight = 0.6; In kUnitToUse

    const kLabelWidth = 2.5; Expressed in kUnitToUse (e.g., inches).

    }

    var gRunState =

    {

    logToMessageBox: kLogToMessageBox,

    logToConsole: kLogToConsole,.

    logToFile: kLogToFile,.

    functionNestLevel: 0,

    logFunctionEntry: true,

    logFunctionExit: true,

    logLevel: kLogLevel,.

    logFileName: kLogFileName

    };

    Main();

    // ****************

    function ConvertToFrame (thePageItem)

    {

    / * / / / LogEntry ("ConvertToFrame");

    var retVal = thePageItem.getElements () [0];

    / * / / / LogExit ("ConvertToFrame");

    Return retVal;

    }

    // ****************

    function CollectionToArray (theCollection)

    {

    / * / / / LogEntry ("CollectionToArray");

    var retVal = theCollection.everyItem () .getElements () .slice (0);

    / * / / / LogExit ("CollectionToArray");

    Return retVal;

    }

    // ****************

    function GetImageFile (pageItem)

    {

    / * / / / LogEntry ("GetImageFile");

    var imageFile = null;

    do

    {

    Try

    {

    pageItem = ConvertToFrame (pageItem);

    If (!) (("allGraphics" in pageItem))

    {

    break;

    }

    var allGraphics = pageItem.allGraphics.slice (0);

    If (allGraphics.length == 0)

    {

    break;

    }

    var chart = allGraphics [0];

    var graphic.itemLink = link;

    imageFile = new File (link.filePath);

    }

    catch (Girard)

    {

    }

    }

    While (false);

    / * / / / LogExit ("GetImageFile");

    return imageFile.

    }

    // ****************

    function GetImageName (pageItem)

    {

    / * / / / LogEntry ("GetImageName");

    var imageName = "";

    do

    {

    var imageFile = GetImageFile (pageItem);

    If (imageFile is nothing)

    {

    break;

    }

    imageName = imageFile.displayName;

    }

    While (false);

    / * / / / LogExit ("GetImageName");

    return imageName;

    }

    // ****************

    function GetOuterPageItem (pageItem)

    {

    / * / / / LogEntry ("GetOuterPageItem");

    var retVal = null;

    do

    {

    Try

    {

    retVal = pageItem.parent;

    If (retVal instanceof spread | retVal instanceof Page)

    {

    retVal = pageItem;

    break;

    }

    If (retVal instanceof character)

    {

    retVal = GetOuterPageItem(retVal.parentTextFrames[0]);

    break;

    }

    }

    catch (Girard)

    {

    retVal = null;

    }

    }

    While (false);

    / * / / / LogExit ("GetOuterPageItem");

    Return retVal;

    }

    // ****************

    function LogMessage (message, collapseLines)

    {

    If (gRunState.logToConsole)

    {

    $.writeln (message);

    }

    If (gRunState.logToFile)

    {

    var logFile = new file (gScriptFile.parent + "/" + gRunState.logFileName);

    var now = new Date();

    logFile.open ("a");

    logFile.write (now.toString () + ":"+ message + "\n" ');

    logFile.close ();

    }

    If (gRunState.logToMessageBox)

    {

    Alert (message);

    }

    }

    // ****************

    LogEntry (message) function

    {

    If (gRunState.logFunctionEntry)

    {

    If (gRunState.functionNestLevel < kMaxLogNestLevel) {}

    for (var idx = 0; idx < gRunState.functionNestLevel; idx ++)

    {

    message = "" + message;

    }

    Filled (message + "<", true);

    }

    }

    gRunState.functionNestLevel ++;

    }

    // ****************

    function LogError (message)

    {

    If (gRunState.logLevel > = 1).

    {

    LogMessage ("* ERROR *:" + message, false);

    }

    }

    // ****************

    function LogExit (message)

    {

    -gRunState.functionNestLevel;

    If (gRunState.functionNestLevel < 0)

    {

    LogError ("LogExit: unbalanced nesting of function");

    }

    If (gRunState.logFunctionExit)

    {

    If (gRunState.functionNestLevel < kMaxLogNestLevel) {}

    for (var idx = 0; idx < gRunState.functionNestLevel; idx ++)

    {

    message = "" + message;

    }

    Filled (message + ">", true);

    }

    }

    }

    // ****************

    function LogNote (message)

    {

    If (gRunState.logLevel > = 3)

    {

    LogMessage ("Note:" + message, false);

    }

    }

    // ****************

    function LogWarning (message)

    {

    If (gRunState.logLevel > = 2)

    {

    LogMessage ("WARNING:" + message, false);

    }

    }

    // ****************

    function Main()

    {

    / * / / / LogEntry ("Main");

    var savedUserInteractionLevel = app.scriptPreferences.userInteractionLevel;

    app.scriptPreferences.userInteractionLevel = UserInteractionLevels.NEVER_INTERACT;

    do

    {

    Try

    {

    activeDocument var = app.activeDocument;

    If (!.) (activeDocument instanceof Document))

    {

    LogError ("hand: activeDocument isn't a Document");

    break;

    }

    var savedHorizontalMeasurementUnits = activeDocument.viewPreferences.horizontalMeasurementUnits;

    activeDocument.viewPreferences.horizontalMeasurementUnits = kUnitToUse;

    var savedVerticalMeasurementUnits = activeDocument.viewPreferences.verticalMeasurementUnits;

    activeDocument.viewPreferences.verticalMeasurementUnits = kUnitToUse;

    var savedRulerOrigin = activeDocument.viewPreferences.rulerOrigin;

    activeDocument.viewPreferences.rulerOrigin = RulerOrigin.PAGE_ORIGIN;

    do

    {

    Try

    {

    ProcessFrames (activeDocument);

    }

    catch (Girard)

    {

    Alert ("the script encountered a situation that we don't know how to handle. "He received the error, says '" + Parker + "' in Main()"); "."

    }

    }

    While (false);

    activeDocument.viewPreferences.rulerOrigin = savedRulerOrigin;

    activeDocument.viewPreferences.horizontalMeasurementUnits = savedHorizontalMeasurementUnits;

    activeDocument.viewPreferences.verticalMeasurementUnits = savedVerticalMeasurementUnits;

    }

    catch (Girard)

    {

    Alert ("the script encountered a situation that we don't know how to handle. "He received the error, says '" + Parker + "' in Main()"); "."

    LogError ("Hand throw" + Girard);

    }

    }

    While (false);

    app.scriptPreferences.userInteractionLevel = savedUserInteractionLevel;

    / * / / / LogExit ("Main");

    }

    // ****************

    function ProcessFrames (doc)

    {

    / * / / / LogEntry ("ProcessFrames");

    var err;

    do

    {

    If (!.) (doc instanceof Document))

    {

    LogError ("ProcessFrames: doc should be a Document");

    break;

    }

    Try

    {

    var existingLayer = doc.layers.itemByName (kSizeLabelLayerName);

    existingLayer.id;

    existingLayer.remove ();

    }

    catch (err)

    {

    }

    If (kLabelNestedItems)

    {

    var pageItems = doc.allPageItems.slice (0);

    }

    on the other

    {

    var pageItems = CollectionToArray (doc.pageItems);

    }

    var frameReferences = [];

    for (var pageItemIdx = 0; pageItemIdx < pageItems.length; pageItemIdx ++)

    {

    do

    {

    var pageItem = pageItems [pageItemIdx];

    If (pageItem.itemLayer.name is kSizeLabelLayerName)

    {

    break;

    }

    var pageItem = ConvertToFrame (pageItem);

    If (instanceof TextFrame pageItem)

    {

    If (kDontLabelTextFrames)

    {

    break;

    }

    }

    ElseIf (pageItem graphic instanceof)

    {

    If (kDontLabelImageFrames)

    {

    break;

    }

    }

    on the other

    {

    If (kDontLabelOtherFrames)

    {

    break;

    }

    }

    If (pageItem.label.toLowerCase () is kIgnoreFrameLabel)

    {

    break;

    }

    var width = pageItem.geometricBounds [3] - pageItem.geometricBounds [1];

    var height = pageItem.geometricBounds [2] - pageItem.geometricBounds [0];

    If (width < kDontLabelBelowWidth)

    {

    break;

    }

    If (height, kDontLabelBelowHeight)

    {

    break;

    }

    frameReferences.push (pageItem);

    }

    While (false);

    }

    var sizeLabelLayer = doc.layers.add ({name: kSizeLabelLayerName});

    for (var pageItemIdx = 0; pageItemIdx < frameReferences.length; pageItemIdx ++)

    {

    Try

    {

    var pageItem = frameReferences [pageItemIdx];

    var width = pageItem.geometricBounds [3] - pageItem.geometricBounds [1];

    var height = pageItem.geometricBounds [2] - pageItem.geometricBounds [0];

    var labelItem = doc.textFrames.add (null, LocationOptions.BEFORE, GetOuterPageItem (pageItem));

    labelItem.itemLayer = sizeLabelLayer;

    var boxsquinch = width * height

    var boxpercent = (boxsquinch / spreadsquinch) * 100

    var roundpercent = Math.round (boxpercent)

    var labelText = "";

    If (kShowImageFileName)

    {

    var imageName = GetImageName (pageItem);

    If (imageName! = "")

    {

    labelText += imageName + kSeparatorBetweenNameAndSize;

    }

    }

    labelText += RoundString (height, kRoundToDecimals) + kSeparatorBetweenHeightAndWidth + RoundString(width, kRoundToDecimals) + kSeparatorAfterWidth + ' \r\n'+ roundpercent + '% ';

    labelItem.contents = labelText;

    xPos = pageItem.geometricBounds var [1];

    yPos = pageItem.geometricBounds var [0] + kLabelHeight;

    labelItem.geometricBounds is [Posy, xPos, yPos + kLabelHeight, xPos + kLabelWidth];.

    Try

    {

    labelItem.parentStory.characters.everyItem () .appliedCharacterStyle = doc.characterStyles.item (0);

    }

    catch (err)

    {

    }

    Try

    {

    labelItem.parentStory.paragraphs.everyItem () .appliedParagraphStyle = kLabelStyleName;

    }

    catch (err)

    {

    }

    Try

    {

    labelItem.appliedObjectStyle = doc.objectStyles.itemByName (kLabelObjectStyleName);

    }

    catch (err)

    {

    }

    }

    catch (err)

    {

    }

    }

    }

    While (false);

    / * / / / LogExit ("ProcessFrames");

    }

    // ****************

    function RoundString (numVal, decimal)

    {

    / * / / / LogEntry ("Round");

    var retVal = Math.round (numVal * Math.pow(10,decimals)) + "";

    retVal = retVal.substring(0,retVal.length-decimals) + "." + retVal.substring(retVal.length-decimals);

    / * / / / LogExit ("Round");

    Return retVal;

    }

    What do you mean?

    var myDoc = app.activeDocument;
    var mySpreads = myDoc.spreads;
    var myRectangles = myDoc.rectangles;
    var myImages = 0;
    for (var i = 0; i < mySpreads.length; i++) {
        var mySpreadWidth = 0;
        var mySpreadHeight = myDoc.documentPreferences.pageHeight;
        for (var j = 0; j < mySpreads[i].pages.length; j++) {
            mySpreadWidth += myDoc.documentPreferences.pageWidth;
            }
        var mySpreadArea = mySpreadWidth * mySpreadHeight;
        var myImages = mySpreads[i].rectangles;
        var myTotalImageArea = 0;
        var myIndividualImageArea = [];
        for (var j = 0; j < myImages.length; j++) {
            var myImageGeometricBounds = myImages[j].geometricBounds;
            var myImageWidth = myImageGeometricBounds[3] - myImageGeometricBounds[1];
            var myImageHeight = myImageGeometricBounds[2] - myImageGeometricBounds[0];
            myIndividualImageArea[j] = (myImageWidth * myImageHeight);
            myTotalImageArea += myIndividualImageArea[j];
            }
        for (var j = 0; j < myIndividualImageArea.length; j++) {
            alert("Image percentage of total images on spread " + (i + 1) + " = " + (myIndividualImageArea[j] * 100) /myTotalImageArea);
            }
       alert("Total image percentage on spread " + (i + 1) + " = " + myTotalImageArea);
       }
    
  • What happens with the Mac Pro (end 2013)?

    Hello!

    I'm Marc Urtasun, Spain. I have a Pro Mac (end 2013) with 3, 5 GHz 6-Core and two AMD over-pants D500. I am an artist and a 3d animator and I always work with 3d, made, video... and I need a more powerful computer now, because on the 3d, Mac users are moving to Windows due to the advantage of the GPU with CUDA...

    I would like to ask two things:

    -are planning an update or something for Apple's Mac Pro?

    -Can I update my Mac Pro 12 hearts? or update with a graphics card more powerful?

    Thank you

    -All those here who know the future plans Apple could not reveal that, because of the NDA, they signed.

    -Yes, you upgrade to the D700, but that requires to replace two wide boards that contain the GPU and other components. You will find the D700, as Apple does not sell to them.

    -The CPU can be upgraded. See:

    https://eShop.MacSales.com/MyOWC/upgrades.cfm?sort=pop & Model = 486 & type = Processor

    However, some app can use more carrots 6-8. Almost none can use all 12 cores.  When one of your apps look at the CPU tab in the activity monitor and see if you now use fully all 6 hearts.

    You have not said how you memory. Memory can be limited. In addition, sometimes the disk i/o is limiting what drive you have and how ae connected

    -For the good information of 2103 Mac Pro configurations see:

    http://macperformanceguide.com/index_topics.html#MacPro2013

  • Tecra M5: Applications hang with 50 percentage usage of CPU

    I recently got a Tecra M5, which is great, except that now and still process hang your 50 cpu percentage.

    I installed the update for the fingerprint reader and begins to suspect that it is a problem with the NVIDIA graphics driver.

    When the process crashes, if I look at the processes by using process Explorer (sysinternals), I see an event of low memory being connected. The laptop has 2 GB of memory and is used only for ~ 1 GB.

    What can be done to find what is the cause of this deadlock?

    mayb a virus? or mayb your virus checker...

    What virus checker do you use?

  • Bad behavior of cancellation with the additional block end no OnNewStep

    Hello

    I'm working on StepTypes requiring a block structure, as loops in TestStand (using TestStand 2012). I use OnNewStep lower level to insert the end block no during the boot block is instantiated.

    I do not manage to get a good behavior of cancellation with it as follows:

    • If I do not use SequenceFile.IncChangeCount in OnNewStep stage, when I select Cancel in the sequence editor, the only stage of boot block is removed, the end block remains. My understanding is the expected behavior: motor TestStand don't know that the no end block has been added, she has no reason to remove it.
      However, I prefer to remove both start and end block as follows, as do with While TestStand, DoWhil or for loops.

    • If I do a SequenceFile.IncChangeCount in the OnNewStep stage, when I select Cancel in the sequence editor, I get the following error, and nothing is deleted or cancelled the sequence:

    I guess TestStand increments the ChangeCount when I insert a step, and OnNewStep also increment the ChangeCount, while the operation should be considered as a single action.

    I found in the documentation of the UndoStackclass with the method AggregateTopUndoItems method, I suppose, may be the solution. But UndoStack seems to be available only from ApplicationMgr and SequenceFileViewMgr (which are not accessible from the context of the sequence).

    Any idea to get similar behavior at the correct stage of control of native stream, with cancellations?

    Best regards

    Well, I found a solution by looking at what is happening in CommonFlow.cpp (\National Instruments\TestStand 2012\Components\StepTypes\FlowControl).

    For your information, here is the code:

    Insert a corresponding END step after step again
    ' public static void OnNewStepWithEndStepFunction (SequenceContextPtr & sequenceContext)
    {
    If (! sequenceContext-> sequence-> HasMismatchedBlocks)
    return;

    PropertyObjectFilePtr file = sequenceContext-> SequenceFile-> AsPropertyObjectFile();
    StepPtr endStep sequenceContext-> engine =-> NewStep ("", gEndStepTypeName);
    UndoItemCreatorPtr undoItemCreator sequenceContext-> engine =-> NewUndoItemCreator (EditKind_InsertStep, file, L"" ");

    undoItemCreator-> BeginEdit (endStep-> AsPropertyObject());
    sequenceContext-> sequence-> InsertStep (endStep, sequenceContext-> StepIndex + 1, sequenceContext-> StepGroup);
    undoItemCreator-> EndEdit();

    _variant_t ;
    endStep-> name = (char *) sequenceContext-> engine-> GetResourceString ("FLOW_CONTROL_STEPS", "END_DEF_STEP_NAME", "", &found);)

    file-> IncChangeCount();

    to do this, or the step type will not be displayed immediately as being used by the file
    file-> TypeUsageList-> AddUsedTypes (endStep-> AsPropertyObject());

    undoItemCreator-> CreateAndPostUndoItem (CreateUndoItemOption_NoOptions, TS::ApplicationSite_DefaultSite);
    }

    So the trick is to instantiate a UndoItemCreator that points to the current SequenceFIle, to call BeginEdit with, as an argument, the step to insert as PropertyObjetct, before calling the InsertStep method, then call the EndEdit method. Increment the file change, add the step as PropertyObject in the TypeUsedList file and finally call CreateAndPostUndoItem method.

    ... Happy!

  • What is the best way to create a line with triangles at each end, as in a timeline? (See attached example).

    Timeline.JPG

    Sorry for the low resolution. I would like to create a line with a triangle at each end, similar to the one illustrated. What is the best way to achieve this using InDesign? I will create three or four and we will add the month abbreviations for years.

    I'd probably use the online tool to create the line. You can hold the SHIFT key to make the straight line. For triangles, you can either use the polygon tool (shift click to set the number of sides) or you can create a square with the rectangle tool (hold down the SHIFT key while dragging to make a square) and use the pen tool to remove a corner of the shape, creating a triangle. I generally prefer the polygon tool.

  • Control of the expression / Slider control works with the percentage?

    For example, I want to do something with keyframes, so opted to use "regulator toslide ," but is now defined by the "cursor", if I put the wiggleexpression (2.5) and place 2 on the regulator to behind the scenes, knowing that the value will be replaced by the value of "slider" so in the case of the control slide was "10". , would look like this: wiggle (10.5)

    But I want to know is if the control of the expression of origin by a percentage and not a replaced, for the value of the slider control.

    Thank you!

    If the amount of your max value is set, then by creating the cursor to drive the percentage of this number requires a few simple calculations.

    Degree of accuracy desired percentage to be hover would require a small change that in mathematics.

    This example allows you to animate a percentage of '2' frequency (maximum value) in agitation, but allows the range '5 ': stay

    mV = 2; maximum value

    PERC = (effect ("Slider Control")("Slider")/100);  makes a percentage since the slider value by using 0-100

    Wiggle(MV*PERC,5)

    explanation:

    There are several ways to do so.

    The slider is unlimited, so you can define OTHER rules in your expression, but to keep it simple:

    You must multiply your maximum value of your "perc."

    However, we want to transform the number 'perc' in a fraction.

    A simple way is to divide the amount of cursor by 100.

    Multiply your max value with the result of your cursor (/ 100) and you have your percentage.

    (* You can use fractional numbers to animate instead of this, but the cursor is easier to control in this way.)

  • problem with fields percentage format

    I want to change the behavior of the percentage in the form of Adobe's PDF fields. Currently if I filled the field with 1 then the field will be shown 100%, if I fill in with 50 field then the field will be displayed 5000%. I want to achieve this kind of behavior: if I fill in field with 50 then field should be shown 50% (and at the same time during the extraction of data must match the value of 0.5).

    I was thinking about custom format script and custom script hits, but I don't have any experience with it. I tried to apply a custom calculation of the ti script (value provided to the division by 100), and it worked... until I change the value of another field (then it was again divided by 100).

    Is there is possibility to achieve?

    There is no that. When any field value is changed, the scripts in calculation of fields that have are triggered in the order defined by the order of computation of field.

    The script you use is not correct for a custom calculation script. Try it instead as a validation script.

  • Setting the width and the height of the elements (texts, images), with custom percentages associated with the width of the browser

    Dear Muse-Geeks,

    I'm really pleased with the ability and especially the ease use of Muse. But I couldn't imagine that the width of a text box, image, the box cannot be defined as a percentage of the width of the browser.

    But now after some research on the web I really seems the only option is the 100% browser width.

    I just missed something to set a value in percentage (vertical/horizontal) size?

    Concerning

    André

    Hi Woods

    When you talk about the size of objects as a % of the browser, I think you are talking about the responsiveness of the site. If Yes, then it is not possible to create sensitive sites in Muse at the moment. But yes, you can set the width to 100% for some items and a slide show full-screen only.

    Kind regards

    Aish

  • Find the string starts with a string and ending with a year

    Hi all

    I have the following situation.

    I'm in a string TVTdamacus LKK214/342009sstLKK
    I need to select the channel that begin withLKK and end a year. This year can be any year. In this case it is 2009, but it can also be 2012
    In this case the right string would be LKK214/342009
    Does anyone have an idea how I can do this.
    I thank in advance for your help is.

    --------------------------------------------------------------------------------
    Create table test (identification number, name varchar2 (100));

    Insert into test (id, name)
    values (1,'TVTdamacus LKK214/342009sstLKK ');

    Insert into test (id, name)
    values (2,'TVTdamacus LKK24/342012sstLKK ');

    I missed the 'between condition of 20 years' in the above query.

    Fix here...

    SQL> WITH test AS
      2  (
      3      SELECT 1 id,'TVTdamacus LKK214342009sstLKK' name FROM dual UNION all
      4      SELECT 1 id,'TVTdamacus LKK214341999sstLKK' name FROM dual UNION all
      5      SELECT 2 id,'TVTdamacus LKK24/342012sstLKK' name FROM dual UNION all
      6      SELECT 1 id,'TVTdamacus LKK214341989sstLKK' name FROM dual UNION all
      7      SELECT 2 id,'TVTdamacus LKK24344012sstLKK' name FROM dual
      8  )
      9  SELECT
     10      id,
     11      name,
     12      case when to_number(substr(REGEXP_SUBSTR (name, 'LKK[0-9]+[[:digit:]]{4}'),-4))
     13              between extract(year from sysdate)-20 and  extract(year from sysdate)
     14           then REGEXP_SUBSTR (name, 'LKK[0-9]+[[:digit:]]{4}')
     15           else null end newstr
     16  FROM test;
    
            ID NAME                          NEWSTR
    ---------- ----------------------------- -----------------------------
             1 TVTdamacus LKK214342009sstLKK LKK214342009
             1 TVTdamacus LKK214341999sstLKK LKK214341999
             2 TVTdamacus LKK24/342012sstLKK
             1 TVTdamacus LKK214341989sstLKK
             2 TVTdamacus LKK24344012sstLKK
    
  • How to add textframe with anchor at each end of para

    I want to add textframe end each of paragraphs with anchor. Can anyone help on this?

    Hi N! evil,

    Please try the JS code below.

    app.activeDocument.stories.everyItem().paragraphs.everyItem().insertionPoints[-1].textFrames.add()
    

    THX,

    csm_phil

  • Image with width percentage causes the offset Y

    When I put an image spark or mx on a percentage width, or 30%, the image is shifted location Y expected / desired. I have the Image in a HBox and I wait until it is flush with the top, but it seems to keep the same focus as the image full-size adding padding to the top.

    Any suggestions?

    Try to do the following:

    1. PaddingTop set to the myBox 0
    2. PaddingLeft set to the myBox 0

    Image of the spark isn't horizontalAlign and verticalAlign, if the steps above don't work, try with a mx Image and setting the horizontalAlign and verticalAlign on the image for the top and left.  Looking at your picture, it seems that it is the scale of the image horizontally and vertically and the pixels of the image of drawing in the vertical center of the Image.  You must specify the Image in order to align the top and left.

  • Problems with an iMac 2013 end of printing

    I use an iMac 2013 end using the operating system of Yosemite. I have a Brother printer model # MFC - 7360N printer multifunction. Sometimes it will print a small portion of an e-mail, especially from the left side and not the entire document. I can't understand why. My computer is on a network at the office and if I try to use network printers, she will do the same. Help please!

    Open system preferences > printers and Scanners > print and then right or control click on the printer on the left, then click on: reset the printing system.

Maybe you are looking for

  • Display the page to 120% or 125%?

    Hello, I went recently blind in my left eye and I would like to know, is there a way to define the display of the page at 120% or 125%? And this all the time for each page. I know that I'm able to set this option it Google Chrome but what about FireF

  • Product name: HP Envy 13 t-1000: updated HP Envy 13 t - 1000 CTO Notebook SSD

    I have no doubt, that answered my question before, but I can't find a reference. I am the owner of a

  • 2002 Media Center hangs up

    Media Center will open correctly, but when I click on Live TV, program periodically hangs up. Doesn't seem to happen more often after a reboot?

  • Uninstall Microsoft programs duplicate

    I am a 78-year-old computer illiterate Lady... tonight when uninstalling an unwanted program, I noticed a large number of entries from Microsoft. First of all, there are 9 entries titled "Microsoft Visual c +...» 2 were dated 2005, 6 were dated 2008

  • What is the best size for the gigantic memory file pagefile.sys virtual?

    pagefile.sys is gigantic 8 GB of files in Windows 7, I want free space of HDD on my SSD for faster backup purposes, but I don't want to hinder the performance that comes first. I have 8 GB of DDR3 memory. What is the recommended size for the pagefile