Combining column data
Hi Guys,
I am building a dashboard with data from 2 relational data sources.
The objects present in the query are - "Project Type", "Dept Name" & "No.of Projects".
There are 4 project types - A & B from Universe 1 and C &D from Universe 2.
Each "Project Type" has data for Dept Name & No. of Projects. For e.g.
Dept Name
No. of Projects
A
1
B
2
C
3
D
4
Some "Project Type" may have more departments than the other.
Now, I am trying to get the total no of projects for all Project Types (a single value) and display this in my dashboard.
I already have the individual data for each "Project Type" in my dashboard. Could anyone please help me achieve this?
Hi Jeewan,
What i got from your detail is that you want the sum of all the projects of all project types..right?
I guess it can be done with simple SUM function.
Kindly reply if the requirement is something else.
Similar Messages
-
How to Hide/show the columns data while doing Drill down or drill up
Hi ,
How to Hide/show the columns data while doing Drill down or drill up in webi report .
Does it possible BO 3.1 version ?
Please suggest me on this.
Thanks & Regards
VenkatWhile that is not there yet, you can make use of the show when empty yes/no in combination with alerters.
So I have an alerter applied to every cell of the table.
When a condition is true (say I drilled down) I just put = "" in every cell, emptying the table,
because its now empty and doesn't need to show, it wont.
For the detail table I use the opposite, so when you drilled down it becomes visible...
Hope this helps all that do not have 40 yet
Good luck,
Marianne -
Combine two date ranges in calender display
Using Apex 3.2, Oracle 10g, IE7
I have a calender that displays two date ranges: one that does a total count of assets over a one year period and the other is a breakdown of what assets are scheduled to be in use. I would like to combine them into one display (total - in use). Any suggestions or ideas on combining the date ranges?
code below * thank you Denes Kubicek *
select 'a href="f?p=&APP_ID.:27:&SESSION.::NO::'||'P27_TYPE:'||category_name||'">'||('Count Avail: '||to_char(asset))||' /a asset , SYSDATE -1 + LEVEL
FROM (SELECT (sysdate +365) - sysdate conn_level, count(a.id) asset, b.category_name FROM hd_asset_assets a, hd_asset_categories b WHERE a.category_id = :P23_SEARCH and a.category_id = b.id GROUP BY category_name)
CONNECT BY LEVEL <= conn_level
UNION ALL
SELECT ('In Use: '||b.asset_name) asset , session_date FROM TABLE (SELECT return_table_fn () AS session_table_type FROM DUAL) left join (select asset_name, category_id from hd_asset_assets) b on UPPER(title) = UPPER(b.asset_name) where b.category_id = :P23_SEARCH
Edited by: tread on Aug 4, 2009 1:29 PM
Edited by: tread on Aug 4, 2009 1:29 PMHi,
You would probably have to simplify the existing statement and then wrap it within another select statement that does a GROUP BY over the date column:
SELECT Datecolumn, AssetName, SUM(Total)-SUM(InUse) Available
FROM (
...your existing select statements ensuring that both statements return the same number/names of columns...
GROUP BY DateColumn, AssetNameAndy -
Splitting Column Data in a Ticker View
Hi All,
How to split the column data into Rows rather in a Single Row in a Ticker View?
I have created a Request with 3 columns viz., Emp ID, EName and Salary. In Ticker View, diplaying the data in 3 rows. But, I would like to display the data as we see in a Table Format i.e.,
1 John 10000
2 Allen 15000
Instead of
1 2
John Allen
10000 15000
Thanks,
-VencyHi,
Thanks for giving Reply.
I knew that we can use HTML tags. I have done with Creating Table and used @{Column_Number} in Row Format.
<Table><tr><td>@2</td></tr><tr><td>@3</td></tr></Table>
Here, @2 is a Second Column Data is occupying only one row i.e., displaying John Allen. But I need to display Allen in the next line as I gave the example in the previous post. I am not getting the way How can I Split that @2 into multiple rows.
Is you are expecting me to do in other way? please suggest..
Thank You,
-Vency -
Hello,
Tell Me how i can show a single column data in one row.
10
20
30
To
10,20,30If you are OK with displaying comma separated list or column data you could:
SQL> select ltrim(sys_connect_by_path(ename,','),',') ename_list
2 from (
3 select ename,
4 row_number() over(order by 1) rn,
5 count(*) over() cnt
6 from emp
7 )
8 where rn = cnt
9 start with rn = 1
10 connect by rn = prior rn + 1
11 /
ENAME_LIST
SMITH,ALLEN,WARD,JONES,MARTIN,BLAKE,MILLER,SCOTT,KING,TURNER,ADAMS,JAMES,FORD,CLARK
SQL> To display as separate columns you would need to either know number of rows:
SQL> select min(case rn when 1 then ename else null end) ename1,
2 min(case rn when 2 then ename else null end) ename2,
3 min(case rn when 3 then ename else null end) ename3,
4 min(case rn when 4 then ename else null end) ename4,
5 min(case rn when 5 then ename else null end) ename5,
6 min(case rn when 6 then ename else null end) ename6,
7 min(case rn when 7 then ename else null end) ename7,
8 min(case rn when 8 then ename else null end) ename8,
9 min(case rn when 9 then ename else null end) ename9,
10 min(case rn when 10 then ename else null end) ename10,
11 min(case rn when 11 then ename else null end) ename11,
12 min(case rn when 12 then ename else null end) ename12
13 from (
14 select ename,
15 rownum rn
16 from emp
17 )
18 /
ENAME1 ENAME2 ENAME3 ENAME4 ENAME5 ENAME6 ENAME7 ENAME8 ENAME9 ENAME10 ENAME11 ENAME12
SMITH ALLEN WARD JONES MARTIN BLAKE CLARK SCOTT KING TURNER ADAMS JAMES
SQL> or use dynamic SQL.
SY. -
Can i see the column DATA(BLOB type) in PM_OBJECTS of DCM schema
we installed DCM managed clustering .it is Database repository type.
i am trying to see the column DATA(BLOB type) in PM_OBJECTS of DCM schema .
I wrote a program in java to read blob data type and write it into a temporary file.
when i open temporary files all the data in junk format.
can i see the real data of thatcolumn.Is it possible?
first of all for what purpose DCM shema will be used?Hi,
There is no option to show the comments on the diagram.
We plan to add such feature in the next version.
Ivan -
Store the value in BLOB column data type
Hi All,
I have a file of about 5MB. I want to store this in BLOB column data type of a table.
Can we compress this file to store and when we take uncompress the same...or how do we do it.
and what is the procedure to store this....
pls. help me
Thanks,
NareshHi skud
i juast want to store the agent code to variable.if i did get ur point...
Why don't u just use a simple assign statment for example...
DECLARE
V_VALUE NUMBER;
BEGIN
V_VALUE := LC354 ; -- IF it was a value as LC354 static i mean
-- or u could use any value
V_VALUE := :ur_form_item_name; --- if it was dynamic
END;That's it .
Hope this helps...
Regards,
Ammatu Allah. -
How to change the year in a range of column dates to the new year?
How to change the year in a range of column dates to the new year?
Depends on the pattern of the dates. The last procedure will work for any pattern, or no pattern at all.
For examples.the dates are assumed to be in column A, starting at A2
Sequential dates?
Enter first updated date in the first cell.
Enter =A2+1 in cell A3. Copy the cell.
Select A3 to the end of the list. Paste.
With the cells still selected, Copy, then go Edit > Paste Values.
Evenly spaced dates?
Same procedure as above, but replace +1 in the formula with + and the number of days between dates in the list.
Randomly spaced dates?
Select cell B2. Press option-left arrow to insert a (temporary) column to the left of column B.
Click on the empty cell B2 in the new column. Enter the formula below:
=DATE(YEAR(A)+1,MONTH(A),DAY(A))
Copy the cell, then select B2 - Bn where n is the last ow containing a date to be converted. Paste,
With the cells still selected, Copy.
Click on A2, then go Edit > Paste values.
Click on the column B reference tab to select all of column B.
Hover the mouse over the right end of the reference tab, and click the black triangle when it appears.
Choose Delete Column from the menu that appears.
Regards,
Barry -
4.0 EA1 - Data Modeler does not show columns data types correctly
Data Modeler shows all columns data types as 'unknown'.
Hi,
you need to check "system data types" directory and it contents. Its default location in SQL Developer is sqldeveloper\sqldeveloper\extensions\oracle.datamodeler\types
Check "Preferences>Data Modeler>Default system data types directory" setting. If it's empty then copy defaultdomains.xml from previous installation to directory above.
If it's not empty then you need to copy types.xml and defaultRDBMSSites.xml from default location to directory set as "Default system data types directory".
Philip -
How to get document library column data through Programmatically
HI,
I have one scenario..here i have to get the particular document library column data...Like fetching List data.
In LIST We will do LIke this:
using (SPSite site = new SPSite(SPContext.Current.Site.Url))
using (SPWeb web = site.OpenWeb())
SPList list = web.Lists["ListName"];
SPListItem item = list.Items.Add();
item["Title"] = txtTitle.Text;
item.update()
But here we want to fetch data from document library column data....
I did following way....can any one suggest me....
using (SPSite site = new SPSite(SPContext.Current.Site.Url))
using (SPWeb web = site.OpenWeb())
SPDocumentLibrary documentLib = web.Lists["DocumentName"] as SPDocumentLibrary;
SPListItem items = documentLib.Items.Add();
Thanks.....Hi,
The code that you have posted is adding data to the list or document library. Do you want to add or fetch data from or to document library?
You can refer following link for Inserting/Updating documents in document library:
http://blogs.perficient.com/microsoft/2009/04/working-with-documents-stored-in-sharepoint-document-library-programmatically/
For fetching data from document library, you can use following code:
using (SPSite site = new SPSite(SPContext.Current.Site.Url))
using (SPWeb web = site.OpenWeb())
string documentLibName = "Doc_Lib_Name";
SPFolder docLibrary = web.GetFolder(documentLibName);
foreach (SPFile file in docLibrary.Files)
var customColValue = file.Item["Custom_Column_Name"];
Hope this helps!
Regards, Shruti -
How to copy complete column data of a table control similar to ALV
Hi All,
I have a senario where i need to select one column of a Table control and press Ctrlc then the complete column details should be copied and be able to paste it in another colum using ctrlv.
please suggest me how can i copy the complete column data similar to ALV .
Thanks in advance .
Edited by: ravi kumar on Sep 13, 2011 2:53 PMDear Ravi
I'm afraid there is no standard functionality for copy paste in ALV.
You would need to develop something to achieve that - a button for example.
Kind Regards
/Ricardo Quintas -
G/L Account line item display-text column data missing-t-code faglb03
Dear friends,
MY client requirement like below,
In the GR/IR Clg account no.xxxxxxxxx. the bill no was displayed in the text column. Hence we can compare the debit entry wrt to the credit entry so that the left out credit entries can be traced and booked. The vendor code was displayed against the invoice no.before upgradation.
But now After upgradation this facility is not available.text column data not fletching, If the text [i.e invoice no. } is not available how can we identify which vendor bill was not posted or booked. Which was in this ledger before upgradation.
kindly help me out to sort out this issue.
regards
kalyanamHi Cheran
initial screen
Double click on on Accumulated field then it will display you the line item
Text column is displaying at line item
kindly check the Layout if still it does not showing there
then add this field in below Tcode then it will display
Tcode: OBVU
Table : Bseg
Field name : SGTXT
and save it
hope this will help you
Thanks
Trinath -
How to check which column data differs from master table and archive table
Hi All,
i have two tables, table a (a1 number,a2 varchar2,a3 varchar2) and table b (b1 number,b2 varchar2,b3 varchar2).
how to check the data in both the table are same( including all columns).
data in a.a1 is same as b.b1 and a.a2 is same as b.b2 like that.
if they not same , i need to know which field differs.
Kindly Share ur ideas.887268 wrote:
thanks Sven W. ,
above reply clearly shows what my question is.
one column must be primary key, based on that key i need to find out which are the fields having different data..
im strugling with this, i tried the following already, but not able to get.
select the columns from a MINUS select the columns from b.
-- from this i can find whether the difference occurred or not.
but i cant able to get which are the fields value changed.Good. Then you would match the rows using the PK column and need to compare the columns
Instead of a MINUS + UNION ALL + MINUS we can now use a FULL OUTER JOIN
It is a little task to write out all column names, but 40 columns can be handled.
This statement would show you both tables with matching rows on the same line.
select a.*, b.*
from a
FULL OUTER JOIN b on a.id = b.idNow filter/check for mismatches
select case when a.col1 != b.col1 then 'COL1 value changed'
when a.col2 != b.col2 then 'COL2 value changed'
when a.col3 != b.col3 then 'COL3 value changed'
end as compare_result
,a.*, b.*
from a
FULL OUTER JOIN b on a.id = b.id
/* return only non matching columns */
where (a.col1,a.col2,a.col3) != (b.col1,b.col2,b.col3) You might need to add nvls to take care of null values. Test this!
Another way could be to group upon the primary key
select *
from (
select id
,count(distinct col1)-1 cnt_col1
,count(distinct col2)-1 cnt_col2
,count(distinct col3)-1 cnt_col3
from
select 'A' source, a.*
from a
UNION ALL
select 'B' source, b.*
from b)
group by ID
/* only records with differences */
where 1 in (cnt_col1, cnt_col2, cnt_col3)
;The count columns will hold either 1 or 0. If it is 1 then this column has a difference. -
We want to view header reference as column data wonu2019t appear in any Refaren
Dear Experts,
we want to view header reference as column data wonu2019t appear in any of the reference filed.
Please tell me the soluation How can I give the soluation bilow issue.
Currently user are facing one problem with respect of Line item report.
In any of the line item report (i.e. FBL1N, FBL3N, FBL5N) we want to view header reference as column data wonu2019t appear in any of the reference filed.
For Example in Bank G/L Cheque number was enter in reference field but same is not apear
In Sales G/L or tax G/L invoice number is to be appear which is again invoice number as reference in document.
Regards
Devendra.
Moderator: Please, search SDN before postingHi,
To add Reference field in line item report do below.
From FBL1N output screen.
Click change layout / (clr + F8)
Now add Hidden field u2018Referenceu201D to column content and push copy button.
Now you should be able to view reference field (BKPF- XBLNR) in line item report.
Best Regards,
Raju -
Hiding the column data. What is the point of DBMS_CRYPTO package?
DB version:10g R2
A requirement has come where we need to hide some columns' data from end users.
Trasparent Data Encryption feature wouldn't do the trick as it encrypts the data only at the storage level not at user level.
I've seen PL/SQL codes using DBMS_CRYPTO which encrypts and decrypts input strings like the code mentioned in
Re: Need some hints on using dbms_crypto
What is point of these PL/SQL codes?
They can only be used to create functions which will be called in VIEWS. That is the only use of DBMS_CRYPTO package. Right?
Do you guys have any suggestion in hiding/obfuscating column data? Is creating a view my only option?One solution to "hide" data (columns or rows) from end users is simply to create a view.
The end user will be granted only access to the view and not to the base tables behind the view. The view will only expose those cloumns and rows that the end users is supposed to see.
Of cause this has nothing to do with encryption. But I don't see anything in your business requirements that needs to use encryption methods.
Maybe you are looking for
-
EDI 810 transaction error: Cannot uniquely identify a trading partner
Hi, I am facing following error on B2B 11g version 11.1.1.6.0. Please provide the solution if you are aware of the issue. Error Description: Cannot uniquely identify a trading partner. The trading partners PARTNER-A, PARTNER-B have the same set of id
-
After upgrading to osx mavericks it created 2 versions of pages and wont allow me to remove ether on or to update pages any ideas on how to sort this out ?
-
Am I correct that there is no way to edit my word and excel documents once they are on my Palm Pre??!!! I can't believe I went from a 5 year old smart phone to a new Pre and lost the ability to modify documents (with the promise of being able to do i
-
CS3 How to style larger image window that thumbnail links to
Hi, Can anyone advise on how to format the larger image a thumbnail links to? When I click on the link created from the thumbnail, the larger image just comes up tucked in the top left corner. I am creating this gallery manually because I don't have
-
Is it okay to leave fan at high RPM?
I just got my 2Ghrz Mac Book and noticed that usually it gets pretty hot. Now that you can control fan speed, is it okay to leave the fan at 5K RPM throughout the time the laptop is being used? I use it maybe 1-2 hours a day...And also, I remember on