Display group by field value only once for each group
I have a table with following fields:
TicketNo (varchar2)
TName (varchar2)
DateIssue (Date/Time)
I wanto retrieve result in the following form:
DateIssue TName TicketNo
01-oct-2006 ABC 123-7733
DEF 545-54454
GHI 254-4545
02-oct-2006 JKL 454-7897
MNO 444-7878
TName and TicketNos must be grouped by DateIssue. Since "Group By" clause uses agregate functions only, therefore this type of query will not run:
SQL> Select DateIssue,TName,TicketNo from Table1 group by DateIssue order by DateIssue;
How to display the above given result?
SQL> select * from tickets;
TICKETNO TNAME DATEISSUE
121-565 abc 04-FEB-07
454-hj def 04-FEB-07
4545-856 gftr 03-FEB-07
fg45-856 gth 03-FEB-07
SQL> select decode(row_number() over(partition by to_date(dateissue) order by ticketno),1,dateissue) dateissue
2 ,tname,ticketno
3 from tickets;
DATEISSUE TNAME TICKETNO
03-FEB-07 gftr 4545-856
gth fg45-856
04-FEB-07 abc 121-565
def 454-hj
Message was edited by:
jeneesh
Similar Messages
-
How to set a payload field value only once for multiple instances selected?
The user needs to set a payload field value and then he can approve the task so the task can continue through the process, that's fine when the user selects one instance and sets the value in the task details section and then clicks the approve button, but how do we achieve the same behavior in a multiple way?, I mean the user can select multiple tasks in the workspace (in this case the details task page is not available and instead the following label appear "Multiple tasks selected") then if the user clicks the Actions drop down -> APPROVE he only gets the message "your request was processed successfully", so how can the user modify the payload field value only once for all the selected tasks so when he clicks APPROVE the value is populated in all the instances selected.
Thanks,
Carlos.In the action which displays the edit page just set the form idx value before displaying the jsp.
-
How to display field value only once in REUSE_ALV_GRID_DISPLAY
hi experts,
i am using REUSE_ALV_GRID_DISPLAY, for alv outpur display.but i want one of the field in output ,not to display the value which is of same, it have to be displayed only once, I mean i have a number which contains multiple line items corresponding, here i want to display the field value only once when it is repeating , for the same header number, how can i achieve itHi,
check the sample code,
REPORT Z_ALV.
Database table declaration
TABLES:
sflight.
Typepool declaration
TYPE-POOLS:
slis.
Selection screen elements
SELECTION-SCREEN BEGIN OF BLOCK blk_1 WITH FRAME TITLE text-000.
SELECT-OPTIONS:
s_carrid FOR sflight-carrid.
SELECTION-SCREEN END OF BLOCK blk_1.
Field string to hold sflight data
DATA:
BEGIN OF fs_sflight ,
carrid TYPE sflight-carrid, " Carrier Id
connid TYPE sflight-connid, " Connection No
fldate TYPE sflight-fldate, " Flight date
seatsmax TYPE sflight-seatsmax, " Maximum seats
seatsocc TYPE sflight-seatsocc, " Occupied seats
END OF fs_sflight.
Internal table to hold sflight data
DATA:
t_sflight LIKE
STANDARD TABLE
OF fs_sflight .
Work variables
DATA:
t_fieldcat TYPE slis_t_fieldcat_alv,
fs_fieldcat LIKE
LINE OF t_fieldcat.
*START-OF-SELECTION
START-OF-SELECTION.
PERFORM get_data_sflight. " Getting data for display
PERFORM create_field_cat. " Create field catalog
PERFORM alv_display.
*& Form create_field_cat
Subroutine to create field catalog
There is no interface paramete
FORM create_field_cat .
PERFORM fill_fieldcat USING 'Carrier Id' 'CARRID' '2'.
PERFORM fill_fieldcat USING 'Connection No' 'CONNID' '1'.
PERFORM fill_fieldcat USING 'Flight Date' 'FLDATE' '3'.
PERFORM fill_fieldcat USING 'Maxm.Seats' 'SEATSMAX' '4'.
PERFORM fill_fieldcat USING 'Seats Occ' 'SEATSOCC' '5'.
ENDFORM. "create_field_cat
*& Form fill_fieldcat
Subroutine to fill data to field column
-->p_seltext Column label
-->p_fieldname Fieldname of database table
-->p_col_pos Column position
FORM fill_fieldcat USING
p_seltext LIKE fs_fieldcat-seltext_m
p_fieldname LIKE fs_fieldcat-fieldname
p_col_pos LIKE fs_fieldcat-col_pos.
fs_fieldcat-seltext_m = p_seltext.
fs_fieldcat-fieldname = p_fieldname.
fs_fieldcat-col_pos = p_col_pos.
APPEND fs_fieldcat TO t_fieldcat.
CLEAR fs_fieldcat.
ENDFORM. " fill_fieldcat
*& Form get_data_sflight
Subroutine to fetch data from database table
There is no interface parameter
FORM get_data_sflight .
SELECT carrid
connid
fldate
seatsmax
seatsocc
FROM sflight
INTO TABLE t_sflight
WHERE carrid IN s_carrid.
ENDFORM. " get_data_sflight
*& Form alv_display
Subroutine for ALV display
There is no interface parameter
FORM alv_display .
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
it_fieldcat = t_fieldcat
TABLES
t_outtab = t_sflight
EXCEPTIONS
program_error = 1
OTHERS = 2.
IF sy-subrc NE 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
ENDFORM. " alv_display
End of code -
Information in Template Header with value from 3 for-each groups
Hi,
i have an datamodel with 3 nested groups and in my rtf-template i'm using 3 for each-loops to give the data out.
It works fine, i can show the data on every level.
But now our customers wants in the Header of each page information with values from each group.
Like Land-District-City.
My first Test was with the @section-condition to get the right data in the Header.
But it only works fine for the first group and not further....
Anybody an idea? May be more then one @section?
Regards ChristianHi Mike,
I found some two mistakes that should solve your problems:
1. typo: use "raw_value" with underscore, then the "category" works.
2. The array support of the Generic Panel is limited to semicolon-separated term lists in a text field,
where each term represent an array item.
For example the "supplemental categories" property should look like:
<xmp_property
name="SupplementalCategories" category="external"
label="$$$/stewart/Class=Classification:" type="bag" element_type="text"
xmp_path="SupplementalCategories" ui:multiLine="true" ui:mru="true" description="..."
/>
Hope this helps,
-- Stefan -
How to compare the value node of a for-each-group with other for-each-group
Hello!
I have a report in Oracle BI Publisher (10.1.3.2) with several data set. My XML schema is something like
<DATA>
<PARAMETERS>
<MY_PARAMETERS>
<A_ID>12345</A_ID>
<DESCRIPTION>ABC</DESCRIPTION>
<VALUE>111111</VALUE>
</MY_PARAMETERS>
<MY_PARAMETERS>
<A_ID>12345</A_ID>
<DESCRIPTION>DEF</DESCRIPTION>
<VALUE>222222</VALUE>
</MY_PARAMETERS>
<MY_PARAMETERS>
<A_ID>67890</A_ID>
<DESCRIPTION>ABC</DESCRIPTION>
<VALUE>333333</VALUE>
</MY_PARAMETERS>
</PARAMETERS>
<NAMES>
<MY_NAMES>
<A_ID>12345</A_ID>
<NAME>ASDF</NAME>
</MY_NAMES>
<MY_NAMES>
<A_ID>67890</A_ID>
<NAME>EFGH</NAME>
</MY_NAMES>
</NAMES>
<VALUES>
<MY_VALUES>
<A_ID>12345<A_ID>
<VALUE>10987</VALUE>
<DESCRIPTION>ASDFG</DESCRIPTION>
</MY_VALUES>
<MY_VALUES>
<A_ID>12345<A_ID>
<VALUE>26385</VALUE>
<DESCRIPTION>EFGHI</DESCRIPTION>
</MY_VALUES>
<MY_VALUES>
<A_ID>67890<A_ID>
<VALUE>24355</VALUE>
<DESCRIPTION>ASDFG</DESCRIPTION>
</MY_VALUES>
</VALUES>
</DATA>
I'm trying to build a rtf template in Word using this XML schema. The "A_ID" nodes in each group in my data have the same value. I want for each "A_ID" take the respective values in /DATA/VALUES/MY_VALUES.
<?for-each-group:MY_PARAMETERS;./A_ID?>
<?for-each:current-group()?>
<?choose:?><?when: DESCRIPTION='ABC'?>
<?VALUE?>
<?end when?><?end choose?>
<?end for-each?>
<?for-each:current-group()?>
<?choose:?><?when: DESCRIPTION='DEF'?>
<?VALUE?>
<?end when?><?end choose?>
<?end for-each?>
<?/DATA/NAMES/MY_NAMES/VALUE?>
<?for-each-group:/DATA/VALUES/MY_VALUES;./A_ID?>
<?for-each:current-group()?>
<?choose:?><?when: DESCRIPTION='ASDFG'?>
<?VALUE?> <---------------- I obtain for this node the '24355' and '10987' values
<?end when?><?end choose?>
I want to know how to obtain only '24355' value, this is, the value for A_ID (/DATA/VALUES/MY_VALUES) = A_ID (/DATA/PARAMETERS/MY_PARAMETERS).
Can someone help me?CREATE OR REPLACE TRIGGER "TEST_TRG"
BEFORE UPDATE OF "STATUS"
ON "TABLE1"
FOR EACH ROW
BEGIN
IF (:NEW.status = 'HOLD')
THEN
INSERT INTO table2
(status
VALUES (:NEW.status
END IF;
END;You should learn how to write PL/SQL code.
Denes Kubicek
http://deneskubicek.blogspot.com/
http://www.apress.com/9781430235125
http://apex.oracle.com/pls/apex/f?p=31517:1
http://www.amazon.de/Oracle-APEX-XE-Praxis/dp/3826655494
------------------------------------------------------------------- -
There are tables(and columns) like:
'Clients'(clientID)
'Houses' (houseID)
'Visits' (clientID, houseID, visit_date)
'Contracts'(contractID, houseID, clientID, rentDate_from, rentDate_end)
I have problem with writing MS SQL query of this kind:
how many visits to houses did each client, before renting one of them?
Its easy to count total number of Visits for each client, listing all visits + group by clientID and selecting count(*) for each group.
Lets say this is select_1, and select_2 is listing all Contracts for all clients.
Select_1 is not answer, because count must be performed only on groups, which:
-have at least 1 row "like" row in select_2 (it means that at least one of visited houses was rented, because it can happen that client visited few houses, but rented other, not visited house). my idea for this is comparing select_1 and select_2 with:
"where s1.clientID=s2.clientID and s1.houseID=s2.houseID"
-each group must have all rows(visits) with date of same day or earlier than contract date
maybe: "datediff(day, s1.visit_date, s2.rentDate_from) >= 0"In future, please provide proper DML, DDL and example data, like I have for you below.
DECLARE @clients TABLE (clientID INT, name VARCHAR(20))
INSERT INTO @clients (clientID, name)
VALUES (1, 'Jonathan'),(2, 'Christopher'),(3, 'James'),(4, 'Jean-Luc'),(5, 'William')
DECLARE @houses TABLE (houseID INT, address VARCHAR(20))
INSERT INTO @houses (houseID, address)
VALUES (1, 'NX01'),(2, 'NCC 1701'),(3, 'NCC 1071A'),(4, 'NCC 1701D'),(5, 'NCC 1701E')
DECLARE @visits TABLE (clientID INT, houseID INT, visitDateTime DATETIME)
INSERT INTO @visits (clientID, houseID, visitDateTime)
VALUES (1,1,'2001-01-01 12:13:14'),
(2,2,'2001-01-02 12:13:14'),
(3,2,'2001-01-01 12:13:14'),(3,3,'2001-01-01 12:13:14'),
(4,4,'2001-01-01 12:13:14'),(4,5,'2001-01-01 12:13:14'),
(5,4,'2001-01-01 12:13:14'),(5,5,'2001-01-01 12:13:14')
DECLARE @contracts TABLE (contractID INT IDENTITY, houseID INT, clientID INT, rentStartDate date, rentEndDate date)
INSERT INTO @contracts (houseID, clientID, rentStartDate, rentEndDate)
VALUES (1,1,'2001-01-02',NULL),(2,2,'2001-01-02',NULL),(3,3,'2001-01-02',NULL),(4,4,'2001-01-02',NULL),(5,5,'2001-01-02',NULL)
SELECT contractID, c.houseID, c.clientID, rentStartDate, rentEndDate, cl.clientID, name, h.houseID, address, COUNT(v.clientID) AS visits
FROM @contracts c
LEFT OUTER JOIN @clients cl
ON c.clientID = cl.clientID
LEFT OUTER JOIN @houses h
ON c.houseID = h.houseID
LEFT OUTER JOIN @visits v
ON c.clientID = v.clientID
AND c.rentStartDate >= v.visitDateTime
GROUP BY contractID, c.houseID, c.clientID, rentStartDate, rentEndDate, cl.clientID, name, h.houseID, address -
Need to display records only once for that particular group
Hi,
I have a requirement like displaying repeated records only once for that particular group.
For eg, in the emp table, I need to display repeated deptno only once for the particular group of job.
And for the above requirement I have used the below query,
SELECT empno, DECODE (LAG (job, 1) OVER (ORDER BY job), job, NULL, job),
DECODE (LAG (deptno, 1) OVER (ORDER BY deptno), deptno, NULL, deptno)
FROM emp;
Output:
EMPNO JOB DEPTNO
7782 10
7934 CLERK
7839 PRESIDENT
7876 20
7788
7902 ANALYST
7566 MANAGER
7844 30
7900
7654 SALESMAN
7698
But in the above output you can find that, say deptno 10 is getting displayed only once, whereas I want that deptno 10 to be checked whether it is getting repeated within the group of JOB and than hide the deptno 10 only if it is repeated within that job group. If not, deptno 10 should be displayed again.
Please help me in this.
Regards,
ShivaHi,
Hope the below helps.
SELECT emp_id, job, deptno,
CASE WHEN LAG(deptno, 1) OVER (partition by job order by deptno) = deptno THEN null else deptno end
FROM empRegards
Ameya -
Running a query only once for a report in Reports 6i in a BEFORE REPORT trigger.
Hello all -
I am using Oracle Reports 6i on Windows NT 4.0 SP 6.0.
The report I am converting from Access to Oracle Reports is
rather complex, and features detail by decile (a rank) within
territory (geographical sales area). Also it features a summary
at the bottom of each territory/decile combination which
summarizes not only the territory information, but goes above
that to higher levels like district, region, and national.
With the help of a consultant, we have managed to get the report
almost finished. However, we are running into a snag with the
summary. While my two main queries need to run in the data
model as normal, I would like to run the summary query _only
once_ during the entire cycle of the report, and have the report
fields populated once for the entire report. This is possible
because for a district, the summary numbers are the same on
every page of the report, only the territory information
changes. So by only having the query run once and fill the
report values once, this would save considerably on the report
runtime.
However, I have tried a few different methods but cannot get the
report to recognize the fields in the query, most likely because
they are out of scope at report creation. Does anyone have any
ideas on how I can accomplish this in Reports? Any help would
be appreciated - I hope my question was clear, if not please let
me know.
Thanks,
-Jennifer PrichardHello!
You can place in the data model editor formula and placeholder
columns outside of any groups. I think you need for each of your
summary-attibutes a placeholder column and one formula column.
Use the formula column to populate the placeholders via PL/SQL.
Afterwords you can reference the placeholders anywhere you want.
Regards,
Hajo Winkler -
Pl.ignore pevious post--make some fields appear only once....
hi,
my report looks like this:
batch no:-date:----name:--amount:---so many fields:
1---------01/01/03---abc----$50------.....
----------01/01/03---bcd----$20------.....
----------01/02/03---hgi----$30------.....
----------BATCH TOTAl:-----$100
=====================================================
question:-> is there any way that I can make date field appear only once if the date is same?
Thanks,
prasad.That is the trick of my question.
I wanted the total value to be grouped by Batch Number and NOT by date and at the same time date should not appear more than once.
I am not able to convince my client that it is not possible in Oracle to TOTAL BY BATCH NUMBER and GROUP BY DATE.
Someone has created this report in some other report writing tool (I think MS-ACCESS), and they want the same report in Oralce now at any cost.
Can I achieve this by writing a trigger? If yes, is there any link or help available?
Thanks for the reply.
Regards,
Prasad. -
Using MISSING FIELD VALUES ARE NULL for external table
I want to place a null for values missing in the sub_account field. Here is my external table:
CREATE OR REPLACE DIRECTORY INCOMING_ORDERS_log_dir
AS 'c:\starpubs\starpubs\dataformats\logs\INCOMING_ORDERS\log';
CREATE OR REPLACE DIRECTORY INCOMING_ORDERS_bad_dir
AS 'c:\starpubs\starpubs\dataformats\logs\INCOMING_ORDERS\bad';
create table ext_INCOMING_ORDERS_table (
Account varchar(5),
Sub_Account varchar(1),
Override_Code varchar(1),
Nomenclature varchar(28),
chg_nbr varchar(3),
quantity integer,
U_I varchar(5),
zipcode varchar(5),
type_reject varchar(2)
organization external
type oracle_loader
default directory user_dir
access parameters
records delimited by newline
missing field values are null
badfile INCOMING_ORDERS_bad_dir:'INCOMING_ORDERS%a_%p.bad'
logfile INCOMING_ORDERS_log_dir:'INCOMING_ORDERS%a_%p.log'
fields
Account(1:5) char(5),
Sub_Account(7:7) char(1),
Override_Code(10:10) char(1),
Nomenclature(11:38) char(28),
chg_nbr(40:42) char(3),
quantity(44:48) integer external,
U_I(50:54) char(5),
zipcode(56:60) char(5),
type_reject(61:62) char(2)
location('PTCLICK.MANUAL.NOMEN.TXT','PTCLICK.ORDERS.TXT', 'EUR_RES.TXT', 'MQ.TXT', 'BPRO.TXT')
reject limit unlimited;
How can I place the MISSING FIELD VALUES ARE NULL for missing values for the sub_account?made the change I received this error:
SQL> select * from ext_INCOMING_ORDERS_table;
select * from ext_INCOMING_ORDERS_table
ERROR at line 1:
ORA-29913: error in executing ODCIEXTTABLEOPEN callout
ORA-29400: data cartridge error
KUP-00554: error encountered while parsing access parameters
KUP-01005: syntax error: found "no": expecting one of: "comma, date_format,
defaultif, enclosed, ltrim, lrtrim, ldrtrim, notrim, nullif, optionally, ),
rtrim, terminated"
KUP-01007: at line 7 column 26
CREATE OR REPLACE DIRECTORY INCOMING_ORDERS_log_dir
AS 'c:\starpubs\starpubs\dataformats\logs\INCOMING_ORDERS\log';
CREATE OR REPLACE DIRECTORY INCOMING_ORDERS_bad_dir
AS 'c:\starpubs\starpubs\dataformats\logs\INCOMING_ORDERS\bad';
create table ext_INCOMING_ORDERS_table (
Account varchar(5),
Sub_Account varchar(1),
Override_Code varchar(1),
Nomenclature varchar(28),
chg_nbr varchar(3),
quantity integer,
U_I varchar(5),
zipcode varchar(5),
type_reject varchar(2)
organization external
type oracle_loader
default directory user_dir
access parameters
records delimited by newline
badfile INCOMING_ORDERS_bad_dir:'INCOMING_ORDERS%a_%p.bad'
logfile INCOMING_ORDERS_log_dir:'INCOMING_ORDERS%a_%p.log'
fields
Account(1:5) char(5),
Sub_Account(7:7) char(1) NO PRESERVE BLANKS,
Override_Code(10:10) char(1),
Nomenclature(11:38) char(28),
chg_nbr(40:42) char(3),
quantity(44:48) integer external,
U_I(50:54) char(5),
zipcode(56:60) char(5),
type_reject(61:62) char(2)
location('PTCLICK.MANUAL.NOMEN.TXT','PTCLICK.ORDERS.TXT', 'EUR_RES.TXT', 'MQ.TXT', 'BPRO.TXT')
reject limit unlimited; -
Write to measurement file note: x values only guaranteed for one data signal?
Hi everyone,
Attached is a vi I have developed... When I save the data my .lvm file has a note in the header than says" X values only guaranteed for Power (Filtered)".... Power is one of 9 signals... I am not sure what this note means, but I assume that there is a problem synching these signals to a common timebase...
Would someone be able to explain this note and how I can fix it? Any comments/advice would be greatly appreciated.
Regards,
Jack
Solved!
Go to Solution.
Attachments:
HRJack1.vi 361 KB
Lode_Test_14.xlsx 973 KBHi Dennis,
Thanks for your reply... How can I change the scalars to dynamic data?... I want this single value to be written as the same rates of the other values (4kHz).... So the current heart rate value should be written each iteration as with the other data until the value updates...? That is to say, I want a heart rate value for every data point/row in the .lvm file?
Any suggestions would be appreciated... I have been working on this for some time and am getting no where..
Regards,
Jack -
Last() not returning correct value within for-each-group
I've found inconsistent results between JDeveloper and SOA Suite using the xslt 2.0 for-each-group construct.
<xsl:for-each-group select="Po/PoLine" group-by="itemId">
<xsl:if test="position()=1">
<GroupCount>
<xsl:value-of select="last()"/>
</GroupCount>
</xsl:if>
</xsl:for-each-group>
What I expect is the function last() to give me the number of groups which is the unique number of itemIds.
In JDeveloper 10.1.3.4, testing this construct gives me what I expect.
At run-time (deployed to 10.1.3.3 SOA Suite), the value returned is the total number of records, not the number of groups.
For example, given the following XML
<Po>
<PoLine>
<itemId><strong>001</strong></itemId>
<description>Hammer</description>
<quantity>10</quantity>
</PoLine>
<PoLine>
<itemId><strong>001</strong></itemId>
<description>Hammer</description>
<quantity>10</quantity>
</PoLine>
<PoLine>
<itemId><strong>002</strong></itemId>
<description>Nail</description>
<quantity>10</quantity>
</PoLine>
</Po>
Grouping by <strong>itemId</strong>, last() should return 2 as there are two groups (001 and 002). JDeveloper does this.
When deployed to SOA Suite, last() returns 3.
Any ideas?Hi,
if JDeveloper is doing the right thing then this issue should be reported to the SOA Suite forum or BPEL BPEL , what do you think ?
Frank -
Why java allow start() method only once for a thread
Hi ,
Why java allows start method only once for thread . suppose
Thread t = new Thread();
t.start();
say at later stage if again we call t.start() IllegalStateException is thrown , even though isAlive method returns false.
Hence the question , why start() method is allowed only once.If you need start a thread , we need to create a new instance.Really. Why do you think that? Do you have any evidence? It is one of the first things I would think of, personally.Considering that the Thread API doesn't allow you to specify a stack address (only stack size), I think it demonstrates they wanted to remove that capability from their Thread API all together. That missing "capability" makes me believe they want me to believe it's not something I need to worry about when using their API... I think the exact semantics of the Thread class and its methods were driven by how to make it most understandable and usable for their customers. I'm certain this issue was one of many that was given considerable thought during the design and implementation of the JVM and the underlying runtime classes.
Do I have any evidence? No. But if you can point me at some first-hand information on this, I'd love to read it. Most of what I've found is second or third hand accounts. (and I mean that sincerely, not as a smart-ass remark or rebuke of your comments).
On the one hand you seem to think the Java API designers are idiots, on the other hand you think that they should be. I can't make it out.I thought my position was that the Java developers were talented enough to implement platform in whatever way their API called for; hence, the designers made a choice about how they wanted their API to be used by their customers. They decided which capabilities they wanted to include or exclude, and created an API that was consistent with their vision for this technology. While I'm certain technical limitations had an effect on the API design, I certainly don't think the API was dictated by the them.
I think the current design of the Java Thread API was a reflection of their vision to make Threading easier and more accessible to Joe Programmer, not limitations in the implementation. I never said it was wrong or that I could do better... I just said I think they could have done something different if they decided it would have made for a better customer experience. But hey, maybe I'm wrong. -
Variables + for each group + xml publisher
Hi All,
My requirement: one group is repeating many times, but based on one data in that group i need to display it.
Ex:
<GROUP>
<DATE>23-July-2007</DATE>
<DESC>Testing1</DESC>
</GROUP><GROUP>
<DATE>10-Aug-2008</DATE>
<DESC>Testing2</DESC>
</GROUP><GROUP>
<DATE>10-Aug-2008</DATE>
<DESC>Testing2</DESC>
</GROUP><GROUP>
<DATE>23-July-2007</DATE>
<DESC>Testing1</DESC>
</GROUP>
In the above exapmle if u see the date xml tag holds 2 different dates which is same (repeating twice). But while displaying i need to show that only once.
Means.. 23-July-2007 - 1 time and 10-Aug-2008 - 1 time instead of twice.
I tried through using variables. getting the first date in that variable and checking with others. But not able to compare those..... (No idea)
How can we achieve that. Please someone help me in this ASAP.
Thanks in Advance,
VinothShanmu, thanks for responding -- I think I may have actually figured this out. I believe I had a trailing "/" on my "select" on the for-each-group that wasn't supposed to be there. I've reviewed this stuff so many times my eyes are crossed -- but this time I saw it. I've done some additional testing and it appears to be working properly, although I'm going to be extending the functionality now to include a nested for-each-group so we'll see how that goes.
I'm marking this one as answered for now as it does appear to be working as expected.
Thanks!! -
Adding ssrs chart for each group under group footer
Hi,
I have requirement of report design, user has ability to select single or multiple product name in parameter and it should display column headers for each group and chart for each group (product name).
Report Design
ProductName: A
Category JAN
FEB MAR
Sales 10
12 15
Budget 20
20 20
Chart Here
ProductName: B
Category JAN
FEB MAR
Sales 10
12 15
Budget 20
20 20
Chart Here
I want to repeat this for all products.
Please anyone can provide steps to how to achieve this design?Hi Srikanth,
According to your description, you want to design a tablix to display header and chart for each group in its group header and footer. Right?
In Reporting Service, when we add header and footer for a group, the header row and footer row are still within this group. Anything we put in these two rows will be grouped. For your requirement, we created a sample report in our local environment. Here
are steps and screenshots for your reference:
1. Create a matrix. Columns are grouped by month. Rows are grouped by ProductName (with group header and footer).
2. Put the text/field of the first row into the group (ProductName) header. Delete the header row of matrix (the first row), select Delete rows only.
3. Insert a chart into the group footer. It looks like below:
4. Add a parameter for filtering data. Save and preview it looks like below:
Reference:
Understanding Groups (Report Builder and SSRS)
If you have any question, please feel free to ask.
Best Regards,
Simon Hou
Maybe you are looking for
-
Contacts crashing when I try to "find duplicates". Please help!
Process: Contacts [285] Path: /Applications/Contacts.app/Contents/MacOS/Contacts Identifier: com.apple.AddressBook Version: 8.0 (1365) Build Info: AddressBook_executables-1365000000000000~1 Code Type: X86-64
-
Free Personnal Java VM for Linux Familiar on ipaq H3800
I would like to known if there is a free virtual machine and personnal profile to download for arm familiar linux on Ipaq H3800? Otherwise, I am interrested by speaking with someone that has always compiling the sun Personnal Profile source for this
-
Why can't I sign in to Wheel of Fortune as I did with Qwest
I can't sign in to Wheel of Fortune as I did with my former ISP-Qwest. What is the problem?
-
WL-7 / clientgen task do not generate correct bean for non built-in data type
The clientgen Ant task do not generate a correct JavaBean for this complexeType definition (returned by a web service method): extract from WSDL: <s:complexType name="MyBoggusType"> <s:sequence> <s:element minOccurs="0" maxOccurs="unbounded" name="sh
-
hi all; dose the ISE support the guest self-service , we are planning to broadcast Guest SSID , this SSID will redirect the Guest for self-service page to enter his mobile number , then the guest will click on subnet button , after that the ISE will