How do I filter a column by specific values?
Hello,
I have imported a large .csv log file that contains many different columns and values into DIAdem. One of the columns contains a hexadecimal value field, and I need to filter the column by the last byte of this hex field. For instance, one of the values might be "CFFD0F3" and I need to find all rows that have "F3" as the last byte. I also need all of the other columns to be filtered in this same way.
There doesn't appear to be any easy way to do this in DIAdem, and I've searched online and through the discussion forums for ways to accomplish it. Whenever I search for the word "filter" it always leads me to FFTs or highpass/lowpass filters. I just want to filter a column like Excel does, but my log file contains around half a million entries, so I can't open it entirely in Excel.
I've attached a screenshot of what some of my columns look like, but for privacy reasons, I can't attach the log file.
Does anyone have any ideas?
Thanks!
Solved!
Go to Solution.
Attachments:
screenshot.png 159 KB
Hi Ben,
I cooked up a nice little application for you. Since your post clearly stated that you were dealing with millions of data values, I took pains to implement this application as efficiently as possible and to include status dialogs to let you know what the script is doing at all times and which actions take the most time, in case we need to try to optimize it further for your purposes. You will need to extract the 3 files in the attached ZIP file to the same folder somewhere. Then you need to run the "ExtractIDGroups Add.VBS" script to add the VIEW context menu and register the UserCommands the VIEW context menu will be calling. We can set up your DIAdem to always run this VBScript whenever you launch it, once you're happy with the result.
You will use the new VIEW context menu in the following way. Load your data file into DIAdem, then show those loaded data channel in a VIEW table, just like your posted screenshot. Now select and right-click on the "Arb ID" channel (or whichever channel has the Hex addresses) and choose the new "Extract ID Groups" context menu. A user dialog will pop up on the left of your computer screen listing all the enumerated final 2 Hex suffix characters in that channel you right-clicked on. Select one or more of the desired Hex suffixes (shift or control key for multiselect), then click on the <OK> button. You will then see each of those selections broken out as a new Group in your Data Portal. You can select the "Extract I Groups" multiple times if you decide to go back and add a few more ID Groups.
The application is currently set up to sort the raw data in-place by the "Hex Suffix" values and leave them that way-- this along with leaving the "Hex Suffix" channel in the raw data Group makes it faster to repeat ID Group extraction from the same raw data set. This is also the more efficient way of extracting multiple ID Groups, which I'm guessing you will want to do. Each extracted ID Group is sorted at the very end by the values of first channel in that Group. So if you want to sort those extracted ID Groups by the "Abs Time" or "Rel Time" channel, say, you need to drag that sort-channel in the Data Portal from its start position to the very first channel position in that raw data group BEFORE selecting the "Extract ID Groups" context menu.
Let me know how this works for you,
Brad Turpin
DIAdem Product Support Engieer
National Instruments
Attachments:
ExtractIDGroups.zip 4 KB
Similar Messages
-
How can i Filter a column in my iPad 2?
I bought numbers and I'm trying to Filter rows chosing a valué of a column. Can youtube help me??
Thanks in advanceThanks, Jerry, I apologize for my wrong question, i would like to know how to filter a column of a sheet in Numbers, and if anyone can help me. It seems that in iPad2 version is not posible.
I am reading and looking for some help.
I have seen that in Mac version of Numbers, there is an option of organize and filters, but not in iPad.
Thanks -
How to add a new column to specific position
Hi,
How to add a new column to specified position in a existing table.
I have using the oracle database 10g.
This below code is not working in oracle 10 g
example:
ALTER TABLE EMPLOYEE ADD DEPT NUMBER FIRST:
ALTER TABLE EMPLOYEE ADD DEPT NUMBER AFTER JOB:
Please provide the correct syntax.Hi,
When you add a column to the existing table, the column added i.e., for ex updatedon appers in the last. If you want the columns to be
displayed in Specific order. Just give the column names in the SELECT.. statement.
For your Information, But it is not good in Table design. Just to give something useful.
If you want to add a column at a specified position,
Rename the position column to the new column name
For Ex: (OLD_COLUMN_NAME-Hiredate)
ALTER TABLE EMP RENAME COLUMN OLD_COLUMN_NAME TO TEMP_HIREDATE;Add a New Column to Table
ALTER TABLE EMP ADD LAST_DATE DATE;Then, Alter the Table to rename the new column that is added.
ALTER TABLE EMP RENAME COLUMN LAST_DATE TO OLD_COLUMN_NAME;And, Rename TEMP_HIREDATE to your actual collumn.
ALTER TABLE EMP RENAME COLUMN TEMP_HIREDATE TO LAST_DATE;In practise, this won't be a good approach but you can get something useful about renaming the
column atleast.
Thanks,
Shankar -
In ColumnChart, how to stop displaying small column for zero value?
I'm trying to create a ColumnChart that does not display a column when the value is zero. The chart currently looks like this:
This is a stacked column chart with red values representing Faults and green values representing Throughput. Each hour has an explicit value of zero for Faults. I don't want to see any red lines when the value is zero. Is there any way to accomplish this?
My code looks like this:
<mx:Script><![CDATA[
import mx.collections.ArrayCollection;
[Bindable]
public var simpleStats:ArrayCollection = new ArrayCollection([
{Hour:"0:00", Throughput:0, ThroughputThreshold:2000, Faults:0, MaxResponseTime:450, AvgResponseTime:200, MinResponseTime:180,
AuthenticationAcceptance:50, AuthenticationRejection:0, AuthorizationAcceptance:50, AuthorizationRejection:0},
{Hour:"1:00", Throughput:0, ThroughputThreshold:2000, Faults:0, MaxResponseTime:450, AvgResponseTime:200, MinResponseTime:180,
AuthenticationAcceptance:50, AuthenticationRejection:0, AuthorizationAcceptance:50, AuthorizationRejection:0},
{Hour:"2:00", Throughput:0, ThroughputThreshold:2000, Faults:0, MaxResponseTime:450, AvgResponseTime:200, MinResponseTime:180,
AuthenticationAcceptance:50, AuthenticationRejection:0, AuthorizationAcceptance:50, AuthorizationRejection:0},
{Hour:"3:00", Throughput:5, ThroughputThreshold:2000, Faults:0, MaxResponseTime:450, AvgResponseTime:200, MinResponseTime:180,
AuthenticationAcceptance:50, AuthenticationRejection:0, AuthorizationAcceptance:50, AuthorizationRejection:0},
{Hour:"4:00", Throughput:0, ThroughputThreshold:2000, Faults:0, MaxResponseTime:450, AvgResponseTime:200, MinResponseTime:180,
AuthenticationAcceptance:50, AuthenticationRejection:0, AuthorizationAcceptance:50, AuthorizationRejection:0}
]]></mx:Script>
<mx:ColumnChart id="trafficChart"
dataProvider="{simpleStats}"
showDataTips="true" width="500" height="100%" seriesFilters="[]"
type="stacked">
<mx:verticalAxis>
<mx:LinearAxis title="Messages" id="a1"/>
</mx:verticalAxis>
<mx:horizontalAxis>
<mx:CategoryAxis
id="TrafficTimeAxis"
dataProvider="{simpleStats}"
categoryField="Hour"
/>
</mx:horizontalAxis>
<mx:horizontalAxisRenderers>
<mx:AxisRenderer axis="{TrafficTimeAxis}" canDropLabels="true"/>
</mx:horizontalAxisRenderers>
<mx:series>
<mx:ColumnSeries
yField="Faults"
displayName="Faults"
fill="{sc2}"
stroke="{s2}"
minHeight="0">
</mx:ColumnSeries>
<mx:ColumnSeries
yField="Throughput"
displayName="Throughput"
fill="{sc1}"
stroke="{s1}"
minHeight="0">
</mx:ColumnSeries>
</mx:series>
</mx:ColumnChart>Answered my own question!!
The solution is to set the stroke for the ColumnSeries to {noStroke}, which I defined like this:
<mx:Stroke id="noStroke" color="0xFFFFFF" weight="0"/>
Note that if you define {noStroke} without a color property, black is used by default, which means that those columns that do appear show up in black stroke outline.
If there's a more elegant solution to the problem, please let me know... -
How to apply Filter condition for a specific column but not to the report?
Hi,
I am having a issue in applying a filter condition to one of the column.
I have a schema with one fact table and around 10 dimension tables. My requirement is to bring a count on the fact table with related to some other columns from the dimension tables.
Lets consider a scenario with tables like Sales (Fact), Region (Dimension), Year(Dimension), Sale Type (Dimension).
Now my requirement is to bring out the fields
City(Region) --City
Year -- Year
Sales Count(Sales table) ---Count of all sales from the fact table
Sales Count(Sales table) -- Count of all sales from the fact table where sales type is 'CASH'
Here my issue is how do I apply the filter condition of Sales Type='CASH' only on one of the Sales Count column which is from the fact table. I want the filter condition to be imposed only for the fourth column.
Can anyone let me know how to achieve this?
ThanksThis is quite simpe. Edit the column formula for the 4th column and put something like this. I am doing this from memory so the syntax might need checking:
Case When "Dimension Table"."Sales Type"='CASH' Then "Fact Table"."Measure" Else Null End
You could also consider making this a permanent addition to your RPD if this measure will be used again and again. You would add a new logical column and use the expression builder to arrive at the same result. -
How can I filter a column based on data in another list.
I have two lists:
List A:
Business Unit | BU Services
BU1 | Service 1
BU1 | Service 2
BU1 | Service 3
BU2 | Service 4
BU2 | Service 5
BU3 | Service 6
BU3 | Service 7
List B:
Sales Rep | Business Unit | Service
Jonny Cash | BU3 | Service 7
Kitty Wells | BU3 | Service 6
Willie Nelson | BU2 | Service 5
etc
List A is a reference list. I.e. it associates services with a business unit.
List B is a record of activities. It records what each sales rep sold. Sales reps can sell services from any business unit.
Using a drop down list to select the business unit, the service column should only display services that are related to a business unit. I.e. If BU3 is selected, then only Service 6 and Service 7 should be available.
How can this be achieved in SharePoint? It looks like something that it could easily do, however I can't get a lookup to work across lists, and I'm not sure a calculated column will do the job either.
Any ideas?Hi Cameron,
The first list (or table) is used for associations. I'm associating services with a business unit. This would work the same way with an example I found, regarding countries and states:
i.e.
Country | State
USA | Nebraska
USA | New York
Canada | Alberta
Canada | Manitoba
Russia | Crimea
Russia | Chechnya
Australia | New South Wales
etc
Then in the second list or table I could specific team members and their location:
Team Member | Country | State
Russell Crow | Australia | New South Wales
Clive Owen | USA | New York
In the 2nd table, I would select the country from a drop down (or by type ahead), and then the state column would restrict choices to states for the particular country as define in the first list, i.e. USA would show states like: Nebraska and New York, but
not Alberta or New South Wales because they belong to other countries.
I have a feeling that SharePoint can't do this, despite having the basic foundation for it. I'm not a MS developer, I'm a business user trying to put a basic app together for my boss. -
How do I filter two columns of names to see What names are the same?
I have two lists of names (one with 2,000+ names and one with 300+ names) I want make a column that shows the names that are not in both columns and the names that are. Is there an automated way of doing this?
Basically, I have 2,000 friends on facebook and only 300 of them like my business page. I want to know which friends to market too and which friends to stop annoying Any help would be greatly appreciated!Caleb,
You may use COUNTIF to see what values are in both columns.
In this example I used the expression: =COUNTIF(B,A)
Regards,
Jerry -
How to validate if a column have NULL value, dont show a row with MDX
Hello,
I have this situation, I have a Result from MDX that return rows with values NULL on columns, I tried with NON EMPTY and NONEMPTY but the result is the same. That I want to do is validate if a column have a Null value discard the row, but I dont know how
to implement it, could somebody help me?, please.
Thanks a lot.
Sukey Nakasima
Sukey NakasimaHello,
I found the answer in this link https://social.technet.microsoft.com/Forums/sqlserver/en-US/f9c02ce3-96b2-4cd6-921f-3679eb22d790/dont-want-to-cross-join-with-null-values-in-mdx?forum=sqlanalysisservices
Thanks a lot.
Sukey Nakasima
Sukey Nakasima -
How to generate a dynamic column with unique value in AMDP
Hi Collegue,
For AMDP I have a table with material plant,i have to assign a unique number to each unique combination of material,plants into a dynamic column say sequence.
Please suggest me how to proceed.
Regards,
Saurabhhi
Firstly, have a look at the following code to see how this can be implemented -
REPORT ZTEST.
perform test.
class test definition.
public section.
methods: create_screen.
endclass.
class test implementation.
method create_screen.
data: report_line(72),
report_source like table of report_line.
data: err_message(240),
err_line type i,
err_word(100).
report_line = 'REPORT TEST.'.
append report_line to report_source.
report_line = 'PARAMETERS: P_TEST TYPE I.'.
append report_line to report_source.
report_line = 'START-OF-SELECTION.'.
append report_line to report_source.
report_line = 'WRITE : P_TEST.'.
append report_line to report_source.
syntax-check for report_source message err_message
line err_line
word err_word.
if err_message is initial.
INSERT REPORT 'ZZZTESTZZZ' FROM REPORT_SOURCE.
SUBMIT ZZZTESTZZZ VIA SELECTION-SCREEN AND RETURN.
endif.
endmethod.
endclass.
form test.
data test type ref to test.
CREATE OBJECT TEST.
call method test->create_screen.
endform.
As you can see, the report is being written dynamically. Once the INSERT REPORT statement is executed, the program is available. you can you external subroutine calls to pass the data between the programs now.
Regards,
ravish
<b>plz dont forget to reward points if helpful</b> -
How to count ONLY fields with a specific value
I modified the code below from the API reference to count combobox fields with a value of "MT" so I could total the number of a specific choice the form user input.
var count = 0;
for (var i=0; i<this.numFields; i++)
var fname = this.getNthFieldName(i);
if ( this.getField(fname).type == "combobox" && this.getField(fname).value == "MT" ) count++;
this.getField("mTurb").value = count.value;
Here's the problem: I tried to use a similar script, modified only slightly from this form, in another total field to tally a different choice made with comboboxes and the script continues to tally the first choice. An example of one of the modified versions of the script is below.
var gcount = 0;
for (var i=0; i<this.numFields; i++)
var gname = this.getNthFieldName(i);
if ( this.getField(gname).type == "combobox" && this.getField(gname).value == "MT" ) gcount++;
this.getField("gPack").value = gcount.value;
I suspect I'm just missing something painfully obvious to seasoned scripters, but I can't seem to figure it out and I need this script to be able to count the number of 9 different options in the comboboxes.OK, you can use a script like the following as the custom calculate script for the text fields that perform the counts:
// Custom calculate script for text field
(function () {
// Declare and initialize variables
var fn, s = "MT", count = 0;
// Loop through the combo boxes
for (var i = 1; i < 25; i++) {
// Determine the current field name
fn = "M" + util.printf("%02d", i));
// See if the field value matches
if (getField(fn).valueAsString === s) count++
// Set this field value to the count
event.value = count;
Change the value of the "s" variable to match the item that you want to count. The first and last lines prevent the unnecessary creatio of global variables, which is good. It also makes it easy to transfer to a more general document-level routine, which would be event better, something like:
// Custom calculate script for text field
function getCBCount(s) {
var fn, count = 0;
// Loop through the combo boxes
for (var i = 1; i < 25; i++) {
// Determine the current field name
fn = "M" + util.printf("%02d", i));
// See if the field value matches
if (getField(fn).valueAsString === s) count++
// Set this field value to the count
event.value = count;
You would then call this function from the individual text boxes with the following custom calculate script:
getCBCount("MT");
and replace "MT" with the vlaue you want to count. -
How to determine how many times result set columns have same value
Hi -
I'm doing a report which will be used for payment trend analyses.
My initial result set looks like this:
HOUSEHOLD_ID JAN_PMT FEB_PMT MAR_PMT APR_PMT MAY_PMT JUN_PMT JUL_PMT AUG_PMT SEP_PMT OCT_PMT NOV_PMT DEC_PMT
90026845409 1 1 1 1 2 1 1 1 1 0 1 0(many rows, of course; result set pivoted)
I need to determine the households that have a > 0 value in three or more consecutive months.
I'm hoping someone will have some suggestions because the only solutions I'm coming up with right now would be a coding nightmare (lots of "OR's"), and I'm assuming (hoping) there's a better solution out there.
Thanks!
ChristineHi Frank,
I'm not sure I'm understanding how I would use those analytic functions. Here is my select statement:
SELECT HOUSEHOLD_ID,
SUM(CASE WHEN ( TO_NUMBER(TO_CHAR(RECEIVED_DATE, 'MM')) = 1 AND TO_NUMBER(TO_CHAR(RECEIVED_DATE, 'DD')) > 19 ) OR
( TO_NUMBER(TO_CHAR(RECEIVED_DATE, 'MM')) - 1 = 1 AND TO_NUMBER(TO_CHAR(RECEIVED_DATE, 'DD')) < 6 )
THEN 1 ELSE 0 END) AS JAN_PMT,
SUM(CASE WHEN ( TO_NUMBER(TO_CHAR(RECEIVED_DATE, 'MM')) = 2 AND TO_NUMBER(TO_CHAR(RECEIVED_DATE, 'DD')) > 19 ) OR
( TO_NUMBER(TO_CHAR(RECEIVED_DATE, 'MM')) - 1 = 2 AND TO_NUMBER(TO_CHAR(RECEIVED_DATE, 'DD')) < 6 )
THEN 1 ELSE 0 END) AS FEB_PMT,
SUM(CASE WHEN ( TO_NUMBER(TO_CHAR(RECEIVED_DATE, 'MM')) = 3 AND TO_NUMBER(TO_CHAR(RECEIVED_DATE, 'DD')) > 19 ) OR
( TO_NUMBER(TO_CHAR(RECEIVED_DATE, 'MM')) - 1 = 3 AND TO_NUMBER(TO_CHAR(RECEIVED_DATE, 'DD')) < 6 )
THEN 1 ELSE 0 END) AS MAR_PMT,
SUM(CASE WHEN ( TO_NUMBER(TO_CHAR(RECEIVED_DATE, 'MM')) = 4 AND TO_NUMBER(TO_CHAR(RECEIVED_DATE, 'DD')) > 19 ) OR
( TO_NUMBER(TO_CHAR(RECEIVED_DATE, 'MM')) - 1 = 4 AND TO_NUMBER(TO_CHAR(RECEIVED_DATE, 'DD')) < 6 )
THEN 1 ELSE 0 END) AS APR_PMT,
SUM(CASE WHEN ( TO_NUMBER(TO_CHAR(RECEIVED_DATE, 'MM')) = 5 AND TO_NUMBER(TO_CHAR(RECEIVED_DATE, 'DD')) > 19 ) OR
( TO_NUMBER(TO_CHAR(RECEIVED_DATE, 'MM')) - 1 = 5 AND TO_NUMBER(TO_CHAR(RECEIVED_DATE, 'DD')) < 6 )
THEN 1 ELSE 0 END) AS MAY_PMT,
SUM(CASE WHEN ( TO_NUMBER(TO_CHAR(RECEIVED_DATE, 'MM')) = 6 AND TO_NUMBER(TO_CHAR(RECEIVED_DATE, 'DD')) > 19 ) OR
( TO_NUMBER(TO_CHAR(RECEIVED_DATE, 'MM')) - 1 = 6 AND TO_NUMBER(TO_CHAR(RECEIVED_DATE, 'DD')) < 6 )
THEN 1 ELSE 0 END) AS JUN_PMT,
SUM(CASE WHEN ( TO_NUMBER(TO_CHAR(RECEIVED_DATE, 'MM')) = 7 AND TO_NUMBER(TO_CHAR(RECEIVED_DATE, 'DD')) > 19 ) OR
( TO_NUMBER(TO_CHAR(RECEIVED_DATE, 'MM')) - 1 = 7 AND TO_NUMBER(TO_CHAR(RECEIVED_DATE, 'DD')) < 6 )
THEN 1 ELSE 0 END) AS JUL_PMT,
SUM(CASE WHEN ( TO_NUMBER(TO_CHAR(RECEIVED_DATE, 'MM')) = 8 AND TO_NUMBER(TO_CHAR(RECEIVED_DATE, 'DD')) > 19 ) OR
( TO_NUMBER(TO_CHAR(RECEIVED_DATE, 'MM')) - 1 = 8 AND TO_NUMBER(TO_CHAR(RECEIVED_DATE, 'DD')) < 6 )
THEN 1 ELSE 0 END) AS AUG_PMT,
SUM(CASE WHEN ( TO_NUMBER(TO_CHAR(RECEIVED_DATE, 'MM')) = 9 AND TO_NUMBER(TO_CHAR(RECEIVED_DATE, 'DD')) > 19 ) OR
( TO_NUMBER(TO_CHAR(RECEIVED_DATE, 'MM')) - 1 = 9 AND TO_NUMBER(TO_CHAR(RECEIVED_DATE, 'DD')) < 6 )
THEN 1 ELSE 0 END) AS SEP_PMT,
SUM(CASE WHEN ( TO_NUMBER(TO_CHAR(RECEIVED_DATE, 'MM')) = 10 AND TO_NUMBER(TO_CHAR(RECEIVED_DATE, 'DD')) > 19 ) OR
( TO_NUMBER(TO_CHAR(RECEIVED_DATE, 'MM')) - 1 = 10 AND TO_NUMBER(TO_CHAR(RECEIVED_DATE, 'DD')) < 6 )
THEN 1 ELSE 0 END) AS OCT_PMT,
SUM(CASE WHEN ( TO_NUMBER(TO_CHAR(RECEIVED_DATE, 'MM')) = 11 AND TO_NUMBER(TO_CHAR(RECEIVED_DATE, 'DD')) > 19 ) OR
( TO_NUMBER(TO_CHAR(RECEIVED_DATE, 'MM')) - 1 = 11 AND TO_NUMBER(TO_CHAR(RECEIVED_DATE, 'DD')) < 6 )
THEN 1 ELSE 0 END) AS NOV_PMT,
SUM(CASE WHEN ( TO_NUMBER(TO_CHAR(RECEIVED_DATE, 'MM')) = 12 AND TO_NUMBER(TO_CHAR(RECEIVED_DATE, 'DD')) > 19 ) OR
( TO_NUMBER(TO_CHAR(RECEIVED_DATE, 'MM')) - 1 = 12 AND TO_NUMBER(TO_CHAR(RECEIVED_DATE, 'DD')) < 6 )
THEN 1 ELSE 0 END) AS DEC_PMT
FROM MONETARY_TRANS
WHERE MONETARY_TRANS_TYPE_ID = 1 --payment
--TESTING
AND HOUSEHOLD_ID = 90026845409
AND RESPONSIBLE_PARTY_TYPE_ID = 1 --household
AND RECEIVED_DATE > '01-JAN-2008'
AND ( TO_NUMBER(TO_CHAR(RECEIVED_DATE, 'DD')) < 6
OR TO_NUMBER(TO_CHAR(RECEIVED_DATE, 'DD')) > 19 )
AND PREMIUM_AMOUNT > 0
AND BILLING_TRANS_TYPE_ID = 6
AND MONETARY_TRANS_TYPE_ID = 1
AND RESPONSIBLE_PARTY_TYPE_ID = 1
GROUP BY HOUSEHOLD_IDAnd from this I get the results originally posted. From there I need to figure out the households that have values greater than 0 for three or more consecutive months.
Thanks for your help........
-Christine -
In MS Project 2007, I can use VBA code in Excel and determine if the selected task “Name” field is blanks by using the code “pj.Activecell.text <> “”.
In MS Project 2010, blank name cells are no longer “” (or blank), they are “Empty”. How do users filter for a non-standard value of “empty” then the text of “empty” is not in the task “Name” cell?Hi Dan,
Since I almost know nothing about VBA and I can only read but not write code, I'll let John or Rod (VBA kings on this forum) jump in.
But here is what I go recording the macro:
Sub Macro1()
SetAutoFilter FieldName:="Name", FilterType:=pjAutoFilterIn, Criteria1:=""
End Sub
Also ensure to have the latest version of Project 2010 since I noticed different behaviour with blank lines with 2 different versions.
Hope this helps,
Guillaume Rouyre, MBA, MCP, MCTS | -
Restrict User to specific Values in F4 Help.
Hi All,
How do we restrict user to some specific values in F4 Help. ?
Thanks & Regards
Himanshu Bhusan Sahoo.Hi,
use this function module CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST''
@ AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_werks(Field).
and pass only those values to this function which must be shown to the user.
Hope this helps you,
Regards,
Abhijit G. Borkar -
Delete a node containing a child node with specific value
Hello,
I wanted to know how to delete a node which contains specific value in one of its child node.
Here is the xml file
<?xml version="1.0" encoding="UTF-8"?>
<rows>
<ROW>
<part_num_ref ID="100124">1</part_num_ref>
<part_sht_nam_ref ID="100125">0</part_sht_nam_ref>
<part_country ID="100026">0</part_country>
<tot_cost__rtd ID="102281">0</tot_cost__rtd>
<tot_cost__demo ID="102282">0</tot_cost__demo>
<tot_cost__tra ID="102283">0</tot_cost__tra>
<tot_cost__coor ID="102284">0</tot_cost__coor>
<tot_cost__sprt ID="102285">0</tot_cost__sprt>
<tot_cost__mng ID="102286">0</tot_cost__mng>
<tot_cost__oth ID="102287">0</tot_cost__oth>
<tot_cost ID="100135">0</tot_cost>
<tot_rcpt ID="102016">0</tot_rcpt>
<tot_grant ID="100136">0</tot_grant>
</ROW>
<ROW>
<part_num_ref ID="100124">2</part_num_ref>
<part_sht_nam_ref ID="100125">0</part_sht_nam_ref>
<part_country ID="100026">0</part_country>
<tot_cost__rtd ID="102281">0</tot_cost__rtd>
<tot_cost__demo ID="102282">0</tot_cost__demo>
<tot_cost__tra ID="102283">0</tot_cost__tra>
<tot_cost__coor ID="102284">0</tot_cost__coor>
<tot_cost__sprt ID="102285">0</tot_cost__sprt>
<tot_cost__mng ID="102286">0</tot_cost__mng>
<tot_cost__oth ID="102287">0</tot_cost__oth>
<tot_cost ID="100135">0</tot_cost>
<tot_rcpt ID="102016">0</tot_rcpt>
<tot_grant ID="100136">0</tot_grant>
</ROW>
<ROW>
<part_num_ref ID="100124">3</part_num_ref>
<part_sht_nam_ref ID="100125">0</part_sht_nam_ref>
<part_country ID="100026">0</part_country>
<tot_cost__rtd ID="102281">0</tot_cost__rtd>
<tot_cost__demo ID="102282">0</tot_cost__demo>
<tot_cost__tra ID="102283">0</tot_cost__tra>
<tot_cost__coor ID="102284">0</tot_cost__coor>
<tot_cost__sprt ID="102285">0</tot_cost__sprt>
<tot_cost__mng ID="102286">0</tot_cost__mng>
<tot_cost__oth ID="102287">0</tot_cost__oth>
<tot_cost ID="100135">0</tot_cost>
<tot_rcpt ID="102016">0</tot_rcpt>
<tot_grant ID="100136">0</tot_grant>
</ROW>
<ROW>
<part_num_ref ID="100124">4</part_num_ref>
<part_sht_nam_ref ID="100125">0</part_sht_nam_ref>
<part_country ID="100026">0</part_country>
<tot_cost__rtd ID="102281">0</tot_cost__rtd>
<tot_cost__demo ID="102282">0</tot_cost__demo>
<tot_cost__tra ID="102283">0</tot_cost__tra>
<tot_cost__coor ID="102284">0</tot_cost__coor>
<tot_cost__sprt ID="102285">0</tot_cost__sprt>
<tot_cost__mng ID="102286">0</tot_cost__mng>
<tot_cost__oth ID="102287">0</tot_cost__oth>
<tot_cost ID="100135">0</tot_cost>
<tot_rcpt ID="102016">0</tot_rcpt>
<tot_grant ID="100136">0</tot_grant>
</ROW>
<ROW>
<part_num_ref ID="100124">5</part_num_ref>
<part_sht_nam_ref ID="100125">0</part_sht_nam_ref>
<part_country ID="100026">0</part_country>
<tot_cost__rtd ID="102281">0</tot_cost__rtd>
<tot_cost__demo ID="102282">0</tot_cost__demo>
<tot_cost__tra ID="102283">0</tot_cost__tra>
<tot_cost__coor ID="102284">0</tot_cost__coor>
<tot_cost__sprt ID="102285">0</tot_cost__sprt>
<tot_cost__mng ID="102286">0</tot_cost__mng>
<tot_cost__oth ID="102287">0</tot_cost__oth>
<tot_cost ID="100135">0</tot_cost>
<tot_rcpt ID="102016">0</tot_rcpt>
<tot_grant ID="100136">0</tot_grant>
</ROW>
<ROW>
<part_num_ref ID="100124">6</part_num_ref>
<part_sht_nam_ref ID="100125">0</part_sht_nam_ref>
<part_country ID="100026">0</part_country>
<tot_cost__rtd ID="102281">0</tot_cost__rtd>
<tot_cost__demo ID="102282">0</tot_cost__demo>
<tot_cost__tra ID="102283">0</tot_cost__tra>
<tot_cost__coor ID="102284">0</tot_cost__coor>
<tot_cost__sprt ID="102285">0</tot_cost__sprt>
<tot_cost__mng ID="102286">0</tot_cost__mng>
<tot_cost__oth ID="102287">0</tot_cost__oth>
<tot_cost ID="100135">0</tot_cost>
<tot_rcpt ID="102016">0</tot_rcpt>
<tot_grant ID="100136">0</tot_grant>
</ROW>
<ROW>
<part_num_ref ID="100124">7</part_num_ref>
<part_sht_nam_ref ID="100125">0</part_sht_nam_ref>
<part_country ID="100026">0</part_country>
<tot_cost__rtd ID="102281">0</tot_cost__rtd>
<tot_cost__demo ID="102282">0</tot_cost__demo>
<tot_cost__tra ID="102283">0</tot_cost__tra>
<tot_cost__coor ID="102284">0</tot_cost__coor>
<tot_cost__sprt ID="102285">0</tot_cost__sprt>
<tot_cost__mng ID="102286">0</tot_cost__mng>
<tot_cost__oth ID="102287">0</tot_cost__oth>
<tot_cost ID="100135">0</tot_cost>
<tot_rcpt ID="102016">0</tot_rcpt>
<tot_grant ID="100136">0</tot_grant>
</ROW>
<ROW>
<part_num_ref ID="100124">8</part_num_ref>
<part_sht_nam_ref ID="100125">0</part_sht_nam_ref>
<part_country ID="100026">0</part_country>
<tot_cost__rtd ID="102281">0</tot_cost__rtd>
<tot_cost__demo ID="102282">0</tot_cost__demo>
<tot_cost__tra ID="102283">0</tot_cost__tra>
<tot_cost__coor ID="102284">0</tot_cost__coor>
<tot_cost__sprt ID="102285">0</tot_cost__sprt>
<tot_cost__mng ID="102286">0</tot_cost__mng>
<tot_cost__oth ID="102287">0</tot_cost__oth>
<tot_cost ID="100135">0</tot_cost>
<tot_rcpt ID="102016">0</tot_rcpt>
<tot_grant ID="100136">0</tot_grant>
</ROW>
<ROW>
<part_num_ref ID="100124">9</part_num_ref>
<part_sht_nam_ref ID="100125">0</part_sht_nam_ref>
<part_country ID="100026">0</part_country>
<tot_cost__rtd ID="102281">0</tot_cost__rtd>
<tot_cost__demo ID="102282">0</tot_cost__demo>
<tot_cost__tra ID="102283">0</tot_cost__tra>
<tot_cost__coor ID="102284">0</tot_cost__coor>
<tot_cost__sprt ID="102285">0</tot_cost__sprt>
<tot_cost__mng ID="102286">0</tot_cost__mng>
<tot_cost__oth ID="102287">0</tot_cost__oth>
<tot_cost ID="100135">0</tot_cost>
<tot_rcpt ID="102016">0</tot_rcpt>
<tot_grant ID="100136">0</tot_grant>
</ROW>
<ROW>
<part_num_ref ID="100124">10</part_num_ref>
<part_sht_nam_ref ID="100125">0</part_sht_nam_ref>
<part_country ID="100026">0</part_country>
<tot_cost__rtd ID="102281">0</tot_cost__rtd>
<tot_cost__demo ID="102282">0</tot_cost__demo>
<tot_cost__tra ID="102283">0</tot_cost__tra>
<tot_cost__coor ID="102284">0</tot_cost__coor>
<tot_cost__sprt ID="102285">0</tot_cost__sprt>
<tot_cost__mng ID="102286">0</tot_cost__mng>
<tot_cost__oth ID="102287">0</tot_cost__oth>
<tot_cost ID="100135">0</tot_cost>
<tot_rcpt ID="102016">0</tot_rcpt>
<tot_grant ID="100136">0</tot_grant>
</ROW>
<ROW>
<part_num_ref ID="100124">11</part_num_ref>
<part_sht_nam_ref ID="100125">0</part_sht_nam_ref>
<part_country ID="100026">0</part_country>
<tot_cost__rtd ID="102281">0</tot_cost__rtd>
<tot_cost__demo ID="102282">0</tot_cost__demo>
<tot_cost__tra ID="102283">0</tot_cost__tra>
<tot_cost__coor ID="102284">0</tot_cost__coor>
<tot_cost__sprt ID="102285">0</tot_cost__sprt>
<tot_cost__mng ID="102286">0</tot_cost__mng>
<tot_cost__oth ID="102287">0</tot_cost__oth>
<tot_cost ID="100135">0</tot_cost>
<tot_rcpt ID="102016">0</tot_rcpt>
<tot_grant ID="100136">0</tot_grant>
</ROW>
<ROW>
<part_num_ref ID="100124">12</part_num_ref>
<part_sht_nam_ref ID="100125">0</part_sht_nam_ref>
<part_country ID="100026">0</part_country>
<tot_cost__rtd ID="102281">0</tot_cost__rtd>
<tot_cost__demo ID="102282">0</tot_cost__demo>
<tot_cost__tra ID="102283">0</tot_cost__tra>
<tot_cost__coor ID="102284">0</tot_cost__coor>
<tot_cost__sprt ID="102285">0</tot_cost__sprt>
<tot_cost__mng ID="102286">0</tot_cost__mng>
<tot_cost__oth ID="102287">0</tot_cost__oth>
<tot_cost ID="100135">0</tot_cost>
<tot_rcpt ID="102016">0</tot_rcpt>
<tot_grant ID="100136">0</tot_grant>
</ROW>
<ROW>
<part_num_ref ID="100124">13</part_num_ref>
<part_sht_nam_ref ID="100125">0</part_sht_nam_ref>
<part_country ID="100026">0</part_country>
<tot_cost__rtd ID="102281">0</tot_cost__rtd>
<tot_cost__demo ID="102282">0</tot_cost__demo>
<tot_cost__tra ID="102283">0</tot_cost__tra>
<tot_cost__coor ID="102284">0</tot_cost__coor>
<tot_cost__sprt ID="102285">0</tot_cost__sprt>
<tot_cost__mng ID="102286">0</tot_cost__mng>
<tot_cost__oth ID="102287">0</tot_cost__oth>
<tot_cost ID="100135">0</tot_cost>
<tot_rcpt ID="102016">0</tot_rcpt>
<tot_grant ID="100136">0</tot_grant>
</ROW>
<ROW>
<part_num_ref ID="100124">14</part_num_ref>
<part_sht_nam_ref ID="100125">0</part_sht_nam_ref>
<part_country ID="100026">0</part_country>
<tot_cost__rtd ID="102281">0</tot_cost__rtd>
<tot_cost__demo ID="102282">0</tot_cost__demo>
<tot_cost__tra ID="102283">0</tot_cost__tra>
<tot_cost__coor ID="102284">0</tot_cost__coor>
<tot_cost__sprt ID="102285">0</tot_cost__sprt>
<tot_cost__mng ID="102286">0</tot_cost__mng>
<tot_cost__oth ID="102287">0</tot_cost__oth>
<tot_cost ID="100135">0</tot_cost>
<tot_rcpt ID="102016">0</tot_rcpt>
<tot_grant ID="100136">0</tot_grant>
</ROW>
<ROW>
<part_num_ref ID="100124">15</part_num_ref>
<part_sht_nam_ref ID="100125">0</part_sht_nam_ref>
<part_country ID="100026">0</part_country>
<tot_cost__rtd ID="102281">0</tot_cost__rtd>
<tot_cost__demo ID="102282">0</tot_cost__demo>
<tot_cost__tra ID="102283">0</tot_cost__tra>
<tot_cost__coor ID="102284">0</tot_cost__coor>
<tot_cost__sprt ID="102285">0</tot_cost__sprt>
<tot_cost__mng ID="102286">0</tot_cost__mng>
<tot_cost__oth ID="102287">0</tot_cost__oth>
<tot_cost ID="100135">0</tot_cost>
<tot_rcpt ID="102016">0</tot_rcpt>
<tot_grant ID="100136">0</tot_grant>
</ROW>
<ROW>
<part_num_ref ID="100124">16</part_num_ref>
<part_sht_nam_ref ID="100125">0</part_sht_nam_ref>
<part_country ID="100026">0</part_country>
<tot_cost__rtd ID="102281">0</tot_cost__rtd>
<tot_cost__demo ID="102282">0</tot_cost__demo>
<tot_cost__tra ID="102283">0</tot_cost__tra>
<tot_cost__coor ID="102284">0</tot_cost__coor>
<tot_cost__sprt ID="102285">0</tot_cost__sprt>
<tot_cost__mng ID="102286">0</tot_cost__mng>
<tot_cost__oth ID="102287">0</tot_cost__oth>
<tot_cost ID="100135">0</tot_cost>
<tot_rcpt ID="102016">0</tot_rcpt>
<tot_grant ID="100136">0</tot_grant>
</ROW>
<ROW>
<part_num_ref ID="100124">17</part_num_ref>
<part_sht_nam_ref ID="100125">0</part_sht_nam_ref>
<part_country ID="100026">0</part_country>
<tot_cost__rtd ID="102281">0</tot_cost__rtd>
<tot_cost__demo ID="102282">0</tot_cost__demo>
<tot_cost__tra ID="102283">0</tot_cost__tra>
<tot_cost__coor ID="102284">0</tot_cost__coor>
<tot_cost__sprt ID="102285">0</tot_cost__sprt>
<tot_cost__mng ID="102286">0</tot_cost__mng>
<tot_cost__oth ID="102287">0</tot_cost__oth>
<tot_cost ID="100135">0</tot_cost>
<tot_rcpt ID="102016">0</tot_rcpt>
<tot_grant ID="100136">0</tot_grant>
</ROW>
</rows>
I would like to delete one of the node <ROW> which contains the value 1 for the child node <part_num_ref >
Is it possible?
Thanks in advance for your answers.
Regards,
Stessy DelcroixThe following is a possibility on database version 10.2.x (what database version are you using?):
Example from XMLDB Developers Guide 10.2
Example 4-26 Deleting LineItem Element Number 222
SELECT extract(OBJECT_VALUE,
'/PurchaseOrder/LineItems/LineItem[@ItemNumber="222"]')
FROM purchaseorder
WHERE existsNode(OBJECT_VALUE,
'/PurchaseOrder[Reference="AMCEWEN-20021009123336171PDT"]')
= 1;
EXTRACT(OBJECT_VALUE,'/PURCHASEORDER/LINEITEMS/LINEITEM[@ITEMNUMBER="222"]')
<LineItem ItemNumber="222">
<Description>The Harder They Come</Description>
<Part Id="953562951413" UnitPrice="22.95" Quantity="1"/>
</LineItem>
1 row selected.
UPDATE purchaseorder
SET OBJECT_VALUE =
deleteXML(OBJECT_VALUE,
'/PurchaseOrder/LineItems/LineItem[@ItemNumber="222"]')
WHERE existsNode(OBJECT_VALUE,
'/PurchaseOrder[Reference="AMCEWEN-20021009123336171PDT"]')
= 1;
SELECT extract(OBJECT_VALUE,
'/PurchaseOrder/LineItems/LineItem[@ItemNumber="222"]')
FROM purchaseorder
WHERE existsNode(OBJECT_VALUE,
'/PurchaseOrder[Reference="AMCEWEN-20021009123336171PDT"]')
= 1;
EXTRACT(OBJECT_VALUE,'/PURCHASEORDER/LINEITEMS/LINEITEM[@ITEMNUMBER="222"]')
1 row selected. -
How can I sum the values in a given column on sheet 1 i.e. A1:A50 based on the adjacent columns specific value i.e. B1:B50 = “Dinning Room” on sheet 2
For Example:
SHEET 1
A
B
$50
Dinning Room
$800
Dinning Room
$300
Kitchen
$1,000
Master Bedroom
$100
Dinning Room
SHEET 2
Display the total SUM amount of each Project based on Sheet 1
Project Name
Total Cost
Dinning Room
$950
Kitchen
$300Would be a good idea to open iWork Formulas and Functions User Guide and search for the description of the function named SUMIF
The Guide is available for every user thru the Help menu.
Yvan KOENIG (VALLAURIS, France) jeudi 19 mai 2011 17:32:42
Please :
Search for questions similar to your own before submitting them to the community
To be the AW6 successor, iWork MUST integrate a TRUE DB, not a list organizer !
Maybe you are looking for
-
Can i use my apple remote with garageband 11?
Can I use my apple remote to start/stop recording in GB11? Thanks for any help PC
-
Can't print from my iPad2 to my airprint printer
I have an iPad2 and an HP Officejet 8500 wireless printer. I have been unable to print to it from my iPad. I even tried an app and that didn't work either(before I realized my printer is Airprint enabled). I'm not sure how to check the firmware that
-
Automatic Rule Determination Based on Service Order Type
Hi Experts, I have a requirement to determine the rule based on the custom service order type. I have created 2 custom rules which are then assigned to 2 different org units as needed. Now the thing is i want to avoid putting condition step if else b
-
In testing 9 and X, "Compare Docs" we have a critical issue and really need help!
For years we have used Acrobat 7 to do PDF compares and we love it! However, the company recently advised we must upgrade to 9 and then eventually to X. In testing 9 and X, Compare Docs we have a critical issue and really need help. Our PDFs are p
-
Officejet 7410 All-in-One photo printing thin white lines
I haven't had this problem before. First, I had 2 thin white lines near the left edge of the paper -- 1st, 1 1/4 inches from left edge; 2d, 2 1/2 inches from left edge. I cleaned the cartridges automatically. Then, I had only one thin white line,