Get the cumulative values in a single column based on another column in reports
Hi allI have a requirement to get cumulative values based on another column.
I 'Sales rep name' in the first column.Since there is no rank option in the PivotTable, I do this in the report table.
Correspondent "Values of the invoice line" in the second column.
Want to have cumulative of all the values for each sales invoice line.
Then apply rank and display the top 10 sales reps based on invoice lines.
Looking for the best entries...
Thanks in advance...
Try below
2nd column: "name of Sales rep.
column 2: SUM ("invoice line values ' BY 'Name of Sales rep'") and sort this field desc.
3rd column: fx RANK (SUM ("invoice line values" BY "Sales rep name")), to hide this column, so that you don't confuse your users.
and put the filter on the 3rd column below 5
I hope this works for you
Tags: Oracle
Similar Questions
-
Is there a way to get the new value assigned to a column of series (DG4IFMX)
Hi people,
I need to insert records into a table whose primary key is a column of series (even as a trigger on a primary key in Oracle). I have been informed that the way to trigger the next value is to insert a zero in the column, which is fine. The problem is, that I need to know what the next value that has been assigned, and there is not enough time between the transaction to do a 'select max (column_name)', for example. Is there something (maybe a function) that responds to this need, and I don't know about it?
Thanks, any idea would be appreciated.
-Adam vonNiedaThe gateway offers the PASSTHROUGH - described in more detailed manual - package which allows you to send anything to the foreign database without being touched by Oracle.
Depending on your function, you can use the DBMS_HS_PASSTHROUGH. The EXECUTE_IMMEDIATE package and if you need to retrieve something that you could use:
dbms_hs_passthrough. Parse
DBMS_Hs_Passthrough.fetch_row
dbms_hs_passthrough.get_Value -
Is it possible to get the total value of column and set to another area
Hello
Is it possible to get the total value of a particular column, and assign this value to another discipline?
How to do this?
Thanks in advance,
SANHi SAM,
If your controller class throw this message it means that it works very well. Follow these steps, I hope this will solve your problem.
1 check the following
OAApplicationModule am = pageContext.getApplicationModule (webBean);
OAViewObject ratvo = (OAViewObject) am.findViewObject("*CompetenceElementsVO*"); It should be the name of the instance instead of the name Physics vo vo.
OAViewObject valuevo = (OAViewObject) am.findViewObject("*PerRatingLevelsVO*");2. extend this controller class that is associated with this region.
I hope it will work now.
Haroon.
-
How can I get the text value of an element XML in MXML?
Hello
I have the following XML loaded into a variable of XML type:
Properties of <>
the RIMpro data collector Configuration < comment > < / comment >
< key="server.pear.username"/ entry >
< key = "enter server.apple.retry.times" > 5 < / entry >
< Enter key = "rdc.proxy.host" > http://192.168.1.2:8080 < / Entry >/Properties >
I can easily get the key attribute displayed in a DataGridColumn by setting the dataProvider my variable and the data in "@key" area But I don't know how to get the text value in a second column... Is it possible or do I have to change my XML to something like this:
Properties of <>
the RIMpro data collector Configuration < comment > < / comment >
< key="server.pear.username"/ entry >
< key = "enter server.apple.retry.times" value = "5" > < / entry > "
< Enter key = "rdc.proxy.host" value ="http://192.168.1.2:8080"""> < / entry > "/Properties >
Thanks in advance.
Marc
Yes, you'd better change your XML structure to fit the internal mechanisms of the DataGrid.
As model dataField require each element of the grid line to have a named property to display, otherwise you will be forced to overcome this model to the custom help labelFunction for the particular column that will implement your custom actions on how to extract the appropriate data for this column of the grid line item. It will be much more complicated that just reorganize your xml structure.
-
Get the Max values and average of the different cycles in the single channel
Hello
I'm trying to get the Max values and average of the single channel that has different cycles it contains. I tried to use commands such as Chnclasspeak3 and chnpeakfind, but they were not useful for me. What I need is the Max values and average of the different cycles numbers saved in the data channel.
Exampld if the string contains 5 numbers of repetitive cycles, then we must find the maximum values and the average of these 5 cycles in the single channel. Attached reference data. This is the .raw file and I have the plugin for it to use in diadem 11.1.
Kind regards
X. Ignatius
Hello, Ignatius,.
Sorry, it took some time to provide a replacement based on the script for the function. Please take a look at the attached script. I changed the script to use my function if the tiara-version is less than 12. My script function is not as fast and more stable than the implementation of tiara, but for now, it does the job
Andreas
-
To get the old value and the new value
create table test (ID NUMBER,
Number of REV,
Number FIELD_ID,
FieldName varchar2 (200),
ACTION varchar2 (50).
Field_value varchar2 (200),
MODIFIED_BY varchar2 (50).
Date MODIFIED_DATE);
Insert into TEST (ID, REV, FIELD_ID, FIELD_NAME, ACTION, FIELD_VALUE, MODIFIED_BY, MODIFIED_DATE) values (1007,283,12,'status','UPDATE','Started','2002',to_date('13-DEC-13','DD-MON-RR'));
Insert into TEST (ID, REV, FIELD_ID, FIELD_NAME, ACTION, FIELD_VALUE, MODIFIED_BY, MODIFIED_DATE) values (1007,224,12,'status','UPDATE','preview','2002',to_date('12-DEC-13','DD-MON-RR'));
Insert into TEST (ID, REV, FIELD_ID, FIELD_NAME, ACTION, FIELD_VALUE, MODIFIED_BY, MODIFIED_DATE) values (1007,290,12,'status','UPDATE','revision','2002',to_date('14-DEC-13','DD-MON-RR'));
Insert into TEST (ID, REV, FIELD_ID, FIELD_NAME, ACTION, FIELD_VALUE, MODIFIED_BY, MODIFIED_DATE) values (1008,283,12,'status','UPDATE','Started','2002',to_date('13-DEC-13','DD-MON-RR'));
Insert into TEST (ID, REV, FIELD_ID, FIELD_NAME, ACTION, FIELD_VALUE, MODIFIED_BY, MODIFIED_DATE) values (1008,224,12,'status','UPDATE','preview','2002',to_date('12-DEC-13','DD-MON-RR'));
Insert into TEST (ID, REV, FIELD_ID, FIELD_NAME, ACTION, FIELD_VALUE, MODIFIED_BY, MODIFIED_DATE) values (1008,290,12,'status','UPDATE','teststat','2002',to_date('14-DEC-13','DD-MON-RR'));1007 283 12 status of started the UPDATE 2002 13 December 13
1007 224 12 status update overview 2002 12 December 13
12 290 1007 State review UPDATED 2002 December 14, 13
1008 283 12 status of started the UPDATE 2002 13 December 13
1008 224 12 status update overview 2002 12 December 13
1008 290 12 intensified status 2002 Update December 14, 13I need to Get for each id for each field Ineed to get the old value and new_value.
Planned result for the simulacrum of the data is:ID FIELD_NAME ACTION OLD_FIELD_VALUE NEW_FIELD_VALUE MODIFIED_BY MODIFIED_DATE
1007 status UPDATE started review 2002 December 14, 13
1008 State updated started intensified 2002 December 14, 13
Thank you
AnnHello
9728f65c-CE79-4c28-9efb-9e76dc6eaf8b wrote:
Yes I need a production line for all id.the the last rows should be the one with the highest rev.
Then use id where I guessed a group of columns starting with id and rev in most of the places where I used modifed_date:
WITH got_analytics AS
(
SELECT id, field_name, action
LAG (field_value) over (PARTITION BY ID.
ORDER BY rev
) AS old_field_value
field_value AS new_field_value
modified_by
modified_date
rev
MAX (rev) over (PARTITION BY id)
AS max_rev
OF the test
)
SELECT id, field_name, old_field_value, new_field_value, modified_by, modified_date
OF got_analytics
WHERE rev = max_rev
ORDER BY id
;
-
Need to get the original values
Hello friends,
In my scenario, I need to get the original values
for ex: in a single table of data lines are (R, A, J, A), in another table are given in the lines (R, A, J, E, S, H) and I need to cancel R & J where it is present in both tables. Then I need to cancel one at table 1 because there is an only A is present in table 2 and another should remain as original value. Then the County he came like 4 (A, E, S, H)chris227 wrote:
any benefit here?
OK, we know that the outer joins can be in does not exist,what the implementation plans
compare the execution plan please
for your query
| 0 | SELECT STATEMENT | | 10 | 350 | 32 (63)| 00:00:01 |
and my
| 0 | SELECT STATEMENT | | 10 | 320 | 9 (56)| 00:00:01 |
SQL> select * from v$version; BANNER ---------------------------------------------------------------- Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod PL/SQL Release 10.2.0.1.0 - Production CORE 10.2.0.1.0 Production TNS for 32-bit Windows: Version 10.2.0.1.0 - Production NLSRTL Version 10.2.0.1.0 - Production
-
Where does FireFox get the default value for a preference of. What is the format of the file that contains the default value? I need the actual default value for an individual preference.
Topic: config shows some default values, but I need the source from which everything: config returns to the default value.
Any help in this direction is greatly appreciated.User Agent
Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Win64; x 64; Trident/4.0; .NET CLR 2.0.50727; SLCC2; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0)
The preferences that are not hidden if they have by default are stored in two JavaScript text files in the Firefox program folder
You can open them in a tab in Firefox through these links:
resource:///defaults/pref/firefox.js
resource:///greprefs/all.js
-
Get the highest value of acquired data
Hi, how can I get the highest value of data according to data acquired using the accelerometer ADXL345 and LINX in LabVIEW?
I want the highest data to be shown with a flag. However, the data being shown are always the last acquired data. My problem would be what happens if the highest data somewhere at the beginning or in the middle of all the acquired data? How to display the highest data using an indicator?
Here's a look at my front, block diagram, and sample of the acquired data.
From the front panel, the basic indicator of detected last poster 0.1929 (amplitude), which is the last value. But looking at the Excel file, the highest data are data which is 0.2013. The highest, I want to be displayed on the indicator not the last value. How do I do that?
Thank you!
I gave you an example of what you need to do - it is not okay if wire you the new value and the old value for the X or Y - it will always return the maximum of the two values so the order doesn't matter. It would have been more useful if you had posted what you tried the max & min. You need a registry to offset inside the loop (like I did with my while loop). If you only want to display the maximum value for each iteration of the loop for external, you must initialize the shift register by plugging a 0 to its terminal on the left. A shift register her pinned the value of the last run - probably not what you want here.
-
[Labview] I want to get the average value in each new 100 samples.
Hello. I'm Sophie.
I'm studying Labview for my research.
For me, the sampling frequency is 125KHz.
I want to get the average value in each new 100 samples.
Therefore, I want to get an average value of 1 ~ 100th samples and store this average value. Call assets(1).
Then, I want to get an average of 101 ~ 200th samples and store this means value, call moyen2.
.
.
.
.
I don't know how me I want.
Thank you
Sophie.
-
Get the current value of the variable when reaching CNVCreateSubscriber
I use CNVCreateSubscriber () to create a subscription read to a network Variable: whenever the value of the variable changes, the DataCallback is called and I'm able to get the new value of the variable.
But how to get the value of the variable when a subscription is created?
I read in the help CNVCreateBufferedSubscriber () returns this information, but I wonder if using CNVGetDataFromBuffer () in a polling loop has the same performance as the approach to DataCallback of CNVCreateSubscriber ().
In addition, the dataStatus (CNVGetDataFromBuffer) parameter is different for different Subscribers? (that is if I have multiple subscribers, CNVStaleData is related to the specific Subscriber or is a global property of the variable)?
CNVData data;
CNVGetConnectionAttribute (customer, CNVMostRecentDataAttribute, &data);)
-
How to get the string (specified by row and column) of txt file with labview
Hello world
How to get the string (specified by row and column) of txt file with labview
THX
As far as I know, a text file has no column. Be more specific. Do you mean something like the 5th word on line 4, where the words are separated by a space, and lines are separated by a newline character? You can read from the spreadsheet String function and set the delimiter to a space. This will produce a 2D channels table. Then use the table to index and give the line number and column number.
-
Get the default value for class LV 1498 error
I call get the Default Value.vi LV class to dynamically load a class.
It was working fine until I added Open Config Data.vi to read an .ini file.
The application works fine when I press the button RUN in the LabView development environment, but when I create the executable file with Application Builder and then run it, I get:
"1498 error occurred getting class LV Default Value.vi"
Possible reasons:
LabVIEW: Library has errors. Correct the errors before performing this operation.
«"" "String of full appeal:»»"»
Download LV class by default Value.vi
Test.VI
LabVIEW has tried to load the class in this path:
g:\cal\devices\Digital300Meter\Digital300Meter.lvclass
I narrowed the problem down to open Config Data.vi included in the application, not in the class. I don't have to call the Open Data of Config vi to get this error.
I have a Subvi, called "SelectDevice" which refers to Open Data from Config. In my main Test.vi SelectDevice is in the true case of a true/false case structure, which is set to False.
If I put a design schema off around the Open Data of Config vi, I do not get the error.
I suspect that including Open Config Data include a VI in the application that interferes with the LV ranks by default.
Thank you, it works!
I also put the additional Exclusions page as follows:
Disconnect the type definitions - verified
Remove unused polymorphic instances of VI - verified
Remove unused libraries project - members verified
Change the project library file after removing unused members - unaudited
-
How can I get the numeric value of a reference?
I would like to get the numeric value of a reference. If I look at any reference with a probe, I can see it has value, i.e. F280006B. I would like to enter this value in a digital indicator for some troubleshooting I do. but running a Ref directly in a digital indicator introduced the code. Somehow the probe's work, it must be accessible. All advice out there?
Type caster in U32.
Lynn
-
Get the current value of a control of the ring
I have a control of the ring that has the following values. See attacment. I need to get the current value of this one and use it as input for another function, but First I would like to get the current value and save ina text file. I tried this
if (event == EVENT_LEFT_CLICK_UP) || (event == EVENT_LEFT_CLICK_DOWN) { int p; GetCtrlVal (panelHandle, PANEL_RINGSLIDE_1, &p); FILE *OutFile = fopen("C:\\Users\\Student\\Desktop\\ringtest.txt","w"); fprintf(OutFile,p); fclose(OutFile); }
I need to get the current value of the ring (& p) to write to the file ringtest.txt.
Also, I need to use this value (& p) as another entry in the same program.
IE value of & p must be used in
b = c * 5; where c is the value of the current & p.
Can any 1 help?
You're right: EVENT_LEFT_CLICK_DOWN is not a valid event for the CVI. Valid events are listed in the userint.h file, and are the only events that can be caught in the trap in a point of order. On the other hand, you're assuption on EVENT_VAL_CHANGED is correct: you can trap forget the EVENT_CLICK_UP event.
According to the second question, looking at the definition for fprintf you must pass a string format as the second parameter to the function, then the value to write to the file. In your case, the correct syntax is:
fprintf (OutFile, "%d", p);
Maybe you are looking for
-
Since the update for Firefox 4, I offer more the ability to save tabs on shutdown - makes more rapid access to these sites when commissioning the next day. Why this possibility has been removed? It was a feature favorite and saved a lot of time.
-
My update to windows XP SP3 download KB2686509 code 0x8007F0F4 willnot
I tried repeatedly download the update of KB2686509 security, but it fails code 0X8007F0F4 =... I have windows XP SP3. What should I do, to have computer mt accept this upgrade?
-
I have a network with a WPA & WPA2 security. My laptop has Windows XP on it and it does not connect to my network. The only network security that it will accept is WEP. I looked for an update and the only update was only for SP1 and I have SP3. Ho
-
Windows 7 32-bit to 64-bit backup
I want to move from 32 to 64-bit (my laptop is expandable), I need to create a backup, because I have a lot of things on my laptop and cant risk losing it If I create just an image of the normal system, it won't work on an upgrade to 64-bit so what s
-
Why can't connect to any Web site with a flash button
I get a security sandbox message when you try to connect to an external site to flash... help... anyone... Please... I need to get this turned midnight...