Follow-up - how can I order lines based on a value from column to HFR
As discussed in my question on queries Top, I have a column that I ordered highest to lowest on a report.I have now, thanks to mballo, have a column of row (still hidden) as well as the column that contains the values. I have 25 rows. My use of the Rank ([M, 1:25].ifNN(-1), descending) provides values but no order.
How can I get the lines sorted by the values in a particular column, then the first line has the highest value and the rest in descending order?
J
In the property sheet of grid, there is an option "comes out" about 1/2 at the bottom of the page. Once activated it will bring up a window that allows you to apply the sorting. You can take specific lines or all the rows and then apply that based on a column. Or vice versa.
Tags: Business Intelligence
Similar Questions
-
change the color of line based on the value of column 5 Apex in the classic report
Version of the apex 5.0.0.00.31
Standard universal theme
Page theme default template
Classic report
Foldable report template
Hello
I know this question has been asked several times here, but I'm working on 5 Apex and need to know the correct way to do it in this version.
I need to change the color of the text of the entire line (no background color) based on the value in one of the columns of the classic report. I have just two conditions, if the value of column = Yes, color should be red, otherwise it must be green.
I am new to jscript and css, so appreciate if someone can tell me the solution with steps.
I have already checked this link that changes the value of the column, need to do something similar to the whole line.
https://tylermuth.WordPress.com/2007/12/01/conditional-column-formatting-in-apex/
Hi coolmaddy007-Oracle,.
Here's an example set up on the apex.oracle.com according to the specifications you gave: https://apex.oracle.com/pls/apex/f?p=35467:1
Version of the apex 5.0.0.00.31
Standard universal theme
Page theme default template
Classic report
Foldable report template
Here is how it is done:
Create a dynamic action with the following specifications:
Name: Give the appropriate name
Event: After refresh
Selection type: region
Region: select your region classic report
Condition: No strings attached
Action: Run the JavaScript Code
Fire on loading the Page: Yes
Code:
$('td[headers="JOB"]').each(function() { if ( $(this).text() === 'MANAGER' ) { $(this).closest('tr').find('td').css({"color":"red"}); } if ( $(this).text() === 'SALESMAN' ) { $(this).closest('tr').find('td').css({"color":"green"}); } if ( $(this).text() === 'CLERK' ) { $(this).closest('tr').find('td').css({"color":"blue"}); } });
NOTE: Download the selector appropriate for your knowledge $('td[headers="JOB"]') case using firebug/browser development tools.
Items concerned: leave blank.
PS: Changed the example to change the color of text instead of the background color.
I hope this helps!
Kind regards
Kiran
-
the sum of the column lines based on distinct values of column B
Hi all
Here is my xml
rowset <>
< ROW >
< ORDER_NO > 103-4385509 < / ORDER_NO >
< SITE_NO > 103 < / SITE_NO >
< ORDER_ID > 4385509 < / ORDER_ID >
< CUSTOMER_ID > 2676832 < / CUSTOMER_ID >
< TAX_AMOUNT >.33 < / TAX_AMOUNT >
< CREATED_DATE > 20/08/2010 < / CREATED_DATE >
< USER_CREATED > TSDAL671 < / USER_CREATED >
< Delivery_Method > CARRY OUT STORE < / Delivery_Method >
< Entered_By > TSDAL671 < / Entered_By >
< SKU_NO > 321182 < / SKU_NO >
< NAME_TEXT > MGR_OVERRIDE < / NAME_TEXT >
< > 319 ATTRIBUTE_ID < / ATTRIBUTE_ID >
Override < ATTRIBUTE_VALUE > done < / ATTRIBUTE_VALUE >
< DETAIL_SEQ_NO > 1 < / DETAIL_SEQ_NO >
< / ROW >
< ROW >
< ORDER_NO > 103-4385509 < / ORDER_NO >
< SITE_NO > 103 < / SITE_NO >
< ORDER_ID > 4385509 < / ORDER_ID >
< CUSTOMER_ID > 2676832 < / CUSTOMER_ID >
< TAX_AMOUNT >.33 < / TAX_AMOUNT >
< CREATED_DATE > 20/08/2010 < / CREATED_DATE >
< USER_CREATED > TSDAL671 < / USER_CREATED >
< Delivery_Method > CARRY OUT STORE < / Delivery_Method >
< Entered_By > TSDAL671 < / Entered_By >
< SKU_NO > 321182 < / SKU_NO >
< NAME_TEXT > OEDTL_TAX_INFO < / NAME_TEXT >
< > 314 ATTRIBUTE_ID < / ATTRIBUTE_ID >
< ATTRIBUTE_VALUE > 441130760 | 441130760 | 441130760 | 1. 1. 1. 20100820 | 2676832 | 2. SPARE PARTS | < / ATTRIBUTE_VALUE >
< DETAIL_SEQ_NO > 1 < / DETAIL_SEQ_NO >
< / ROW >
< ROW >
< ORDER_NO > 103-4385509 < / ORDER_NO >
< SITE_NO > 103 < / SITE_NO >
< ORDER_ID > 4385509 < / ORDER_ID >
< CUSTOMER_ID > 2676832 < / CUSTOMER_ID >
< TAX_AMOUNT >.18 < / TAX_AMOUNT >
< CREATED_DATE > 20/08/2010 < / CREATED_DATE >
< USER_CREATED > TSDAL671 < / USER_CREATED >
< Delivery_Method > CARRY OUT STORE < / Delivery_Method >
< Entered_By > TSDAL671 < / Entered_By >
< SKU_NO > 412679 < / SKU_NO >
< NAME_TEXT > OEDTL_TAX_INFO < / NAME_TEXT >
< > 314 ATTRIBUTE_ID < / ATTRIBUTE_ID >
< ATTRIBUTE_VALUE > 441130760 | 441130760 | 441130760 | 1. 1. 1. 20100820 | 2676832 | 2. 0035 | < / ATTRIBUTE_VALUE >
< DETAIL_SEQ_NO > 2 < / DETAIL_SEQ_NO >
< / ROW >
I have to display 3 lines but all the sum of TAX_AMOUNT grouped by ORDER_ID, I need sum for 2 records based on the distinct value of DETAIL_SEQ
so my output should be something like below
ORDER_ID | TAX_AMOUNT | DETAIL_SEQ | ATTRIBUTE_ID
-----------------------------------------------------------------------------
4385509 | 0.33 | 1. 319
4385509 | 0.33 | 1. 314
4385509 | 0.18 | 2. 314
--------------------------------------
SUM = 0.51
------------------------------------------
Note: I can't make separate in the sql attribute_id is different for the same DETAIL_SEQ_NO.
I tired to do <? sum ([xdoxslt:distinct_values (current - group () / DETAIL_SEQ_NO)] / TAX_AMOUNT)? >
It did not work.
Can someone help me please!
Thanks in advance!This syntax will not work.
A method to do so.
-
view the amount of records based on a value from column PHP
I have a table (cfsCustomersImages)
that contains the columns
imagesID
image
CustomerID
imageWant
the value of the imageWant column is default "N", if the user wants and the image that they have a form, they can check to replace the value "Y".
what I show is worth the total of the values of "Y" in the column
for example
If 6 of 'Y' can be found in the columns
6 images have been selected
Does make sense?
> I'm looking for already 'alias column mysql', but it has not really helped
Really? The first result of the research shows you exactly how do. Of course, you must always have a basic understanding of SQL and PHP.
Modify your query to:
$query_rsCount = sprintf ("SELECT COUNT (*) AS rowCount FROM cfsCustomers, cfsCustomersImages WHERE cfsCustomers.custID = cfsCustomersImages.custID AND custEmail = %s AND imageWANT = 'Y'", GetSQLValueString ($colname_rsCustomer, "text") ");
then use:
-
Filtering measure based on a value from column to RPD
Hello
I created 2 measure in RPD effectively: channel change SLA
1 success Count who is count (Response_Event_DateTime) and
2. failure Count which is count (Failure_Reason_Key)
and in the report I put filters for these measures in Edit as formula
Success: FILTER ("ALS DONE change the channel". "County of success' using ("SLA MADE the channel change"". ")" ((Right key failed"< 1))
Chess: FILTER ("ALS DONE change the channel". "County of failure" using ("ALS FACT the channel change" ".") " ((FAILURE_REASON_KEY"NOT IN (-1, 1)))
then I calculated the percentage of success /(Successes+Failures) * 100
Everything works fine, but is there a way to put these filters for the successes and failures in RPD? So that users can simply drag and drop these measures and calculate the percentage of success?
Thanks in advance
SiriYes, you can put it in SPR... Simply create 2 new columns of logic more under table "Channel change ALS MAKES"
(1) success logic column
(2) failures logic columnFor success, check the box "use logic existing columns as source", then click 3 points...
And then in the expression builder... build the formula above... IE
FILTER ("ALS DONE change the channel". "County of success' using ("SLA MADE the channel change"". ")" Key failure of reason. "<>Even for outages logic column
Make two columns in the presentation layer, and then you're done...
Thank you
Ashish -
How can I order a recovery media for HP Pavilion dv9810us Notebook?
How can I order a recovery media for a HP Pavilion dv9810us Entertainment Notebook PC? I'm following the documentation that was provided with my PC when I bought it several years ago. I can still these discs?
Hello
Although the set of recovery disks is no longer available at HP, you can always order them the re-seller 3rd party on the following link.
http://www.computersurgeons.com/p-15623-recovery-kit-483904-002-for-HP-model-number-dv9810us.aspx
Kind regards
DP - K
-
How can I order by alphabet created list on a menu drop-down?
How can I order by alphabet created list on a menu drop-down?
Click the cell that contains the data of cell format pop-up menu. On the cell on the right Panel tab, you will see these menu items. Drag to reorder alphabetically. There is no provision to automatically sort this list of menu items.
-
i mac OSX10-9-5 2015. How can I order i-Tunes DOES NOT close automatically after 30 minutes... Despite having put in place to save energy to stay active for 2 hours?
To the best of my knowledge iTunes has all of the features that could stop him. What make you believe it's iTunes rather than some other power saving feature? What happens exactly 30 minutes? It's happens during playback video or audio?
TT2
-
How can I order additional memory for my HP Mini 210-2001sd PC computer
How can I order additional memory for my HP Mini 210-2001sd PC computer
Here is a link to a seller.
-
How can I order recovery disks?
My hard drive crashed and had to be replaced, so I do not have a recovery partition. How can I order from Dell recovery discs?
Today I have addressed this. If you purchased your Dell printer a retailer like Best Buy (I did), Service tags are already registered... at Best Buy! You must request a transfer of property, which is just ridiculous. Can you imagine if you had to do this for all your purchases? All my bread would be registered at Safeway unless I asked for ownership of each slice.
Anyway, once you have ownership of the store that you bought your computer to, you should be able to request records. Wrestling: Managed by the warranty, which is not open 24 hours service. I have to wait until tomorrow to see if it works or not - this after 3 times during my call being transferred and have to convince my rep service Yes, I actually had a writable DVD drive in my machine. >:|
-
Followed by my previous inquiry, my hard drive crashed and lost my copy of Acrobat 9 in the installation of the new hard drive. How can I go to re - install Acrobat 9 from the disc, I hold. Thank you, Don Hamilton
Just reinstall from the disc (or download it from https://helpx.adobe.com/acrobat/kb/acrobat-8-9-product-downloads.html) and activate it with your serial number.
If your number of activations exceeds max (2), then you will need to contact customer service.
-
How can I order product clouds InDesign CC for profit?
How can I order CC InDesign for profit? Only the options I see are individual, business, student and teacher and College universotoes? We are a 501 c 3. @
Please check KB links to not-for-profit:
Hope this helps you.
Concerning
Baudier
-
How can I order the upgrade $ 29.99 creative cloud on a tax exempt status?
How can I order the upgrade $ 29.99 creative cloud on a tax exempt status? I note that it says 'tax' now and my employer with a tax exempt status, it must be ordered without this accusation.
Tax exempt purchases can only be made on the education online store. To place a tax-exempt order, contact a dealer education.
-
How can I fill the records using the value LOV
Create a form based on the use of the following output Table EMP
Create a database block IE control-> Dept No. block
Create a database block - EMP
Create a LOV to the Dept not according to the dept table.
For the current No. Dept. Complete records of the employees
How can I fill the records using the value LOV?
Thank youHello
Create trigger KEY-LISTVAL for control_block.dept_no with code similar to the following:
IF SHOW_LOV ('LOV_NAME') THEN SET_BLOCK_PROPERTY ('EMP_BLOCK', DEFAULT_WHERE, 'DEPT_NO = ' || :CONTROL_BLOCK.DEPT_NO); GO_BLOCK ('EMP_BLOCK'); EXECUTE_QUERY; END IF;
Hope this helps
Best regards
Arif Khadas
-
State of color lines based on a value in the same row
I would like to color report lines based on a value in the same row.
For bolting with the table 'EMP ':
I would like job = MANAGER and Red work = CLERK to be green etc etc.
The other example I found was the possibility of a single color either the nail or the default color.
I'm looking for a way to do multiple colors.Hello
In the model line, you can use #1 #, 2 # #, etc. to indicate where a field in the report should be released. It doesn't have to be clear - that is to say, you can use it in style tags if you wish.
So take a query such as:
SELECT EMPNO, ENAME, DEPTNO, DECODE(DEPTNO, 10, 'green', 20, 'red', 30, 'cyan', 'white') BG_COLOUR FROM EMP
You get the column 1 = empno, 2 = ename, 3 = deptno and 4 = bg_colour. In the model line, you can then do:
Before defining lines (implements the table):
<table> <tr><td>ID</td><td>Name</td><td>Dept</td></tr>
After setting (farm table) lines:
</table>
Model 1 (used for all lines) line:
<tr style="background-color:#4#;"><td>#1#</td><td>#2#</td><td>#3#</td></tr>
Then, for each row, the color that has been calculated by using the DECODE function is used in the style tag for color the background of the whole line.
How to determine the colors, it's you. I used DECODE here, but you can use a field on the DEPT table to hold and use it in your SQL statement.
Andy
Maybe you are looking for
-
How to remove bookmarks?
I tried to go to change the bookmarks to delete, but they are not deleted.
-
How can I get the device driver for Dell all-in-one 944
I got a new PC and don't have the information to use my printer. How to get the driver from Dell for this printer info
-
936982 KB - Office 2007 SP1 will not install.
I have experience several times "the following updates were not installed:" regarding KB 936982 Office 2007 SP1 update attempts. I spent about 7 hours. with MS online free assistance and still no joy. It costs me a lot of time and time = money. I
-
DVD player does not work after update
After you install SP3, my CD/DVD drive does not work with DVD but CD is fine.
-
No sound when I watch the movie using Media player.
When I try to play a dvd on media player there is no sound. I can play music on media player without problem. Play a movie and no sound. I have DVD kantaris (as media player I think) don't have to be here: no sound. Kantaris has worked to play DVDs