Problem with Crosstab Cumulative percentage

Morning all,
I have setup my report based on Sales Area (Group) and used Cross tab to show each area's Number of days, Jobs and percentages.
I wanted the percentage to be cumulative so I used a formula on Display String of the Percentage section.
However, the new cumulative percentage doesn't seem to be working properly.
For example, at some places the percentage is showing as 100% where as the Currentfieldvalue = 1 and Total Value = 252 (which makes it to 0.39% and not 100%).
Could someone please look into the formula and provide me with some sort of suggestion/solution to this issue?
Here is the formula
Whileprintingrecords;
Numbervar h:=Currentfieldvalue;
Numbervar g:={@TotalJobs-CanceledJobs};
Numbervar b:=0;
b:=(h/g)*100;
Numbervar gTot:=b+gTot;
if gTot > 100 then "100.00%" else
totext(gTot,2) + "%";
if I remove gTot > 100 then "100.00%" the value changes to 105.1% which is again incorrect.
Regards
Jehanzeb

Sastry thanks for you kind and quick reply.
That gTot is just a variable so that I can add the next value of the field.
For example,
numbervar x:=x+currentfieldvalue
If I use
Whileprintingrecords;
Numbervar h:=Currentfieldvalue;
Numbervar g:={@TotalJobs-CanceledJobs};
Numbervar b:=0;
b:=(h/g)*100;
totext(b)+"%";
This gives me the correct percentage however not cumulative. What I would like to acheive is the cumulative percentage instead of normal percentage.
Example of report
Days - 12345
Jobs  - 13421
%     -  1% 2% 3%
What I would like to get is
Days - 12345
Jobs  - 13421
%     -  1% 3% 6%
See the percentage is getting added up to the next field value.
12 = 3, 12+3 = 6 and so on
Regards
Jehanzeb

