Problem with rating calculation

Hello

I am creating a crosstab report shows the Top N amounts by seller grouped by periods of aging. Aging periods are defined with a CASE, and I created a separate calculation, the total of the amounts by seller of partitioning. I want to classify data according to this calculation, when you use RANK() (PARTITION BY the org ORDER BY total), data are always sorted by the number of time periods, there is an amount (i.e. fabricant1 with 3 times outstanding is assigned rank1, and the next vendor is classified in 4 instead of 2). Help the ROW_NUMBER returns similar results, except that all suppliers are displayed several times for periods as much as it is has outstanding. What I'm missing here? How can I get Scout to ignore multiple lines and sort the data based on the total?

See you soon,.

Arthur

Hello

Uh, I was confused about what you were trying to do and I don't always fully understand your report.

If you want to limit the values in the report to the top of page 10 different values then you can use DENSE_RANK() analytic function in a calculation with PARTITION OF all dimensions, except for the period. Then use a condition to limit the report to the top 10 values. If you want to have only 10 values in your report, you use RANK().

If you want to sort according to the ranking that you will need to include the calculation of rank as a dimension.

You should not have to use analytics and a SCORE OF to calculate totals. These should use the SUM aggregate function.

Hope that helps a little.

Rod West

Tags: Business Intelligence

