Calculating color percentages

I've designed a terrazzo floor using Freehand. My terrazzo
contractor needs to know the percentage of each color I've used so
he can order the right amount of material. Is there a function that
will show me what percentage of each color I've used in relation to
all of the colors specified on my drawing?
Thanks for whatever help you can provide!

> Is there a function that will show me what percentage of
each color
> I've used in relation to all of the colors specified on
my drawing?
I don't know of a way to do this in FreeHand. However, if you
have access to
Illustrator, there's a free filter called PathArea.
http://www.telegraphics.com.au/sw/
In AI, use the wand tool to select all paths with one color
fill. The
PathArea filter returns the total area. After manually
recording the areas,
of each color, it would be a simple matter to calculate the
percentages.
The filter for AI CS2 works in CS3. AI CS3 will open most
versions of
FreeHand files.
Judy Arndt

Similar Messages

  • How to get the "CMYK" Color percentages?

    Could you please advise me how to get the "CMYK" Color percentages of every pixel via scripting.

    You have to be patched to the 10.0.2 version of FM and you must use the CMYK option with SaveAsPDF. If thee colour is defined as Spot in the FM file, it should remain as a spot colour in th PDF. However, that being said, the CMYK route is still a bit wonky (even in FM12) and you may get odd results in your PDF.
    Alternatives are to make the fix in Acrobat with the Print Production tools (or even better to use a third-party tool like Enfocus Pro) or to use GrafikHuset's (now freebie) PubliPDF to convert FM's RGB postscript output to CMYK+Spot PDFs. Download at: http://design.grafikhuset.dk/index.php/kontakt/downloads/grafikhuset-publi-pdf and more details available at: http://www.grafikhuset.net/PubliPDF/

  • Calculation of percentage

    i am new to abap. how to calculate the percentage of some amount field. and i want to pass that value to smartform. how to do that, and how to conver amount to discription i mean i want to display 3000 as three thousand plz help me .

    Hi,
    If you want the calculated percentage to SmartForm then you have to create the structure and then pass that structure to the SmartForm Import parameters.
    The logic for calculating the percentage remains the same as we have been doing so far in other Pro Languages.....
    HTH,
    Regards,
    Dhruv Shah

  • How can I add decimals to my calculator? Percentages as well?

    I am building a simple calculator app. I have implemented my calculator this way: I have the viewcontroller.h and .m, I also have my "CalculatorBrain.h and .m" That is where I implement the addition and substraction, multiplication. I use the symbol or the text of the button to read it and calculate the value. The question is, if I have 1.5 plus 1.5, it says the answer is 2. It only takes the 1 and the 1. How do I add decimals? Also, if possible, how would I do percentages?
    This is my Calculator Brain.m:
    #import "CalculatorBrain.h"
    const NSString *Delete = @"D";
    @implementation CalculatorBrain
    - (void)setOperand:(double)anDouble
        operand = anDouble;
    - (void)performWaitingOperation
        if ([@"+" isEqual:waitingOperation]) {
            operand = waitingOperand + operand;
        } else if ([@"-" isEqual:waitingOperation]) {
            operand = waitingOperand - operand;
        } else if ([@"×" isEqual:waitingOperation]) {
            operand = waitingOperand * operand;
        } else if ([@"÷" isEqual:waitingOperation]) {
            if (operand) {
            operand = waitingOperand / operand;
    - (double)performOperation:(NSString *)operation;
        if ([operation isEqual:@"√"]) {
            operand = sqrt(operand);
        } else {
            [self performWaitingOperation];
            waitingOperation = operation;
            waitingOperand = operand;
        return operand;
    @end
    And this is my View Controller.m. Any suggestions?:
    #import "CalculatorViewController.h"
    @implementation CalculatorViewController
    - (CalculatorBrain *)brain
        if (!brain) {
            brain= [[CalculatorBrain alloc] init];
        return brain;
    - (IBAction)digitPressed:(UIButton *)sender;
        NSString *digit = [[sender titleLabel] text];
        if (userIsInTheMiddleOfTypingANumber) {
            [display setText:[[display text] stringByAppendingString:digit]];
        } else {
            [display setText:digit];
            userIsInTheMiddleOfTypingANumber = YES;
    - (IBAction)operationPressed:(UIButton *)sender;
        if (userIsInTheMiddleOfTypingANumber) {
            [[self brain] setOperand:[[display text] doubleValue]];
            userIsInTheMiddleOfTypingANumber = NO;
        NSString *operation = [[sender titleLabel] text];
        double result = [[self brain] performOperation:operation];
        [display setText:[NSString stringWithFormat:@"%g", result]];
    - (void) runTimer;
        // This starts the timer which fires the showActivity
        // method every 0.5 seconds
        myTicker = [NSTimer scheduledTimerWithTimeInterval: 0.5
                                                    target: self
                                                  selector: @selector(showActivity)
                                                  userInfo: nil
                                                   repeats: YES];
    - (void)showActivity;
        NSDateFormatter *formatter =
        [[NSDateFormatter alloc] init];
        NSDate *date = [NSDate date];
        // This will produce a time that looks like "12:15:00 PM".
        [formatter setTimeStyle:NSDateFormatterMediumStyle];
        // This sets the label with the updated time.
        [clockLabel setText:[formatter stringFromDate:date]]; 
    // Implement viewDidLoad to do additional
    // setup after loading the view, typically from a nib.
    - (void)viewDidLoad {
        [super viewDidLoad];
        // This calls the runTimer method after loading
        // SimpleClockViewController.xib
        [self runTimer];
    //  CalcController.m
    //  SimpleCalc
    //  Created by Chris Ball ([email protected]) on 1/17/08.
    //  Copyright 2008, Chris Ball, Strainthebrain.Blogspot.Com.
    //  All rights reserved.
    - (IBAction)resetEverythingPressed:(UIButton *)sender;
        if (userIsInTheMiddleOfTypingANumber) {
            [[self brain] setOperand:[[display text] doubleValue]];
            userIsInTheMiddleOfTypingANumber = NO;
        NSString *operation = [[sender titleLabel] text];
        double result = [[self brain] performOperation:operation];
        [display setText:[NSString stringWithFormat:@"0", result]];
    @end
    Oh, by the way, it tells the time. And if you want a screenshot, so you can see how it works out...

    For percentages, first make sure the number is < 0, then multiply it by 100, add a % sign and you're done
            double displayValue = [display.text doubleValue];
            if(displayValue < 0)
                displayValue *= 100;
                [display setText:[@"%" stringByAppendingFormat:@"%g", displayValue]];

  • Calculating liquidation - percentages with subqueries

    Hi,
    I have a query a sql statement as follows, which I am using to query an oracle database:
    SELECT
    EXTRACT(YEAR FROM "CLIENT_TH"."CREATED_DATE") AS LOAD_YEAR,
    EXTRACT(MONTH FROM "CLIENT_TH"."CREATED_DATE") AS LOAD_MONTH,
    CONCAT(CONCAT(EXTRACT(MONTH FROM "CLIENT_TH"."CREATED_DATE") , '-'), EXTRACT(YEAR FROM "CLIENT_TH"."CREATED_DATE") ) AS LOAD_MONTHNAME,
    EXTRACT(YEAR FROM "DOC_HDR_TH"."CREATED_DATE") AS PAYMENT_YEAR,
    EXTRACT(MONTH FROM "DOC_HDR_TH"."CREATED_DATE") AS PAYMENT_MONTH,
    CONCAT(CONCAT(EXTRACT(MONTH FROM "DOC_HDR_TH"."CREATED_DATE") , '-'), EXTRACT(YEAR FROM "DOC_HDR_TH"."CREATED_DATE") ) AS PAYMENT_MONTHNAME,
    SUM("DOC_HDR_TH"."TOTAL_GROSS"*-1) AS PAYMENT_AMOUNT,
    "CLIENT_TH"."SPARE_CHAR_05" AS CLIENT_NAME,
    "CLIENT_TH"."SPARE_CHAR_21" AS CLIENT_CODE
    FROM
    "SL"."CLIENT_TH" "CLIENT_TH" INNER JOIN
    "SL"."TRAN_TH" "TRAN_TH" ON ("CLIENT_TH"."CLIENT_ID"="TRAN_TH"."CLIENT_ID") INNER JOIN
    "SL"."DOC_LINK_TH" "DOC_LINK_TH" ON ("TRAN_TH"."TRAN_ID"="DOC_LINK_TH"."TRAN_ID") INNER JOIN
    "SL"."DOC_HDR_TH" "DOC_HDR_TH" ON ("DOC_LINK_TH"."DOC_ID"="DOC_HDR_TH"."DOC_ID")
    WHERE
    "CLIENT_TH"."SPARE_CHAR_01" LIKE 'SBH/%') AND
    ("DOC_HDR_TH"."DOC_TYPE" NOT IN ('ADJ', 'Adjustment', 'ADMIN FEE', 'AOE FEE', 'ARREARS', 'CHARGE APP FEE', 'CLI', 'CO FEES', 'COSTS', 'CWO', 'DM', 'FEES', 'HCEO Fees', 'IJADJ', 'INTEREST', 'INV', 'JUDGEMENT COSTS', 'LATE PAYMENT COMP', 'OSB ADJ', 'SET WRITE OFF', 'SET WRITE OFF', 'WARRANT COSTS', 'WARRANT FEE')) and
    TRUNC("DOC_HDR_TH"."CREATED_DATE") BETWEEN TRUNC(ADD_MONTHS(SYSDATE,-12),'MM') AND SYSDATE-1AND
    TRUNC("CLIENT_TH"."CREATED_DATE") BETWEEN TRUNC(ADD_MONTHS(SYSDATE,-24),'MM') AND SYSDATE-1
    GROUP BY
    "CLIENT_TH"."SPARE_CHAR_05",
    "CLIENT_TH"."SPARE_CHAR_21",
    EXTRACT(MONTH FROM "CLIENT_TH"."CREATED_DATE") ,
    EXTRACT(YEAR FROM "CLIENT_TH"."CREATED_DATE"),
    EXTRACT(MONTH FROM "DOC_HDR_TH"."CREATED_DATE"),
    EXTRACT(YEAR FROM "DOC_HDR_TH"."CREATED_DATE")
    This transposes into the following outcome:
    Payment Month
    Jun-12 Jul-12 Aug-12
    Load Date
    Jun-12 100.12 200.00 300.00
    Jul-12 300.00 400.00
    Aug-12 500.00
    This is working perfectly.
    However, where I am having the problem is creating a liquidation batchtracker, where I want the outcome to look something like the following
    Payment Months since Load
    M1 M2 M3 M4 M5
    Load Date
    Jun-12 0.01% 0.02% 0.2% 0.3% 0.4%
    July-12 0.02% 0.04% 0.4% 0.3%
    Aug-12 0.01% 0.02% 0.2%
    Sept-12 0.01% 0.02%
    Oct-12 0.01%
    The code I have so far is:
    SELECT
    CONCAT(CONCAT(EXTRACT(MONTH FROM Payments.LOAD_DATE) , '-'), EXTRACT(YEAR FROM Payments.LOAD_DATE) ) AS LOAD_MONTHNAME,
    Original.ORIGINAL_BALANCE as ORIGINAL_BALANCE
    FROM
         (SELECT
         "CLIENT_TH"."CLIENT_ID",
         SUM("DOC_HDR_TH"."TOTAL_GROSS") AS ORIGINAL_BALANCE
         FROM
         "SL"."CLIENT_TH" "CLIENT_TH" INNER JOIN
         "SL"."TRAN_TH" "TRAN_TH" ON ("CLIENT_TH"."CLIENT_ID"="TRAN_TH"."CLIENT_ID") INNER JOIN
         "SL"."DOC_LINK_TH" "DOC_LINK_TH" ON ("TRAN_TH"."TRAN_ID"="DOC_LINK_TH"."TRAN_ID") INNER JOIN
         "SL"."DOC_HDR_TH" "DOC_HDR_TH" ON ("DOC_LINK_TH"."DOC_ID"="DOC_HDR_TH"."DOC_ID")
         WHERE
         "CLIENT_TH"."SPARE_CHAR_01" = 'SBH/73020000003657' and
         "CLIENT_TH"."SPARE_CHAR_01" LIKE 'SBH/%' AND
         "DOC_HDR_TH"."DOC_TYPE" IN ('INV', 'ARREARS')
         GROUP BY
         "CLIENT_TH"."CLIENT_ID") Original LEFT OUTER JOIN
              (SELECT
              "CLIENT_TH"."CLIENT_ID",
              "CLIENT_TH"."SPARE_CHAR_01" AS REFERENCE,
              "CLIENT_TH"."CREATED_DATE"AS LOAD_DATE,
              "DOC_HDR_TH"."CREATED_DATE" AS PAYMENT_DATE,
              "DOC_HDR_TH"."TOTAL_GROSS"*-1 AS PAYMENT_AMOUNT,
              "CLIENT_TH"."SPARE_CHAR_05" AS CLIENT_NAME,
              ROUND(MONTHS_BETWEEN("DOC_HDR_TH"."DOC_DATE","CLIENT_TH"."CREATED_DATE") ) AS LIQUIDATION_MONTH
              FROM
              "SL"."CLIENT_TH" "CLIENT_TH" INNER JOIN
              "SL"."TRAN_TH" "TRAN_TH" ON ("CLIENT_TH"."CLIENT_ID"="TRAN_TH"."CLIENT_ID") INNER JOIN
              "SL"."DOC_LINK_TH" "DOC_LINK_TH" ON ("TRAN_TH"."TRAN_ID"="DOC_LINK_TH"."TRAN_ID") INNER JOIN
              "SL"."DOC_HDR_TH" "DOC_HDR_TH" ON ("DOC_LINK_TH"."DOC_ID"="DOC_HDR_TH"."DOC_ID")
              WHERE
              "CLIENT_TH"."SPARE_CHAR_01" like 'S%' and
              ("DOC_HDR_TH"."DOC_TYPE" NOT IN ('ADJ', 'Adjustment', 'ADMIN FEE', 'AOE FEE', 'ARREARS', 'CHARGE APP FEE', 'CLI', 'CO FEES', 'COSTS', 'CWO', 'DM', 'FEES', 'HCEO Fees', 'IJADJ', 'INTEREST', 'INV', 'JUDGEMENT COSTS', 'LATE PAYMENT COMP', 'OSB ADJ', 'SET WRITE OFF', 'SET WRITE OFF', 'WARRANT COSTS', 'WARRANT FEE')) and
              TRUNC("DOC_HDR_TH"."DOC_DATE") BETWEEN TRUNC(ADD_MONTHS(SYSDATE,-12),'MM') AND SYSDATE-1) Payments on (Payments."CLIENT_ID" = Original."CLIENT_ID")
    WHERE
    Payments.REFERENCE like 'S%'
    I would really appreciate any help that anyone can give me.
    Many thanks,
    Sammy
    Edited by: 998145 on 04-Apr-2013 12:42
    Edited by: 998145 on 05-Apr-2013 02:31

    Hi,
    Let me see if I can somehow start again. So, I have a piece of code (Payments Query), which selects total payments grouped by load month/year and payment month/year. The resulting table looks as follows:
    LOAD_MONTHNAME         PAYMENT_MONTHNAME           PAYMENT_AMOUNT            CLIENT_NAME                 CLIENT_CODE
    5-2012                               6-2012                                        30,000                        V                                     
    3-2012                               4-2012                                        10,000                        V    
    10-2012                             11-2012                                       40,000                        V    
    5-2012                               6-2012                                        5,000                          C     The code that gives me the above dataset is as follows:
    SELECT
    CONCAT(CONCAT(EXTRACT(MONTH FROM "CLIENT_TH"."CREATED_DATE") , '-'), EXTRACT(YEAR FROM "CLIENT_TH"."CREATED_DATE") ) AS LOAD_MONTHNAME,
    CONCAT(CONCAT(EXTRACT(MONTH FROM "DOC_HDR_TH"."CREATED_DATE") , '-'), EXTRACT(YEAR FROM "DOC_HDR_TH"."CREATED_DATE") ) AS PAYMENT_MONTHNAME,
    SUM("DOC_HDR_TH"."TOTAL_GROSS"*-1) AS PAYMENT_AMOUNT,
    "CLIENT_TH"."SPARE_CHAR_05" AS CLIENT_NAME,
    "CLIENT_TH"."SPARE_CHAR_21" AS CLIENT_CODE
    FROM 
    "SL"."CLIENT_TH" "CLIENT_TH" INNER JOIN
    "SL"."TRAN_TH" "TRAN_TH" ON ("CLIENT_TH"."CLIENT_ID"="TRAN_TH"."CLIENT_ID") INNER JOIN
    "SL"."DOC_LINK_TH" "DOC_LINK_TH" ON ("TRAN_TH"."TRAN_ID"="DOC_LINK_TH"."TRAN_ID")  INNER JOIN
    "SL"."DOC_HDR_TH" "DOC_HDR_TH" ON ("DOC_LINK_TH"."DOC_ID"="DOC_HDR_TH"."DOC_ID")
    WHERE 
    ("CLIENT_TH"."SPARE_CHAR_01" LIKE 'BH/%' OR
    "CLIENT_TH"."SPARE_CHAR_01" LIKE 'SBH/%') AND
    ("DOC_HDR_TH"."DOC_TYPE" NOT IN ('ADJ', 'Adjustment', 'ADMIN FEE', 'AOE FEE', 'ARREARS', 'CHARGE APP FEE', 'CLI', 'CO FEES', 'COSTS', 'CWO', 'DM', 'FEES', 'HCEO Fees', 'IJADJ', 'INTEREST', 'INV', 'JUDGEMENT COSTS', 'LATE PAYMENT COMP', 'OSB ADJ', 'SET WRITE OFF', 'SET WRITE OFF', 'WARRANT COSTS', 'WARRANT FEE')) and
    TRUNC("DOC_HDR_TH"."CREATED_DATE") BETWEEN TRUNC(ADD_MONTHS(SYSDATE,-12),'MM') AND SYSDATE-1AND
    TRUNC("CLIENT_TH"."CREATED_DATE") BETWEEN TRUNC(ADD_MONTHS(SYSDATE,-24),'MM') AND SYSDATE-1
    GROUP BY
    "CLIENT_TH"."SPARE_CHAR_05",
    "CLIENT_TH"."SPARE_CHAR_21",
    EXTRACT(MONTH FROM "CLIENT_TH"."CREATED_DATE") ,
    EXTRACT(YEAR FROM "CLIENT_TH"."CREATED_DATE"),
    EXTRACT(MONTH FROM "DOC_HDR_TH"."CREATED_DATE"),
    EXTRACT(YEAR FROM "DOC_HDR_TH"."CREATED_DATE")I am then pivoting the above data returned by the sql in excel to display the data as below, with the LOAD_MONTHNAME as Row Labels and the PAYMENT_MONTHNAME as column labels.
                         PAYMENT_MONTHNAME
    LOAD_MN        4-2012               5-2012                  6-2012                     7-2012
    4-2011                 £226.00                £226.00          £191.00                      £235.00
    5-2011                 £361.00                £303.50          £213.50                      £278.00
    6-2011                 £231.83                £240.84          £150.00                      £35.00
    7-2011                 £122.06                 £88.82          £190.63                      £158.80 The above all works perfectly. The next step I need to take (and is the part that I am having trouble with) is that I need to calculate the above cash values as a % of the total balance that was loaded in the month.
    The below code is what I have under a seperate query (Balance Query) to return the balances for each load_month:
    SELECT
    "CLIENT_TH"."SPARE_CHAR_05",
    CONCAT(CONCAT(EXTRACT(MONTH FROM "CLIENT_TH"."CREATED_DATE") , '-'), EXTRACT(YEAR FROM "CLIENT_TH"."CREATED_DATE") ) AS LOAD_MONTHNAME,
    SUM("DOC_HDR_TH"."TOTAL_GROSS") as INVOICE_AMOUNT
    FROM  
    "SL"."CLIENT_TH" "CLIENT_TH" INNER JOIN
    "SL"."TRAN_TH" "TRAN_TH" ON ("CLIENT_TH"."CLIENT_ID"="TRAN_TH"."CLIENT_ID")  INNER JOIN
    "SL"."DOC_LINK_TH" "DOC_LINK_TH" ON ("TRAN_TH"."TRAN_ID"="DOC_LINK_TH"."TRAN_ID")  INNER JOIN
    "SL"."DOC_HDR_TH" "DOC_HDR_TH" ON ("DOC_LINK_TH"."DOC_ID"="DOC_HDR_TH"."DOC_ID")
    WHERE 
    "DOC_HDR_TH"."DOC_TYPE"=N'INV') AND
    ("CLIENT_TH"."SPARE_CHAR_01" LIKE N'BH/%' OR
    "CLIENT_TH"."SPARE_CHAR_01" LIKE N'SBH/%')
    GROUP BY
    "CLIENT_TH"."SPARE_CHAR_05", EXTRACT(MONTH FROM "CLIENT_TH"."CREATED_DATE") ,EXTRACT(YEAR FROM "CLIENT_TH"."CREATED_DATE")This returns the below data:
    CLIENT_NAME     LOAD_YEAR     LOAD_MONTH     LOAD_MONTHNAME     INVOICE_AMOUNT
    A                       2011     7                    7-2011     £20,000.00
    A                       2011     8                    8-2011     £30,000.00
    A                       2011     9                    9-2011     £3,000.00What I basically need to do is calculate the first payments query with the above balance query to show the liquidation percentage, and I am not sure how to combine the two queries. So, for example, for Client A, the payments that came in for the accounts with a LOAD_MONTHNAME OF 7-2007 were:
                                  PAYMENT_MONTHNAME
    LOAD_MN                4-2012               5-2012               6-2012                     7-2012
    7-2011                 £122.06      £88.82             £190.63                  £158.80 (taken directly from the Payments query results)
    These then need to be calculated for each monthname against the balance loaded in 7-2011 which is £20,000 (from Balance Query).
    I hope this now explains it better and thanks so much all of you for your help in looking at this.
    Thanks again,
    S
    Edited by: 998145 on 04-Apr-2013 16:49

  • Calculator with Percentage button - widget or software please

    Hi all,
    I have tried to search for this and havent come up with anything solid, so if you can help, please do;
    I downloaded a widget on my old macbook before it got sent back to apple and now I cannot find the calculator no matter what I put in the searches.
    I was after a similar calculator to the one supplied as standard, but with the percentage button,
    Thanks in advnce

    Thanks for the star baydreamer!
    you can tell "newbie"!
    Uhm, never having used the thing, I didn't know that until I looked!
    It always pays to explore the menus in any application - you never know what you might find!

  • Calculating colour percentages

    Is there a way of viewing what percentage of your canvas a single colour uses?
    For example, if i have a design that's red, blue and yellow, is there a way to see a percentage of how much each colour value is present? (Ie. 20% red, 35% blue, 45% yellow)
    Thanks for any answers in advance!

    There may be easier ways but worst case you could
    • set the Magic Wand Tool to 0 Tolerance, Anti-alias false, Contiguous false
    • hit a pixel of the intended color
    • check the Histogram (Pixels)
    Of course this would not work so well if you meant "shades of a color" …

  • Forms, Calculations and Percentages

    I am using Acrobat XI Pro. I am trying to calculate some items for an order form. It will be the (Quantity * Unit Price)*(Discount*-1). The discount it a percentage. However, the form keeps turning the percentage from 20% to 2000%. Then when it does the calculation in the Savings field it comes out as a negative number in the hundreds. How would you do this type of thing? I have tried both simplified and custom script. Neither have worked. The TOTAL field will be (Quantity*UnitPrice)+(Savings)
    So it should read across Quantity=2 UnitPrice=$50.00 Discount=20% and Savings=$10.00
    Thank you in advance for any help
    Ellen

    Percentages are entered in as decimal values and the formatting of a field makes the adjustment of the decimal place and adding the "%" symbol. If you want to try and do the math yourself, you will be doing a non-standard operation and need to write more scripts and more debugging to handle your code.

  • Formula for calculating aggregate percentage and percenatge of gender

    hi all
    i have a sp from which i get result columns  gender,percentage,studentcount,year
    my sp is like this..
    IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[usp_GetState]') AND type in (N'P'))
    DROP PROCEDURE usp_GetState
    GO
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    CREATE PROCEDURE [dbo].[usp_GetState]
    ( @ExamYear Smallint
    ,@ExamType Nvarchar(10)
    AS
    BEGIN
    SET NOCOUNT ON;
    WITH cte_Schools AS
    SELECT
    [Foreign]= CASE WHEN M.Zone ='F' THEN 'Y' ELSE 'N' END
    ,CASE WHEN M.Zone ='F' THEN UPPER(C.CountryName) ELSE UPPER(S.StateName) END StateName
    ,COUNT( DISTINCT M.SchoolCode) Schools
    ,SUM( M.Nos) Students
    FROM rptFinalResultSummaryMaster M
    LEFT OUTER JOIN State S ON M.StateCode=S.StateCode AND M.Zone=UPPER(LEFT(S.Zone,1))
    LEFT OUTER JOIN Country C ON S.CountryId= C.CountryId
    WHERE M.Year=@ExamYear AND M.CourseCode=@ExamType
    GROUP BY CASE WHEN M.Zone ='F' THEN 'Y' ELSE 'N' END
    ,CASE WHEN M.Zone ='F' THEN UPPER(C.CountryName) ELSE UPPER(S.StateName) END
    SELECT
    SlNo=ROW_NUMBER() OVER(PARTITION BY [Foreign] ORDER BY StateName)
    ,[Foreign] ,StateName, Schools, Students
    , Percentage = (Students/(SELECT SUM(Students)*1.000 FROM cte_Schools))*100
    FROM cte_Schools
    ORDER BY [Foreign],StateName
    END
    GO
    now..i wrote formula for percentage  and when i connected this sp to my rdl where i took tablixi gave percentage value to gender and total percentage column
                                           gender(column group)                      
    total
    number   percentage
    passcategory         
    this is my tablix format
    my output looks like
    boys     girls                                     
    total
    number(percentage)
    passcategory1  (percenatge)                        21 (40.38)          43 (56.75)          
           64(48.56)          
    passcategory2   (percenatge)                       11  (21.15)         10    (13.51)               31(17.33)
    passcategory3    (percentage)                       20 (38.46)         21    (28.37)               41(33.41)
    total                     (percentage)                     
    52(xxx)           74  (xxx)                     136   (100%)
    i'm not getting thegender percentage properly for girls and boys total percentage of boys and girls coming correctly but individual percentage is not properly coming...that's because in sp i gave calculation for only total percenatge ..how can i calculate
    the individual percentage of girls and boys in single column...so that i can place in gender column in tablix..and i can retrieve individual percentgaes of girls and boys seperately as shown in output..
    please reply..its urgent
    thanks in advance..
    lucky

    please reply..its urgent
    Here is a tip: if you want to tick off people from helping you, you should absolutely include "urgent" in your post. That's a good way to encourage people to move to the next post. I did see this one earlier today, but did not have the time.
    Anyway, I cannot really make out heads or tails of your question. Your output takes about gender, but I cannot see it in the output from the query, which appears to group by "Foreign" and StateName. How does the boys and girls get into the picture?
    And for that matter that "totals" column?
    Erland Sommarskog, SQL Server MVP, [email protected]

  • Microsoft`s definition of 「All Instance」 for calculating average percentage of CPU usage is a mystery for me !!!.

    Hi, I was looking up in the 「How to Auto Scale」 document
      http://azure.microsoft.com/en-us/documentation/articles/cloud-services-how-to-scale/
    and got stuck in the below paragraph, the part that describes how to calculate the
     average percentage of CPU usage. 
    ==========
    All instances are included when calculating the average percentage of CPU usage and the average is
    based on use over the previous hour. Depending on the number of instances that your application is using, it can take longer than the specified wait time for the scale action to occur if the wait time is set very low. The minimum time between scaling actions
    is five minutes. Scaling actions cannot occur if any of the instances are in a transitioning state.
    ==========
    Does any one know the microsoft`s definition of 「All Instance」 ?
    Whether the virtual machines that are shut down but has been set into auto scaling group count as one of them?
    The question is that the response time, the data shows up in the management portal delays a lot comparing to the
    real time. I was wondering if the definition of the calculation described above is truly what the user`s want or not.
    I`m all ears to any information. Thanks in advance !! 

    Hello Tomo Shimazu,
    Instance is a presence of a service eg :- VM is an instance. Copy of VM is another instance which is 2 instances of VM.
    Although Microsoft’s pricing model is readily available and even offers a simple calculator (http://www.windowsazure.com/en-us/pricing/calculator/advanced/) to assist
    in the process, it may be difficult to know how much of each resource you will need to get an estimate.
    To understand on calculating the compute instances and the VM size, let’s first take a look at the VM role sizes offered by Microsoft.
    The prices per month for each, at the time of writing, are $30, $90, $180, $360, $720 from ExtraSmall to ExtraLarge respectively. So with the exception of the
    transition from ExtraSmall to Small, going to the next size VM is exactly twice the cost, which, is mirrored in the increase of resources you get at each level. With each step, CPU Cores, Memory, Disk Space, and Bandwidth are all doubled from the previous.
    If this is the case, then, is there any advantage to any one of these over the others? The answer is yes. In the majority of cases, the best bet will be to go with the small instance, with the reason being that because all of these resources scale equally
    to cost it is possible to achieve the exact equivalent to a larger VM simply by increasing the number of instances. For example 8 small instances is equivalent to one ExtraLarge instance, with the advantage of the fact that when not needed these small instances
    can be turned off and will cost nothing.
    By hosting the application in this manner, it increases the effectiveness of the number one reason that a business would transition to the cloud anyway – Scalability.
    Obviously 16 smaller instances can be more finely adjusted to the application’s usage than 2 ExtraLarge can. If traffic gets higher or lower than expected, two Small Instances can be added at $180/mo for the time that they are running, versus adding another
    ExtraLarge for $720/mo.
    The only exception to using the smallest instance, is in the case of the ExtraSmall, which offers only 1/20 of the bandwidth of the Small, making it only feasible
    for very lightly accessed applications or, more likely, a QA environment.
    From this point, it becomes much easier to estimate the compute instance requirements of migrating the application to Windows Azure. Take the current server(s)
    total resources (CPU, RAM, etc) and find how many Small instances it would take to recreate it. This gives a good starting point, however, remember that these instances can be turned on and off to meet demand, and beyond the first instance, there is no charge
    when the instances are off. This can lead to significant cost savings, and is the primary incentive to migrating to the cloud.
    For azure pricing information, refer
    pricing details.
    If you still unclear about pricing and billing, you may raise a service request with billing team
    here
    Hope this helps.
    Regards,
    Shirisha Paderu

  • Calculating a percentage of change from one day to the other

    I'm working on a report that is grouped by date. What I'm trying to is calculate the difference between one day to the next. But when I try to do the formula it's thinks it's calculating against itself...
    Group by Date: 9/1 = $100
                           9/2 = $80
    Subtotal =              =0.20%

    Please give the formula details to check.  I think you are not multiplied with 100 in your formula.
    Regards,
    Sastry

  • Calculation of Percentage in Report CN41

    Hi Sir,
    How is Processing % of work & Processing % of duration  is Calculated in Report CN41
    Regards,
    Gagan

    Processing%  of Duration
    For the network activity:
    Activity is finally confirmed-> Degree of processing duration  = 100
    Activity is partially confirmed-> Degree of proc. duration = 100 x actual duration divided by (actual duration + remaining duration)
    Activity is not yet confirmed-> Degree of processing for duration = 0
    For the WBS element:
    If no actual finish date is entered-> Degree of processing for the duration = 0
    If no actual finish date is entered-> Degree of processing for the duration = 100
    Processing% of Work
    Activity is finally confirmed-> Degree of processing = 100
    Activity is partially confirmed-> Degree of processing = 100 x actual work/forecasted work
    Activity is not yet confirmed-> Degree of processing = 0

  • Calculating the percentages

    Hi Experts,
    Im working on BI7, i have a scenario in which i have to do some calculations.
    I have ODS and a realtime Infocube, from ODS we are getting one KF and from RT Infocube we are getting 3 kfs and 3 more KF's have to be calulated based on the Calculation factor which is comming from RT infocube.
    We are loading RT infocube 1st into the target.
    Now my question is if i have to write the code to populate the 3 KFs where will i write the code? in 3.5 we will write in the start routine or in the field routine. im not sure where will we write the code in BI7.
    Can someone advise me where to write this code?.
    Your help is very much appreciated
    Regards
    BN

    refer: https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/6090a621-c170-2910-c1ab-d9203321ee19 step by step guide, it explains what all places in BI we can write routine and significance of each.
    You can either in the start routine while your loading from your Real Time Cube to InfoCube or in the Rule Details in the transformation for those KF's

  • Calculating growth percentage in a pivot table

    I have a pivot table with the following data generated by a pivot table of customer and sales data. The pivot table is showing the 2010 and 2009 data.
    Sales
    Customer 2010 2009
    ABC 1000 800
    DEF 2000 1000
    How would I get the calculation to show the % growth from 2009 to 2010 shown below ??
    Sales
    Customer 2010 2009
    ABC 1000 800 25%
    DEF 2000 1000 100%
    Thanks for any help

    Re: how to Make a report from two cubes
    This link will help you.

  • Percentage calculation in bmmlayer

    hi i'm stuck in calculating the percentage..
    I have two colomuns in bmm layer one is student count and another rfstudent count.
    student count gives all the students for the year 2010 whose composite score is 3 and rf student count gives count of all the students whose composite score is in 3,2,1 ,,,,ineed to calculate percentage of these two coloumns
    soemthing like this student count whose CS is 3/student count whose CS is 3,2,1 and ineed to develop in bmm layer creating another logical colomun says % student count

    Hi,
    Move the student count and rfstudent count to Fact table and give the Aggregation as count for both columns.
    Now Create a new logical column in Fact table of BMM layer - called *%Column* and then do the calculation for %Column.
    Thanks,
    Balaa...

Maybe you are looking for