Similar Messages

  • Problem with Non-cumulative key figure.

    Hi all,
    I am facing the problem with the Non-cumulative Key Figure (Quantity). I have created and loaded data to the non-cumulative InfoCube. <b>This cube is defined by me to test the non-cumulative key figure.</b>
    <b>In BEx query the non-cumulative key figure and cumulative key figure (Value change) both display same values, i.e. non-cumulative key figure contains the same values which we have loaded for cumulative value change. Non-cumulative key figure is not calculated based on associated cumulative key figure.</b>
    I have done the following while defining the non-cumulative InfoCube:
    1. Created a non-cumulative key figure which is associated with a cumulative key figure (value change).
    2. Loaded data to non-cumulative InfoCube from flat file.
    3. Compressed data in non-cumulative InfoCube after the load.
    Note:
    1. Validity area is determined by the system based on the minimum and maximum date in data.
    2. Validity determining characteristic, 0CALDAY is the default characteristic selected by the system.
    Is there any other settings to be done?
    Please help me in resolving this issue.
    Thanks and regards
    Pruthvi R

    Being a non-cumulative KF, total stock is automatically takes care of that.
    Try putting all the restrictions which you have included for total receipts and total issues, for eg,  restrict Total Stock with the movement types used in Receipts as well as Issues.
    Check and revert.
    Regards
    Gajendra

  • Problems with Non-cumulative Cube

    Dear All,
    I have a cube with non-cumulative key figures. An DSO supply data for that cube.
    The query  on that cube will  gets wrong results sometimes. But after removing all the data from that cube and uploading again from the DSO, the query presents the right result.
    Is there anybody knows why and how to fix it?
    Thanks.
    Bolun

    Hi
    Non-cumulative Cubes to be defined correctly with Inflow and Outflow because it depends on Which option you choose depends on how you want to evaluate the non-cumulative key figure, and also the Marker Update you are dealing with.
    The key figures for non-cumulative value change or for inflows and outflows are normal cumulative key figures that have u2018summationu2019 both as aggregation and exception aggregation.  Generally, Non-cumulative key figures always have summation as standard aggregation.
    http://help.sap.com/saphelp_nw04s/helpdata/en/80/1a6305e07211d2acb80000e829fbfe/frameset.htm
    Hope it helps and clear

  • Problem with non cumulative KF

    Hi All,
    I have some problem in the calculation of non cumulative KF. The fields it uses for inflow and outflw as same value in SAP system but the nom *** KF is showing a different value For eg. it uses receipt total stock as inflow and quantity total stock as outflow. The value for receipt total stock is 3309000 and that of quantity total stock is 3588850. But the non *** KF is being shown in report as 8483410. Can anyone pls explain troubleshoot. Please provide me quick responses.
    Thanks in advance,
    Sananda

    Dear Dirk,
    Thanks for response.
    Describe please what do you mean as "use cumulative instead of non-cumulative"?
    My cube is material stock by storage location, stocks by storages define as non-*** KF on in- and out-comes. I need in BEx real quantity and value stocks independently of the query navigation detailed level.
    Are there ready-made apropriate BEx implementaions from SAP for my case?
    About virtual KF - I've nevere before didn't use virtual KF. From what I'll must to start? Where I can search appropriate knowledge?
    Kind regards,
    Igor Podgibalov,
    Saint-Peterspburg, Russia

  • Problem with crosstab-graph

    Hi All
    I created a crosstab/graph combo report and my problem is , i have 2 data points
    a)number of firms b)number of days. Is there any possible way where in i can only display the number of days in the graph and not the number of firms?Any advice will be of grt help.
    Thanks

    Hi
    In Discoverer we do not have control over graph. all the items you have in your report will be displayed in your graph. you can create a new worksheet that contains only the item you want to be displayed.
    Thanks
    Mohamed

  • Problem with CKF(cumulated)

    Hi all,
    i have one CKF% which is (Qty/total Qty)*100.and i have taken same CKF% in one more column as 'cumulative CKF%'(checked 'cumulated' in ckf propertis.).so i have two columns CKF% and Cumulative CKf%.
    now i want to see cumulative CKF%<70.but its performing same operation on CKF% instead of Cumulative CKF%.
    how to  get rid off this.
    regards

    Hi,
    here is the example.
    i have CKF and CumCKF(cpoy of CKF which is marked as 'cumulated' in properties of CKF).
    CKF CumCKF
    2    2
    3    5
    4    9
    Now try to cretae a formula CumCKF*2  which should give
    NewFormula
    4
    10
    18
    But here what happens is it takes values from CKF instead of CumCKF and gives as
    New formula
    4
    6
    8
    and i noticed that even i can create condition or exception based on CumCKF values,even if u take CumCKF,it performs on values from CKF only.
    any comments?
    regards

  • OBIEE 11G - problem with calculating percentage

    Hi,
    I have a problem with calculating a percentage....
    I have a 2 measures Success and Failure
    where Success is a count(Response_key)
    Failure is a count(failure_key)
    I want Success/(Success+Failure) * 100
    I am getting this value as a 0
    Infact any column I take from the subject area and say count of that column and divide it by any integer say count(column1)/5 ,Say count of that column1 is 132 Eg: 132/5 , Its showing this value as 26.00 when I put decimal value to 2 , but it is 26.4...It is avoiding decimal values .
    So in my case success/(success+failure) in which Dr is greater than Nr . Since we get the value as 0.something . It is showing 0 value
    So , 0*100 it is showing me as 0%
    Can anyone please help me on this ??
    --Siri                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Yes, you need to put cast in numerator alone to get the resultant output in double.
    You can mark the post as Correct since your issue is resolved now.
    Thanks

  • Problem with field  KONWA-Rate Unit(Currency or Percentage) of table KONP

    Hi Gurus,
    I m facing problem with field 'KONWA -Rate Unit (Currency or Percentage)' of table KONP. This field is showing ‘Currency’ and '%' both in table KONP. For some materials its showing currency value and for some its showing '%'. Due to which its creating load problems. My question is how this '%' is coming (means is there any calculation behind that or something else) in table KONP and how can I identify this.
    I am sure u will have the answer for this question so Thanks in advance.
    Message was edited by:
            Amit Rajput
    Message was edited by:
            Amit Rajput
    null

    Hi,
    take the following example: you sell liquor to customers; in your country, when you sell liquor your company is entitled to pay customs and excise fees to governamental authorities.
    These excises and duties are a percentage of the retail price. You'll then create such a condition record with this rate so that you calculation schema will post the correct value during the processing of billing documents...
    hope this shed light
    Olivier.
    Message was edited by:
            Olivier Cora

  • Problems with Adding Fields/Columns to Crosstab in XI

    Post Author: ph03nix
    CA Forum: General
    I am having problems with formatting a crosstab report in CRXI and am hoping that someone has a solution. 
    The crosstab report is a subreport, and requires the following columns, grouped by Firm (also not working optimally, but at least working):
    Evaluator,   Factor1Rate,&#91;Factor2Rate, .., FactorNRate&#93;, Summary, UpdateDate, UpdatedBy
    Where:
    Evaluator is the person that did the evaluation that resulted in each rating (formula field)
    Factor1Rate, etc, may have one, many, or all of these be applicable - there can be up to 15 of these.  Each FactorRate column is to  display the "rating" given by the Evaluator in the corresponding row/column (this much works).  The table heading is a formula, but the corresponding rate is not.
    Summary should display "Complete"  if and only if there is a Comment field (not displayed) filled out for each FactorNRate that has a value of 0, 1 or 5 - otherwise it is blank
    DateEntered is one of 2 fields ("last_updated" , or "creation_date" if  last_updated is null - a formula field)
    UpdatedBy is the last name of the person who last touched the ratings (formula field)
    I have gotten the FactorRates to display in the headers, and gotten the corresponding rates to display underneath them, but I cannot seem to add any other columns to the report - they are either added as headers with the factor_rating columns repeated as subgroups (with incorrect data), or are added under existing headers with duplicates of the ratings.  I just want to add one column for each field as if it were a normal (non-crosstab) table. 
    TIA!

    the 3 last files
    Attachments:
    Z1&Z2.vi ‏19 KB
    tau_inn (SubVI).vi ‏16 KB
    tau_ut (SubVI).vi ‏10 KB

  • Problem with Stacked Percentage Bar

    Hello,
    We are having a lot of trouble with the Stacked Percentage Bar chart. Our chart has 2 series, one for Yes values, and one for No values. The query for each series is a PL/SQL returning a SQL query. Right now, nothing shows up on the graph. It is just an empty area. Here are the queries for the 2 series:
    YES SERIES:
    DECLARE
    tmpSQL varchar2(2000);
    BEGIN
    -- CONSTRUCT SQL STATEMENT
    tmpSQL :=
    'select null link,
    FIELD1 label,
    COUNT(' || :P23_ITEM1 || ') value
    from
    TABLE1, TABLE2
    where
    TABLE1.ID = TABLE2.ID
    AND
    (' || :P23_ITEM1 || ' = 1 ) group by '
    || :P23_ITEM1 || ', FIELD1 ';
    return tmpSQL;
    end;
    NO SERIES
    DECLARE
    tmpSQL varchar2(2000);
    BEGIN
    -- CONSTRUCT SQL STATEMENT
    tmpSQL :=
    'select null link,
    FIELD1 label,
    COUNT(' || :P23_ITEM1 || ') value
    from
    TABLE1, TABLE2
    where
    TABLE1.ID = TABLE2.ID
    AND
    (' || :P23_ITEM1 || ' = 2 ) group by '
    || :P23_ITEM1 || ', FIELD1 ';
    return tmpSQL;
    end;
    We'd appreciate any help.
    Thanks,
    Nora

    Here's my result with six values in a single series. I double clicked the last bar to change its colour from the default grey (which was visible) to magenta.
    Numbers 2.0.3, iBook G4, OS X v10.4.11
    (Shot in the dark:) Try double clicking the value label, then changing the order position of this item.
    Regards,
    Barry

  • Help with add file name problem with Photoshop CS4

    Frustrating problem: Help with add file name problem with Photoshop CS4. What happens is this. When I am in PS CS4 or CS3 and run the following script it runs fine. When I am in Bridge and go to tools/photoshop/batch and run the same script it runs until it wants interaction with preference.rulerunits. How do I get it to quit doing this so I can run in batch mode? Any help is appreciated. HLower
    Script follows:
    // this script is another variation of the script addTimeStamp.js that is installed with PS7
    //Check if a document is open
    if ( documents.length > 0 )
    var originalRulerUnits = preferences.rulerUnits;
    preferences.rulerUnits = Units.INCHES;
    try
    var docRef = activeDocument;
    // Create a text layer at the front
    var myLayerRef = docRef.artLayers.add();
    myLayerRef.kind = LayerKind.TEXT;
    myLayerRef.name = "Filename";
    var myTextRef = myLayerRef.textItem;
    //Set your parameters below this line
    //If you wish to show the file extension, change the n to y in the line below, if not use n.
    var ShowExtension = "n";
    // Insert any text to appear before the filename, such as your name and copyright info between the quotes.
    //If you do not want extra text, delete between the quotes (but leave the quotes in).
    var TextBefore = "Lower© ";
    // Insert any text to appear after the filename between the quotes.
    //If you do not want extra text, delete between the quotes (but leave the quotes in).
    var TextAfter = " ";
    // Set font size in Points
    myTextRef.size = 10;
    //Set font - use GetFontName.jsx to get exact name
    myTextRef.font = "Arial";
    //Set text colour in RGB values
    var newColor = new SolidColor();
    newColor.rgb.red = 0;
    newColor.rgb.green = 0;
    newColor.rgb.blue = 0;
    myTextRef.color = newColor;
    // Set the position of the text - percentages from left first, then from top.
    myTextRef.position = new Array( 10, 99);
    // Set the Blend Mode of the Text Layer. The name must be in CAPITALS - ie change NORMAL to DIFFERENCE.
    myLayerRef.blendMode = BlendMode.NORMAL;
    // select opacity in percentage
    myLayerRef.opacity = 100;
    // The following code strips the extension and writes tha text layer. fname = file name only
    di=(docRef.name).indexOf(".");
    fname = (docRef.name).substr(0, di);
    //use extension if set
    if ( ShowExtension == "y" )
    fname = docRef.name
    myTextRef.contents = TextBefore + " " + fname + " " + TextAfter;
    catch( e )
    // An error occurred. Restore ruler units, then propagate the error back
    // to the user
    preferences.rulerUnits = originalRulerUnits;
    throw e;
    // Everything went Ok. Restore ruler units
    preferences.rulerUnits = originalRulerUnits;
    else
    alert( "You must have a document open to add the filename!" );

    you might want to try the scripting forum howard:
    http://www.adobeforums.com/webx?13@@.ef7f2cb

  • I have three problems with Firefox 3.6.8 that 3.6.9 hasn't fixed: 1) Firefox has stopped responding to any and all javascripts, 2) Firefox won't play any embedded videos, and 3) Firefox won't let me open up new windows.

    Every new link has to be opened in a new tab, or nothing happens. No matter how I try, I can't open more than one window with Firefox. Worst of all, if I surf the Internet for more than an hour, all these problems have a cumulative effect and Firefox simply crashes. I'd uninstall 3.6.9 and reinstall 3.6.6 (which gave me no problems) if I could only figure out how to save and export all my passwords and user IDs first -- that's way too much to have to input again from scratch!!

    Do you have that problem when running in the Firefox SafeMode?
    [http://support.mozilla.com/en-US/kb/Safe+Mode]
    ''Don't select anything right now, just use "Continue in SafeMode."''
    If not, see this:
    [http://support.mozilla.com/en-US/kb/troubleshooting+extensions+and+themes]

  • Help with multiple date percentage report

    Dear all,
    I am having problems with getting percentage right on my report which is set to YTD however I am counting records for Last 5 days, Last 4 weeks and Current Date.
    I am getting the records perfectly right as I have created 3 different Groups for them. The Running Totals are counting the correct number of records.
    As I have two Running totals for each job (Credit Job + Free of Charge Job), these two jobs are getting added up in the report.
    For example
    YTD formula
    Running total of Credit Job + Running Total of Free of Charge Job = Total Jobs
    Last 5 Days formula
    Running total of Credit Job + Running Total of Free of Charge Job = Total Jobs
    Last 4 Weeks formula
    Running total of Credit Job + Running Total of Free of Charge Job = Total Jobs
    Current Date formula
    Running total of Credit Job + Running Total of Free of Charge Job = Total Jobs
    To get the grand total of these records, I have created another formula which counts all the above YTD records, L5D records and displays them in the report footer. Grand Total is showing up correctly.
    Now, What I want is the percentage of each record, i.e. the percentage of YTD records, L5D records etc.
    I have created a formula which counts the percentage but incorrectly.
    Here is the formula
    Whileprintingrecords;
    Numbervar b:=0;
    numbervar n:=0;
    numbervar m:=0;
    b:={@TotalJobsFOCRL5D}; // this is total job, (Credit+Free of charge jobs)
    n:={@TotalJobsFOCRL5DGT}; //GT is the grand total showing in report footer
    If b=0 then 0 else //if total jobs = 0 then answer is 0
    m:=(b/n)*100; // divide total jobs with grand total
    totext(m,2)+"%"; //show as percentage
    This formula does show the percentage but divides each job by itself. So if Total Jobs = 9 then it shows 100% whereas Grand Total is 479.
    Could someone please help me getting the correct percentage.
    The percentage formula is placed on the respective group footer.
    Regards
    Jehanzeb

    closing no reply

  • Problem with multiple group functions

    Hello Everyone...
    I have a huge problem with trying to create a report.
    Here is the situation:
    1. I have a database that registers certain events for units. Each event is stored in a separate register.
    2. There is a specific code that the units have that I need to identify their origin, because they must be grouped by origin. The origin is identified by the first digit of the code. This code only appears in the events that occur after production.
    3. Before that, an order number is used to identify the events.
    4. What I need is to identify the time difference between two specific events, and get the following: average, standard deviation, count, and level of service. The level of service is the percentage of units in which the difference was no higher than the average plus the standard deviation.
    I managed to create a query that does that, but it is too slow.
    Since I can't reveal my code, I will try to explain in words what I did:
    1. I created two almost identical queries that obtain the event information I need. The first one obtains the information of the event that occurs the earliest. (let's call this queries 1 and 2)
    2. As this is supposed to be a generic query that only needs to be modified for different events, it contemplates the case that the event is before production and does not include the specific code I mentioned earlier. So I created another query that uses the order number and looks for a (later) production event to obtain that code. (let's call this query 3).
    3. Then I obtained count, standard deviation and average for the difference between events.
    4. Then, for the service level, I had to create an outside query that again uses queries 1, 2, and 3 because it needs the information of individual units to calculate it. So here is the structure of my query, using some pseudocode (I'm not revealing any actual code):
    Select (averagestd.origin, average, stddev,
    sum(case
    when abs(q2.vehicle_event_dt - q1.vehicle_event_dt -
    average) <= stddev then
    1
    else
    0
    end) / count service_level from
    (select q1.origin,
    avg(q2.vehicle_event_dt -q1.vehicle_event_dt),
    stddev(q2.vehicle_event_dt - q1.vehicle_event_dt),
    count(*) from
    (select {event data} from query1, query3 where
    query1.order_number = query3.order_number) q1,
    (select {event data} from query2, query3 where
    query1.order_number = query3.order_number) q2
    where q1.order_number=q2.order_number) avgstd,
    (select {event data} from query1, query3 where
    query1.order_number = query3.order_number) q1,
    (select {event data} from query2, query3 where
    query1.order_number = query3.order_number) q2
    where q1.order_number = q2.order_number and
    q1.origin = avgstd.origin
    The database is huge and it's taking too long to run it.
    Do you have any idea on how can I optimize this query?
    All the information in all queries comes from the same table.
    Thank you very much for your help.
    Eduardo Schnadower

    Okay, so my report is set up as above with 4 groups
    group 1 group code
    group 2 sub group code
    group 3 customer code
    group 4 product code
    what i need to be able to do is select the sub group total and run a sub report to display the products total for that sub group and then the same for group, run a report from the group total to show the products which make up that group total. Is there any other way to acheive this?
    Cheers Paul

  • Problem with rounding in standard cost estimate.

    Hi All,
    Happy 4th of July!
    I have a problem with the standard cost estimate where the system try to calculate overhead costs (from costing sheet) with a fix percentage (9.7%) to the value coming from material consumption costs element.
    Let say I have $1.71 material consumption and the overhead rate of 9.7%
    The real calculation should be (1.71*0.097) = $0.16587
    But at CK11N screen, it shows only $0.16 (two decimal rounding)
    Is there a way that I can bump the rounding to at least 3 decimal point to make it more accurate?
    Very appreciate any input you guys can share. Thank you.
    Charitha

    Hi Chari ,
    My experience says that you can use only 2 decimals ..
    Moreover , please have a look into SAP Note : 639410 - CK11N, CK13N: Message CK869 due to rounding
    differences.
    There a some source code corrections also on rounding differences- check if it helps you also...
    Regards
    Sarada

Maybe you are looking for

  • No longer able to export .snd or System 7 .sfil audio files

    I don't know what version of Quicktime or OS X removed the export option, but I can no longer create .snd or System 7 .sfil audio files using the Quicktime export feature. Any suggestions as to how I can convert any newer sound file format to this ol

  • OIM - DOBJ.GRP.PERMISSION_ERROR

    Hi OIM Experts, Happy New Year to All. I am new to OIM. I had a requirement for Auto Provisioning Based on Roles in OIM. I am getting the error "DOBJ.GRP.PERMISSION_ERROR" while i am editing the value in OIM User Form. 1. I have a User Defined Field

  • Is auto-hyphenation included in Lightroom 5 Book module ?

    The Book module is almost very good indeed but seems to lack some basic text functions that anyone could benefit from: flowing paragraphs, as in InDesign, such that hyphenation makes for better text blocks, for instance. Or guides such that you can p

  • "Song could not be used...."

    I hope someone can help me!! Every time I try to play a song directly from itunes I get the message: "The song could not be used because the original file could not be located. Would you like to locate it?" If I answer yes it still will not allow me

  • Suitable Pre-amplifier for my Audigy 2

    Hi there,?at present I am wanting to purchase a pre-amp to use with my Audigy 2 NX soundcard. I have tried to use my dynamic Shure microphone with the soundcard, but realised that I need a pre-amp for the mic, as the frequencies of dynamic profession