Similar Questions

  • Problems with date calculation

    I have a java (and much more far vb) background and it seems that I'm really dependent functions for date calculations.  I'm trying to do a few things, but have not been able to accomplish them.

    I do not have

    Calendar.add()
    

    I briefly contemplated an add function by converting into long then do the calculation and returns a new calendar object, but the problems with this approach comes flourishes as soon as I started.  Just trying to find out if a date was yesterday was me banging my head against the wall.

    Any help please?

    I wrote this, but I don't know if there is a simpler method, go to this issue the wrong way, etc.

    public static boolean isYesterday(Calendar c) {
        Calendar today = Calendar.getInstance();
        int newDay = today.get(Calendar.DAY_OF_MONTH);
        if (newDay == 1) { //get last day of previous month
            int newMonth = today.get(Calendar.MONTH);
            int newYear = today.get(Calendar.YEAR);
            /* If jan 1, get dec of last year */
            if (newMonth == 0) { //Java Calendar.MONTH is zero-based
                newMonth = 11;
                newYear -= 1;
            today.set(Calendar.YEAR, newYear);
            }
            today.set(Calendar.MONTH, newMonth);
            newDay = DateTimeUtilities.getNumberOfDaysInMonth(newMonth, newYear);
        } else {
            newDay -= 1;
        }
        today.set(Calendar.DAY_OF_MONTH, newDay);
        return DateTimeUtilities.isSameDate(today.getTime().getTime(), c.getTime().getTime());
    }
    

    'convert to tz to the device.

    I recommend that stick you with using UTC for everything.  If you want to display to the user, then a DateField will convert the hour UTC to local time.  SImpleDateFormat.formatLocal will also print you long time UTC to local time.  So I recommend that you do not have to convert once at the local level.

    Remember that System.currentTimeMillis () is time not UTC/GMT.

    Of course, that's a good advice or not depends on your app.

    I'm not aware of any third-party code that helps, I reinvented wheels square to all my treatment to date.  But I never really looked at.

    About your code, assuming that c calendar uses the local time zone, so I think that the code works.

  • Problem with the calculator on the computer.

    Lately, my Dell keyboard is acting funny. The windows calculator keeps popping up constantly. It is not just for a single key, but it appears to many keys. Breast type these lines 2, 49 of them stood. The reason I can say it is the keyboard when I removed the battery of the keyboard, no pop ups. I went through forums, but I have no admin user in Vista to clean boot. Now there are 79 pop ups. :-)

    Hello

    Check their documentation online with Dell Support, and ask in their forums. You
    may be able to clean the keyboard if it is the problem, or remove the calculator
    function.

    Dell support
    http://support.Dell.com/

    Dell support drivers - product manual & warranty Info (left side) - and much more
    http://support.Dell.com/support/index.aspx?c=us&l=en&s=DHS

    Dell forums
    http://en.community.Dell.com/forums/

    Dell PC Diagnostics
    http://www.Dell.com/support/Diagnostics/us/en/19/ I hope this helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle="" -="" mark="" twain="" said="" it="">

  • Problem with the calculation of RANK

    I have two columns country & recipes. I am calculating the rank of the country based on income.
    I am able to get the rank. on this report, there is a quick filter 'country '.
    When I select any country it always gives me grade 1 because after applying the filter only check is coming and Rank is based on the document that is not corect...

    Any help?

    Hi AEK.

    I have a medium crude to achieve. The problem is RANK () are applied to WHERE clause resultset.
    Thus,.
    1. create a column that's concat (country, rank (back)). Lets say this column name is "countryrank".
    2. now apply the filter on this column--> "countryrank" begins with c2
    3. hide this column in your report
    So now the filter would be applied until the grade is assessed.

    There might be a better way may be.

    Concerning
    Monika

  • Problems with the calculations through many pages

    I have a form with 12 pages. Calculated on page 8 of calculations must be part of the new calucations on page 2. I continiue to receive error messages indicating the total 12 page boxes are not known. When I move the caluation to do on page 12, it does not recognize the total boxes necessary for the calculation of page 2. Help, please. Page 8 in the total costs that must then be divided by the total requested on page two, for a percentage of the demand. Application is attached.

    Thank you

    Sheila

    Hello

    There are a few fields of totals, so I'm not sure which one you want.

    However, when you selected the field, click on in the script editor. Then scroll down to page 8, so that you can see the total field you want to reference. Then you click on the Publisher and then with the mouse on the field total you want to press and hold Control. This will change the pointer in a 'V '. Then you select the field now, it fills the full reference of the field in your script.

    I recommend checking that total expenditures below the line is not 0 or null or you will get an error. I assign the node solved in a variable and then make reference to this variable in the if statement and the calculation.

    var vTotalExp = xfa.resolveNode("FinancialExpenses.Subform14.#area.#area[1].ActualTotalExpenses")
    
    if (vTotalExp <> 0 and vTotalExp <> null) then
         (TotalRequest/vTotalExp)*100
    endif
    

    Hope this helps,

    Niall

  • VBAI problem with the calculator tool

    Concern / tested with: VBAI2010 (build 1014091017 2010)

    This will be fixed in the next version, but there is a solution:

    Close VBAI
    Open the file Builder.ini of Vision located here: C:\Program Files (x 86) \National Instruments\Vision Builder HAVE 2010 and set the hideBDPopupMenus = False
    Restart VBAI

    -Christophe

  • Problem with the calculation of field

    To create a calculated field. Clicked on Pike. The field selection screen will allow me only to choose Select All won't let me choose individual fields

    Use the SPACEBAR to check the individual box of a field or click a little

    on the way to the center of the box. This is a known bug.

    The game, February 4, 2016 to 20:48, brecka20053206 [email protected]>

  • Problem with the calculation script - dividing one field (a number) but another field (a number that corresponds to a sum of other fields)

    I have a table that contains the users to enter the number of books in a type of food (Fruits & vegetables, products dairy, protein, grains, etc.). There are 8 fields whose amounts are totaled in a field (PoundsTOTAL) using the calculation of "value is the sum...". ».

    The question that I am running is that for each type of food, there is also a percentage field that indicates the percentage of the total books that represents the type of food. If I used the simplified field notation (PoundsDairy / PoundsTotal * 100) I get the dreaded "the value entered does not match the format of the field" because the PoundsTOTAL field is 0 until someone between numbers in the fields above him. I tried using the code I found on this forum, but it does not work for me (I do not know I did something wrong). I enter a number like 500 in the field of the PoundsFV and the PercentFV field shows nothing.

    Here is the code I use for one of these calculations:

    (function () {}

    Get the field values as numbers

    var lbsfv = + getField("PoundsFV").value;

    var lbsttl = + getField("PoundsTotal").value;

    Perform the calculation and the value of this field will cause

    If (lbsttl! == 0) {}

    Event.Value = lbsfv / lbsttl;

    } else {}

    If lbsttl = 0, this field blank

    Event.Value = "";

    }

    })();

    For reference, the referenced fields are shown in this image:

    .FormCalcs.jpg

    Your domain is named PoundsTOTAL, not PoundsTotal.

  • problem with the calculation

    Hi Experts,

    I need advice...

    I have a report that has been migrated to 10g and 11g.

    in the report, a measure column is there in what I have the formula like

    SUM (SUM ($. SELL_AMOUNT - IFNULL(dollars.partial_summed, 0)) * $. RATE OF) / SUM ($. SELL_AMOUNT - IFNULL(dollars.partial_summed, 0))

    same formula is used in the 10g and 11g, but aren't matching of data between reports.

    Cani knowledge is one needed changes to the formula in 11 g, such as grouping or something...

    NOTE: when I place the DOLLARS. RATE column in the data in the report aligns with 10g, when I removed the $. FREQUENCY data take place. but I don't need this $. NOTE in the report.

    Sum of mathematical sage ($. SELL_AMOUNT - IFNULL(dollars.partial_summed, 0)) you can go out and just use
    amount (in DOLLARS) RATE).

    Try using the table view Pivot with DOLLARS. NOTE and put this column in the section excluded which may help you.

    If you need to send me screens with column and without checking the data

  • PROBLEM with automatic calculation program

    Hello

    I presented the Master program of automatic bill of back-end with the following parameters but it ends in error.

    Kindly Guide.


    fnd_global.apps_initialize (fnd_profile. Value('USER_ID'), fnd_profile. Value('RESP_ID'), fnd_profile. Value ('RESP_APPL_ID'));

    l_request_id1: = FND_REQUEST. SUBMIT_REQUEST ('AR', 'RAXMTR', 'Auto', null, false
    , 1.24, 'property Manager batch Source', to_char (SYSDATE,' YYYY/MM/DD hh)
    ,'' ,'' ,'' ,'' ,'' ,'' ,'' ,'' ,'' ,'' ,'' ,'' ,'' ,'' ,'' ,'' ,'' ,'' ,''
    , ",", "Y", ", l_org_id, CHR (0)
    );

    Concerning

    PL post Details of the operating system, database and versions EBS.

    PL see if these MOS Docs can help you

    Example of Script PLSQL to call Autoinvoice Import RAXTRX of program using fnd_request.submit_request in Re (Doc ID 1127399.1)
    Autoinvoice error: USE: PROGRAM ORACLEID REQUEST_ID Y (Doc ID 170729.1)

    HTH
    Srini

  • The problem with the calculation of the average for the recurring value

    My task is to perform analysis, where in the table have ID to which she is assigned 10 measures (1-10) and each has its own value. I have to average of this what I take AVG (as) and I want to say. However, as prompcie Will I choose the second ID and I have two measures 1-10 time what I means account for 20 photos and I want to separate Average (two - each for 10 measures). Is there any possibility of Smash it? The use of a function or collection of rehearsals ?


    It looks like this:


    column 1 | column 2 | column 3 | AVG |


    ID |  Nr.  result | AVG?

    x | 1. 200 | AVG x?

    | 2. 210 |

    | 3. 210 |

    There | 1. 210 | is AVG?

    | 2. 208

    | 3. 200


    In column 4, I want to be avarage but another for id x and another for id y?

    is the result you are looking for:

    If Yes... then avg column formula is AVG (result BY id)

  • Calc problem with fact table measure used in the bridge table model

    Hi all

    I have problems with the calculation of a measure of table done since I used it as part of a calculation in a bridge table relation.

    A table of facts, PROJECT_FACT, I had a column (PROJECT_COST) whose default aggregate is SUM. Whenever PROJECT_COST was used with any dimension, the appropriate aggregation was made at appropriate levels. But, no more. One of the relationships that project_fact is a dimension, called PROJECT.

    PROJECT_FACT contains details of employees, and every day they worked on a project. So for one day, employee, Joe, could have a PROJECT_COST $ 80 to 123 project, the next day, Joe might have $40 PROJECT_COST for the same project.

    Dimension table, PROJECT, contains details of the project.

    A new feature has been added to the software - several customers can now be charged to a PROJECT, where as before, that a single client has been charged.
    This fresh percentage collapse is in a new table - PROJECT_BRIDGE. PROJECT_BRIDGE has the project, CUSTOMER_ID, will BILL_PCT. BILL_PCT always add up to 1.

    Thus, the bridge table might look like...
    CUSTOMER_ID BILL_PCT PROJECT
    123 100.20
    123 200.30
    123 300.50
    456 400 1.00
    678 400 1.00

    Where to project 123, is a breakdown for multiple clients (. 20,.30.50.)

    Let's say in PROJECT_FACT, if you had to sum up all the PROJECT_COST for project = 123, you get $1000.


    Here are the steps I followed:

    -In the physical layer, PROJECT_FACT has a 1:M with PROJECT_BRIDGE and PROJECT_BRIDGE (a 1:M) PROJECT.
    PROJECT_FACT = > PROJECT_BRIDGE < = PROJECT

    -In the logical layer, PROJECT has a 1:M with PROJECT_FACT.
    PROJECT = > PROJECT_FACT

    -Logical fact table source is mapped to the bridge table, PROJECT_BRIDGE, so now he has several tables, it is mapped (PROJECT_FACT & PROJECT_BRIDGE). They are defined for an INTERNAL join.
    -J' created a measure of calculation, MULT_CUST_COST, using physical columns, which calculates the sum of the PROJECT_COST X the amount of the percentage in the bridge table. It looks like: $ (PROJECT_FACT. PROJECT_COST * PROJECT_BRIDGE. BILL_PCT)
    -J' put MULT_CUST_COST in the presentation layer.

    We still want the old PROJECT_COST autour until it happened gradually, it is therefore in the presentation layer as well.


    Well, I had a request with only project, MULT_CUST_COST (the new calculation) and PROJECT_COST (the original). I expect:

    PROJECT_COST MULT_CUST_COST PROJECT
    123. $1000 $1000

    I'm getting this for MULT_CUST_COST, however, for PROJECT_COST, it's triple the value (perhaps because there are quantities of 3 percent?)...

    PROJECT_COST MULT_CUST_COST PROJECT
    123 $1000 (correct) $3000 (incorrect, it's been tripled)

    If I had to watch the SQL, you should:
    SELECT SUM (PROJECT_COST),
    SUM (PROJECT_FACT. PROJECT_COST * PROJECT_BRIDGE. BILL_PCT),
    PROJECT
    Of...
    PROJECT GROUP


    PROJECT_COST used to work properly at a table of bridge of modeling.
    Any ideas on what I got wrong?

    Thank you!

    Hello

    Phew, what a long question!

    If I understand correctly, I think the problem is with your old measure of cost, or rather that combines with you a new one in the same request. If you think about it, your request as explained above will bring back 3 rows from the database, that's why your old measure of cost is multiplied. I think that if you took it out of the query, your bridge table would work properly for the only new measure?

    I would consider the migration of your historical data in the bridge table model so that you have one type of query. For historical data, each would have a single row in the bridge with a 1.0 BILL_PCT.

    Good luck

    Paul
    http://total-bi.com

  • Problem with the iPhone 6 Selfie camera

    I have 6 64 gb silver white iphone I am facing a problem with my iphone selfie camere, I recently see the camera gray Crescent front...

    What can I do

    Is there a case on the iPhone? If so, remove it and take another

    photo. If this clears the problem, either set the camera

    hole in your case, or use another case that does not interfere

    with the case.

    If no case or remove the case does not resolve the problem.

    make an appointment on the Apple store nearest to have rated free iPhone.

    Once the diagnosis is made, staff will explain your options.

    Make a Genius Bar reservation

    http://www.Apple.com/retail/Geniusbar/

  • Problem with a simple integral

    Hi all

    I have 2 problems with a simple integral, and I do not understand how the first HP solves.

    My first problem is that if I add a constant before my variable, the answer becomes really weird.

    My second problem is that if I just change one letter (q becomes Q), the answer changes completely.

    I am attaching a picture of the calculations so that you can understand my problem.

    Thank you very much for your help

    Kind regards

    Xavier

    When you type wx you now have a variable named "wx" - not w * x which is what I suspect you intend. You must manually add a multiplication between them.

    When you use the Q, you are actually using the predefined global real variable that is most likely the value 0. If you've stored 2 in Q, I suspect that you'll get a different result. Remember that all variables in capital letters from A to Z and THETA and already defined as real numbers. VARS-> HOME-> REAL-press and you will see them.

  • LabVIEW 2010 FPGA: problem with the mean and the variance Subvi

    The Subvi 'Average, Variance and standard deviation' seems to not work properly. The calculation of the average value is ok but std and variance are bad and the results change with representation in an unexpected way. Everyone knows about this problem? Is there a problem with the use of this function?

    Thank you

    Andrea

    Hello Andrea,

    Here is a test for the configuration of your VI (entered I16, 16 samples), saved in LabVIEW 2010 SP1 and the new Subvi. It is relatively simple to adapt it to other configurations, but it does not reconfigure several nodes and constants on the diagram. Let me know if it will work for you.

    Kind regards

    Jim

Maybe you are looking for

  • Y410 77578CQ problem with wireless drivers

    I have three Lenovo 3000 series Y410 laptop computers 77578CQ. These are delivered with only vista drivers. But I installed Windows XP on them and now I am facing problem with Wireless Card Drivers for Windows XP. I downloaded both the drivers listed

  • aspect ratio of false drawing in Windows media center

    Hello I was viewing and recording of digital television live in Australia on my Acer 6920 (built-in tuner is AVerMedia A309 minicards, DVB - T) and outside of never being able to download tv program guide information - I really don't like that much t

  • Using two computers on a single monitor, keyboard and mouse.

    I want to use my two computers with a single screen, keyboard and mouse... says to use the kvm switch.  I use Windows XP on a computer and Windows Vista on the other... what kvm switch do you recommend?

  • HP Deskjet 1010: Option to print to a printer HP 1010 preview?

    Hello and thank you for taking the time to look at my question. I just setting to the top of my HP Deskjet 1010, and everything seems to work well.  However, I'm actually know if there was a way to establish this printer to allow a dialog option "pri

  • The IP address has changed and now not SSH!

    Having a strange problem with a sensor of version 4.1... It worked normally. Then I changed its IP address. This includes also change the subnet mask, gateway, access list, etc., but also regeneration of TLS and SSH keys. Now the sensor can ping to t