Concate column into char in report builder
Helllo!
I am working on a report in report builder 6.0.8.27.0 connected to a 10g database.
In my report i summarize a workers pick performance over a specified period of time on each new row (things like picks, active pick time). Most of the data is summarized using the in-built sum-function in report builder. But i have also a column in my table where i want to concate/aggregate the work zones(physical locations) that a worker has been in over a day.
A simplified example of how my input query table can look like:
user | picks | inlogged_time | work_zone
mav | 100 | 10 | AREA1
mav | 200 | 30 | AREA2
ant | 100 | 10 | AREA3
max | 100 | 10 | AREA3
This should generate a report that has this structure:
user | picks | inlogged_time | work_zone
mav | 300 | 30 | AREA1, AREA2
ant | 100 | 10 | AREA3
max | 100 | 10 | AREA3
My problem is i dont know how to concate the work_zones togheter. I tried using the PL/SQL editor for a function (using vm_concate()), but i could not get it to work and i can't use a new Select statement in my PL/SQL editor because the tables are to large for doing a new query on each row.
Grateful for any help!
Regards,
Martin
Edited by: 1009483 on 2013-jun-03 08:13
Hi,
A small modification to the above query ....
with data as ( select 'mav' username, 100 picks, 10 inlogged_time, 'AREA1' work_zone from dual union all
select 'mav' username, 200 picks, 30 inlogged_time,'AREA2' work_zone from dual union all
select 'ant' username, 100 picks, 10 inlogged_time, 'AREA3' work_zone from dual union all
select 'max' username, 100 picks, 10 inlogged_time, 'AREA3' work_zone from dual )
select username, sum(picks) picks , sum(inlogged_time) inlogged_time , wm_concat(work_zone) work_zone
from data
group by usernameOutput:
USERNAME,PICKS,INLOGGED_TIME,WORK_ZONE
'max','100','10','AREA3'
'mav','300','40','AREA1,AREA2'
'ant','100','10','AREA3'Regards,
Archana
Similar Messages
-
How to use one report column into the another report in obiee
How to use one report column into the another report in obiee
i dont want to use column as a filter for another report it should be report column for another report
Thanks,
Vivek -
Make an object into invisible in report builder
Hi,
I want to make invisible an object in report builder and i tried following things.
I made visibility mode to :NO and
Print object On:All pages and default
In these levels i tried but am able to find object in report output.
Can any one please suggest an solution for this
Thnaks,
AyrusYou posted it in wrong forum.You shoud have posted it in Oracle reports.If you simply set Visible property to No it should work..Strange if tht does not work.
-
Adding new column in an existing report which was build using Union
While working in OBIEE 11g I encounter an issue.
My existing report was build using UNION at Criteria Tab in Analysis. Now I have a requirement to add a new column into the same report. For each criteria I have added the new column but when I go back to the "Result Columns". I see a new field added but it is not allowing me to open or edit column properties for that new column & at the same time it is not allowing me to navigate to other tabs like Results, Promts, and Advanced.
I don’t want to build this report from scratch. Is there any workaround to get it resolved?Hi,
Just check it once the new added column data types are mismatched or not?
and the new added column should be navigated into excluded section, so u should edit the report and dragged into the table column section.
Thanks.. -
Add Extra Columns into Multi-Level Explode BOM (List Report) - CS12
Hi Experts,
I wish to add extra columns into the list report generated from program RCS12001 (calling from t-code: CS12). The current layout will be AS-IS and the only way i wish is to add-in few new columns in the report.Hi
declare select-options instead of parameters
for converting a report to ALV
create a field catalog.
for this two option declare a itab with
fcat TYPE slis_t_fieldcat_alv
and pass the field name,descr etc to fcat and append the same.
or create structur same as your itab and pass the same with FM
'REUSE_ALV_FIELDCATALOG_MERGE'
use either <b>reuse_alv_grid_display or reuse_alv_list_display</b> .
and pass the itab.
thanks
Shiva -
How to hide or add columns to a linked report in SSRS 2014
Hai All,
I have a report deployed on a server. And I created a linked report to it into another folder. Now I can actually manipulate on parameters of the linked report through Report manager but I have to hide some columns when displaying the linked report. Is there
a way to show or hide the columns on the Linked report.
Regards,
RajeshHi,
This is a SQL report designing issue, with report builder we should be able to change the visibility of a column. Reports that deployed to
report manager can be edit by report builder, we may save it after edited.
Please check the article below:
Column Visibility Dialog Box (Report Builder)
https://msdn.microsoft.com/en-us/library/dd207071.aspx
Regards,
Yan Li
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected] -
Implement Java Class into Report Builder
Hi, I have problems implementing own java classes into the Report Builder. OK, let say I am running a simple report using STUDENT_ID and STUDENT_NAME. What I wanted to do is to concatenate a string "XXXX" to one of the records in STUDENT_NAME (e.g. STUDENT_NAME = 'Mary').
The Java class that I wrote has a static method:
public class MyAppend
public static String myMethod(String s)
s = s +"XXXX";
return s;
I also wrote a Formula Column in Report Builder called "TestFormula":
function TestFormula return varChar2 is
StuName varchar2(40);
myStr varchar2(40);
begin
select STUMST.STU_NAME
into StuName
from STUMST
where STUMST.STU_NAME= 'Mary';
->myStr := myappend.myMethod(myPackage.aobj, StuName);
return myStr;
end;
The error message I get when I compile this Formula Column PL/SQL is (with '->' pointing to the line):
Wrong number or types of arguments in call to 'MYMETHOD'
How do I correct this error?
Thank you.
JoeyThanks Navneet. Actually I am new to PL/SQL programming. I have another problem here. I would like to list all the records of the STUDENT_NAME. How would I go about it using PL/SQL? This is the Formula Column I have written but it only shows me 1 record:
function TestFormula return varChar2 is
StuName varchar2(40);
cursor c1 is
select all stumst.stu_name
from stumst;
begin
LOOP
open c1;
fetch c1 into stuName;
stuName := myappend.myMethod(stuname);
return stuName;
EXIT WHEN c1%NOTFOUND;
end loop;
end;
By the way, can you please give me any useful sites for reference to the PL/SQL?
Thank you.
Joey -
How to add a new font into Report Builder and Oracle Forms/Reports Server?
Hi,
I've searched the forum and can't find this being discussed.
My developers run Report Builder 10.1.2.0.2 on their XP laptops.
Their reports run (in production) on Oracle Forms/Reports Server 10.1.2.0.2.
This server runs on MS Windows 2003, SP2.
They've got a client who wants reports using the "Garamond Western" font.
So....how do I get this font onto the developer's Report Builder laptops, and onto the Oracle Forms/Reports Server?
I've moved various 'Garamond' fonts into C:\WINDOWS\FONTS on both the laptops and the server, but neither seem to recognize it.
Thanks for your help.Thanks.
This answers 1/2 of my question.
The developer can now use Report Builder on his laptop, with the new fonts.
But when he moves this new Report to the Oracle Application Server/Forms-Reports Server, it fails to use the new fonts.
The Oracle App Server/Forms-Report Server is Version 10.1.2.0.2. It runs on MS Windows 2003, SP2.
I have installed the exact same fonts on this server, into C:\WINDOWS\Fonts.
I have used REGEDIT to change REPORTS_PATH....and placed C:\WINDOWS\Fonts; as the first value in this field.
I have then stopped and restarted the Forms-Reports Server. -
Hiding empty columns in report builder
Hi,
This is my first adventure with report builder and I have
managed to produce some custom labels which work almost perfectly.
I say almost because there is one thing I can't seem to do.
I have a label for addresses. The address data consists of
data from a query including, name,
address1,address2,address3,town,county,postcode.
Some of these are quite often empty but the label still
displays a line break and the ',' at the end so I might end up
with:
Dave Phipps
27 Acacia Road,
MyTown,
MT1 4JP
In the above address the fields address2, address3 and county
are empty.
How do I set this up in Report Builder to hide the missing
lines so that I would end up with:
Dave Phipps
27 Acacia Road,
MyTown,
MT1 4JP
Any ideas?
Cheers,
DaveHi,
If i understood your question correctly,
The you can try this
TYPE-POOLS:slis,abap.
TYPES:BEGIN OF ty,
f1 TYPE c,
f2 TYPE c,
f3 TYPE c,
f4 TYPE c,
END OF ty.
DATA:it TYPE TABLE OF ty,
wa TYPE ty,
wa_field TYPE slis_fieldcat_alv,
i_fieldcat TYPE TABLE OF slis_fieldcat_alv,
i_details TYPE abap_compdescr_tab,
wa_comp TYPE abap_compdescr,
ref_descr TYPE REF TO cl_abap_structdescr,
lv_field TYPE abap_compname.
FIELD-SYMBOLS:<fs>,
<fs1>.
ref_descr ?= cl_abap_typedescr=>describe_by_data( wa ).
i_details[] = ref_descr->components[].
wa-f1 = 'A'.
wa-f3 = 'C'.
APPEND wa TO it.
wa-f1 = 'X'.
wa-f3 = 'Y'.
APPEND wa TO it.
if it[] is not initial.
LOOP AT i_details INTO wa_comp.
ASSIGN wa_comp-name TO <fs>.
SORT it BY (<fs>) DESCENDING.
CONCATENATE 'WA' '-' <fs> INTO lv_field .
ASSIGN (lv_field) TO <fs1>.
READ TABLE it INTO wa INDEX 1 transporting (<fs>).
IF sy-subrc = 0 AND <fs1> IS NOT INITIAL.
wa_field-fieldname = wa_comp-name.
wa_field-seltext_m = wa_comp-name.
APPEND wa_field TO i_fieldcat.
ENDIF.
ENDLOOP.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = sy-repid
it_fieldcat = i_fieldcat[]
TABLES
t_outtab = it[].
endif. -
How to find the maximum of group sums within a specific column using report builder 3.0
Hi
For each part number I am trying to find out in which week of a month did the largest daily shipment occur... so using report builder 3.0
in SSRS 2012 I can find daily, weekly and monthly totals for the units shipped but I am having a hard time thinking through the logic to find the daily max for each week.
in my data I can have multiple orders/shipments for the same product on the same day.
The ultimate goal is to set inventory levels
So..
In my matrix report I have
Row groups:
Classid => Product class
InvtID => Item Part Number
Column Groups:
FiscYr=> Fiscal Year
PerPost => Month or period the transaction occurred
Week_period => the week the transaction occurred
Day_period => The day that the transaction occurred
The aggregations are
Sum(case_shipped)
Max(case_shipped)
The Sum(case_shipped) is working as desired but the Max(case_shipped) is picking out the max amount shipped on any one order when looking
at the week, month or fiscal period and that is not what I need.
I have attached a screenshot since a picture is worth more than my words. I have also included some sample data
I would very much appreciate any thoughts on this. I am guessing that the solution has something to do with using the inscope function but
I can't wrap my head around how to use it
Thank you
Tom D
Here is some sample data for Product A
Invtid Case_ship Trandate FiscYr PerPost week_period day_period
A 10 1/1/2104 2014 1
1 1
A 3 1/1/2014 2014 1
1 1
A 50 1/2/2104 2014 1
1 2
A 30 1/3/2014 2014 1
1 3
A 20 1/9/2104 2014 1
2 2
A 5 1/9/2104 2014 1
2 2
A 20 1/10/2014 2014 1
2 3
A 60 1/10/2104 2014 1
2 3
On 1/1/2104 I shipped a total of 13 cases
On 1/2/2104 I shipped a total of 50 cases
On 1/3/2104 I shipped a total of 30 cases
On 1/9/2014 I shipped a total of 30 cases
On 1/10/2014 I shipped a total of 80 cases
On 1/9 I shipped a total of 25 cases
I would like to show that in week 1 the maximum number of cases shipped on any day is 50 (1/2/2014)
I would like to show that in week 2 the maximum number of cases shipped on any day is 80 (1/10/2104)
I would also like to show that in perpost (month) 1 the maximum
number of cases shipped on any day is 80 (1/10/2104)Hi
I was able to find a solution
I built a new dataset in report builder using the same table as before but tried out the "Group and Aggregate" function and for the case_ship
field I chose "Sum" as my aggregate.... In essence this gave me a very cool and easy daliy sum of the shipped cases.
When I used this new dataset and built my matrix report I was able to easily get the max daily shipment for each product by week, month and
year.
Tom -
Report Builder chrashes when creating a new formula column
Dear all,
whenever I try to create a new formula column in the data model, that is placed outside of a query, my report builder crashes completely. The same happens on my colleagues notebook.
If anyone has an idea why this could happen, please let me know. I am currently using Version 9.0.4.1.0.
Thanks and br
DanielYou can keep the report builder you have now. Just install the new one in new oracle home. You can download it from here
http://www.oracle.com/technology/software/products/ids/htdocs/904winsoft.html
This download has Developer Suite 10g (Report 9.0.4.0.33, Form 9.0.4.0.19, JDeveloper, Discoverer, Designer)
I don't think so you can select which product you want to install, like it was in 6i. So it will install everything.
Try to install this version. Hope this will help.
Thanks
FS -
Dynamically selecting column names in report builder ???
Dear members,
I have a requirement in which the user dynamically selects the tables column names. Like suppose take DEPT table. My query would be
select &P Report from dept;
so if the user selects DNAME then i would get the dname values and so on... This is fine but if one gives the value for the lexical parameter as DEPTNO,DNAME then i should get two columns in my report output. The select statement then becomes
select DEPTNO,DNAME Report from dept;
But i am not able to do this in report builder(6i). If i use just one value for the parameter then i get the o/p but if i use more than one (eg: DEPTNO,DNAME) then its giving an error.when i run this query through toad or sql plus then i am getting the desired o/p but wher as in report builder i am not able to get the o/p.
My report triggers are :
Before Parameter form :
:P := NULL;
After parameter Form :
function AfterPForm return boolean is
begin
IF :P = 'DNAME,DEPTNO' THEN
:P := ' DNAME,DEPTNO ' ;
ELSE
:P := NULL;
END IF;
return (TRUE);
end;
Your comments and suggestions are welcomed.
thanks
regards
sandeepNumber of columns can not be changed at run time. If your data model has three columns, lexical parameter should pass 3 values. If you have query like this in data model:
select &p_1 from table
Whatevere you have as initial value in user parameter p_1, data model captures that info. -
SQL Server Report Builder Hyperlink Column Not Click-able?
I have a report with a hyperlink column that works in SQL Report Builder 3.0 desktop, but not on the website where it's shown.
1. 'Website_Domain' field is the shortened URL (domain) is the
text seen in the Report column
(technet.microsoft.com)
2. 'Website_Url' field is the full length URL which is used in the
'Go to URL' properties
(http://technet.microsoft.com/en-us/library/ms159106.aspx)
['Website Link' Expression]
=Fields!Website_Domain.Value
['Website Link' Column Properties]
Action = Go to URL
Selected URL: [Website_Url]Hi pointeman,
I have tried your scenario on my test environment, but the issue was not reproduced. Please take the following steps as a reference:
Insert Website_Domain field in the detail row, then type the table header with “Website Link”.
Right-click the cell which contains [Website_Domain] to open Text Box Properties dialog box.
Click “Action” in the left pane, select “Go to URL” option with [Website_Url] as “Select URL”.
The following screenshot is for your reference:
If the issue still persists, could you please supply more information about the issue? Such as steps you have taken to add the URL or other else. If there are any misunderstanding, please elaborate the issue for further investigation.
Thanks,
Katherine Xiong
If you have any feedback on our support, please click
here.
Katherine Xiong
TechNet Community Support -
How can I build a count column with a where clause based on a query defined in the report builder query screen? From what I can tell the built in count column does not allow the addition or definition of a where clause.
ThanksHi Ruth,
Not exactly sure if this will answer your question, but here goes. It sounds like you want to count values based on certain conditions? If the where clause is already in your query, you can use the count function that's available in SQL and allow the database to perform the count for you. Otherwise you can use a formula column in combination with a placeholder column or a summary column to get the conditional count. In the formula column you can use plsql to determine if you want to increment your count or not. Depending on how you do it, you can either just return '1' or '0' from your formula column and create a summary column based on your formula column. Or you can increment a placeholder column from your formula column. If you decide to go with placeholders, I'd suggest reading the online help examples for placeholders as there are a few rules you'll have to go by.
Hope that helps,
Toby -
How to compare two column between two datasets in report Builder
Hello all,
I have a developed a report which contains two data sets as shown below
Now i have to match the value of proj_id and ProjectTicketId from
ds_New to project_id and ProjectTicketId in ds_Previous
and get the respective "Client" from ds_Previous.
How can i get the following data in Report builder 3.0
Thanks in advance.
Pankaj Kumar Yadav-Is that possible to match them via T-SQL, to get one data set?
SELECT
Client from New JIOIN Previous
ON
New.proj_id=Previous.proj_id
AND New.ProjectTicketId =Previous.ProjectTicketId
Best Regards,Uri Dimant SQL Server MVP,
http://sqlblog.com/blogs/uri_dimant/
MS SQL optimization: MS SQL Development and Optimization
MS SQL Blog:
Large scale of database and data cleansing
MS SQL Consultants:
Improves MS SQL Database Performance
Maybe you are looking for
-
Query help in regular expression Query
Hi all, Version details BANNER Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - Production PL/SQL Release 11.1.0.7.0 - Production CORE 11.1.0.7.0 Production TNS for 32-bit Windows: Version 11.1.0.7.0 - Production NLSRTL Version 11.
-
After upgrading to OS X yosemite my iMovie says not supported even though it has upgraded as well
I have a Mac Book Pro. I have upgraded to yosemite osx. Imovie has also been upgraded to 10.06 version but when I try to open it says that my 10.2 version is not supported even though my version has been updated. I'm also unable to have automatic upd
-
Creation profile required field
Hello, How can I define the field creation profile in the scheduling agreement as a required field?it is not possible via the customizing of the screenlayout. Regards, Sofia
-
My iphone has been consistantly freezing since I updated to the iOS 5.0.1 update. I'll be doing something on the phone, it will freeze and the buttons on the bottom row of the phone (the ones I use the most of course) will stop working. I've tried
-
My LG phone rings twice then goes to voice mail
The people that call say my phone rang at least 7 times than went to voice mail. I hear two rings and before I answer it the call is gone.