2 rows in dimension-Instead of side by side can it show below each other
I already have page headers.
Arizona.....Phoenix..............$100
Arizona.....Scottsdale..........$90
California...Los Angeles........$110
California...Sacramento........$75
What I want is
Arizona
Phoenix.............$100
Scottsdale..........$90
California
Los Angeles........$110
Sacramento........$75
Edited by: 959236 on Dec 10, 2012 11:07 AM
hi user ,
I am taking it as colum A, B and C ( C is the measeure)
Do this.
Option : 1
Drop A,B,C in to the analysis. Create a Pivote table.
In the Rows A and B and C wil come in Measures.
Under Column A , Click on Aggregation Symbol and click on Before and labels only.
Under Column A , click on More Oprtion and Click on hidden.
You will get very close to wat u want. but only problem is Total will be displayed.
Option 2 :
Just create pivote table
put A column in Section.
mark if Correct/helpfull
Fiaz
Similar Messages
-
Rows data will go side by side
Hi,
I have a table TEST in oracle 10g and under this there are rows like
account_code value
4142 300
4143 400
4144 500
Now I want data like this
4142 4143 4144
300 400 500
please help me to write the query.
Regards,
JimutHi,
A query must have a fixed, known number of columns in its output. The number of columns and their names must be hard-coded when the qiuery is compiled.
You want a variable, unknown number of columns. You don't know the number or the names of the columns now, you want to get thos from the table itsel at run tme.
One way to get what you want is Dynamic SQL . This resolves the conflict of what must be known at compile time versus what is not known until run-time by delaying compile tme until run time. That is, the code you write today is not the query; it is code that will write and execute the query at some later date, using the data in the table at that date. There are dynamic SQL examples in the forum FAQ {message:id=9360005}
Another (simpler) work-around involves changing your requirements a little. Instead of getting a variable, unknown number of columns,you can get one big column, formatted to look like a variable number of columns. This is exactly what the <tt> SELECT ... PIVOT </tt> feature does when you tell it to generate XML output. The query actually produces 1 column of XML data, but, when it is displayed, it looks like a variable number of columns. Another way is String Aggregation , where we produce one big VARCHAR2 column that looks like a variable number of columns. The rest of this message shows an example of string aggregation.
Since you didn't post CREATE TABLE and INSERT statements for your own data (see the fm FAQ {message:id=9360002} ) I'll use the scott.dept table. The table actiually looks like this:
` DEPTNO DNAME LOC
10 ACCOUNTING NEW YORK
20 RESEARCH DALLAS
30 SALES CHICAGO
40 OPERATIONS BOSTONTo transpose this data so that it looks like this
OUTPUT
10 20 30 40
ACCOUNTING RESEARCH SALES OPERATIONS
NEW YORK DALLAS CHICAGO BOSTONwe can use a query like this:
WITH cntr AS
SELECT LEVEL AS n
FROM dual
CONNECT BY LEVEL <= 3 -- number of columns in orgiinal table
, unpivoted_data AS
SELECT d.deptno
, DENSE_RANK () OVER (ORDER BY d.deptno) AS deptno_rnk
, c.n
, CASE c.n
WHEN 1 THEN TO_CHAR (deptno)
WHEN 2 THEN dname
WHEN 3 THEN loc
END AS txt
FROM cntr c
CROSS JOIN scott.dept d
SELECT REPLACE ( SYS_CONNECT_BY_PATH ( RPAD ( NVL (txt, ' ')
, 14 -- Max column length
, '`~' -- Never occurs in data
, '`~'
) AS output
FROM unpivoted_data
WHERE CONNECT_BY_ISLEAF = 1
START WITH deptno_rnk = 1
CONNECT BY deptno_rnk = PRIOR deptno_rnk + 1
AND n = PRIOR n
ORDER BY n
;This query will work in Oracle 10.1 (or higher).
It assumes we know how many columns in the original table we want to transpose (3 in this case, which will be the number of rows in the output), the maximum length we want to show for each item (14 characters in this case), and some sub-string that never occurs in any of the data ('`~' in this case). It does NOT assume we know the number of rows in the original table, which we be the number of "columns" in the output. In this eample, there are 4 rows that appear as 4 "columns", but the number 4 does not appear anywhere in the query.
Notice that there is only one real column in the output: a VARCHAR2 column called output. The column header that SQL*Plus supplies isn't helpful in this case, so we could suppress it using <tt> SET HEADING OFF </tt>. VARCHAR2 columns in Oracle SQL have a limit of 4000 chararacters , so if we display 14 characters for each "column", and have 1 character separating the "columns", then we can't have more than 266 "columns" in the output. Nobody would be able to read that many, anyway.
The query above can be modified so that the one output column looks more like a variable number of columns:
10 20 30 40
============== ============== ============== ==============
ACCOUNTING RESEARCH SALES OPERATIONS
NEW YORK DALLAS CHICAGO BOSTONYou could also add the original colum names as labels:
DEPTNO: 10 20 30 40
============== ============== ============== ==============
DNAME: ACCOUNTING RESEARCH SALES OPERATIONS
LOC: NEW YORK DALLAS CHICAGO BOSTONI'll leave these as execises. -
I have strucked with a simple but a complex problem.
I have a Report with data in vertical rows..need of the hour is how can we show that data into column structure.
here is the table sample which i have in Database..
Location chrg_type Effective_date
xxxxxxx xxxx xx-xx
thhis is the structure in effective date we have several months in it in a single column i want show the effective date or effective month in various columns instead of a single column.
my required table is....
Effective_date Effective_date
Location chrg_type xx-xx xx-xx
xxxxxxx xxxx xx-xx
any tough heads?????Hi Sunil,
Your 1st problem is that you are going to need one more field to accomplish you goal. What type of data do want under your new date columns?
Anyway, once you have that you need to move on to how to move the data out into columns based on date.
Try something like this.
0_Date = IF DATEPART('m',{tbl.Effective_date}) = DATEPART('m',CurrentDate) AND
DATEPART('yyyy',{tbl.Effective_date}) = DATEPART('yyyy',CurrentDate)
THEN {tbl.DataField}
1_Date = IF DATEPART('m',{tbl.Effective_date}) = DATEPART('m',DATEADD('m', -1, CurrentDate)) AND
DATEPART('yyyy',{tbl.Effective_date}) = DATEPART('yyyy',DATEADD('m', -1, CurrentDate))
THEN {tbl.DataField}
2_Date = IF DATEPART('m',{tbl.Effective_date}) = DATEPART('m',DATEADD('m', -2, CurrentDate)) AND
DATEPART('yyyy',{tbl.Effective_date}) = DATEPART('yyyy',DATEADD('m', -2, CurrentDate))
THEN {tbl.DataField}
... Repeat this process until you have all of the columns you need, following this format.
Hope this works for you,
Jason -
How do i change the display in ADE to a single page view instead of two pages side by side? I find it distracting and prefer to look at one page at a time.
You can increase the font size and automatically page view changes. Go to menubar; Reading -> PDF View or Epub Text Size (depending upon the ebook) and increase the size.
-
How to show output in sqlplus side by side intead of in row
in sqlplus if I type
select A,B,C,D,E,F,G,H,I from SOMEHWERE where J='goat4';
OUTPUT IS LIKE
A B C D F
G H I
value here value here
value here here
tht is too hard to read
how can I make it side by side
like
A Value here
B Value here
C Value here
D Value here
E Value here
F Value here
G Value here
H Value here
I Value here
Thanks alot for helpNumerous possibilities ... you can extent the linsize as already demonstrated but that has limited utility. The method I would suggest is formatting the column widths.
Lots of demos here:
http://www.morganslibrary.org/reference/sqlplus.html
But this simple example should help.
orabase> desc dba_data_files
Name Null? Type
FILE_NAME VARCHAR2(513)
FILE_ID NUMBER
TABLESPACE_NAME VARCHAR2(30)
BYTES NUMBER
BLOCKS NUMBER
STATUS VARCHAR2(9)
RELATIVE_FNO NUMBER
AUTOEXTENSIBLE VARCHAR2(3)
MAXBYTES NUMBER
MAXBLOCKS NUMBER
INCREMENT_BY NUMBER
USER_BYTES NUMBER
USER_BLOCKS NUMBER
ONLINE_STATUS VARCHAR2(7)
orabase> col file_name format a30
orabase> select file_name from dba_data_files;
FILE_NAME
C:\ORACLE\ORADATA\ORABASE\USER
S01.DBF
C:\ORACLE\ORADATA\ORABASE\UNDO
TBS01.DBF
C:\ORACLE\ORADATA\ORABASE\SYSA
UX01.DBF
C:\ORACLE\ORADATA\ORABASE\SYST
EM01.DBF
C:\ORACLE\ORADATA\ORABASE\EXAM
PLE01.DBF
C:\ORACLE\ORADATA\ORABASE\UWDA
TA01.DBF
6 rows selected.
orabase> col file_name format a40
orabase> /
FILE_NAME
C:\ORACLE\ORADATA\ORABASE\USERS01.DBF
C:\ORACLE\ORADATA\ORABASE\UNDOTBS01.DBF
C:\ORACLE\ORADATA\ORABASE\SYSAUX01.DBF
C:\ORACLE\ORADATA\ORABASE\SYSTEM01.DBF
C:\ORACLE\ORADATA\ORABASE\EXAMPLE01.DBF
C:\ORACLE\ORADATA\ORABASE\UWDATA01.DBF
6 rows selected.Note the control of the display width of the column. Without the formatting the column would display at 513 characters. -
T60p - arrow keys "shift" screen side to side instead of moving cursor
T60p running WinXP - arrow keys "shift" screen side to side instead of moving cursor ; happens in Notes and Excel.
How do I reset to "normal"?Try to turn off scroll lock (key named "ScrLk")
-gan -
Is there a way to stack clips instead of side-by side?
I am amaking some movies where I want my students to be able to compare the behavior of an object under different circumstances. The side-by-side feature is nice, but for my purposes (comparing horizontal motion) it would be better if I could stack the clips so they are in the top and bottom halves of the screen. Anyone any ideas how I could do this? Thanks.
I can't think of a way in iMovie.
If you have QuickTime Pro Version 7, you can easily do this.
For example, see this video from longtime contributor Jon Walker.
The video shows a 4-up application, but you could easily do what you are describing. -
Displaying Two groups of data side by side
We are using XML Publisher 5.6.2. We have a requirement where we need to display two independent groups side by side.
What we tried was, we had a single table, on which on the same row, we defined the first group ( for-each:group1)<?Col1?><end-each>, in a single cell as part of three different form fields and then in the second column, we started the next group.
But when we ran the report, the second group does not get dsiplayed. The workaround we have to use is that define the second group in a seperate row than the first group. This displayed the data for both the groups.
The issue is that, if Group1 has 10 rows, then my second group will be pushed down.
Has anybody had this issue and if there is a resolution, please let us know.
Thanks,
- Vasu K -hi this is mohan,
I would Like to display the data in single table. i have 10 groups when i m trying the columns becoming null. when i m taking it in diff tables its working fine but my client is not satisfied with that is there any solution for this making it in one table.
Regards&Thanks
Mohan.katepalli
Path Infotech Limited -
Save for Web & Devices 2-up view not appearing side by side
Hi, I'm hoping someone can help me with this issue. In Photoshop CS4, when I used to go to the Save for Web & Devices screen, I liked using the 2-up view so I could see the difference between my original and the optimized versions. However, I've tried doing this in CS4 now and I remember seeing (in CS3 I believe) where the layout of the 2-up view was side by side (vertically) so you could have the original on the left and the optimized on the right. Now, in CS4, at least on my machine (mac OSX tiger), the 2-up view only displays the original and optimized horizontally (with the original on top and the optimized below). Is this a fixed layout for the 2-up view or can this be changed? Is this normal is something corrupted? I've looked everywhere for a button or setting to click (that I could think of) and have not been able to find a place where the layout setting can be changed. I know it's a very small issue for most people, but I really preferred viewing the two versions side by side vertically instead of one on top of the other. I'm assuming that this is just a setting somewhere that the user could change but I don't know - perhaps this interface update is new to CS4 and is not customizable?
Anyone have any information or solutions to this?Thanks so much...that was so easy, but I don't think I would ever have found it!
It works now, I just resized the window and it's now side by side...funny how this was not described in the help file when I looked it up!
Thanks again. -
How can I place two fields from one column side by side?
Hello experts,
I need your help: I have a column which has two different fields. One is Sales, the second is Sales Todate.
My boss want me to get the difference btn them as well as the percentage. Now, here is my challenge: I can easily filter them but I want them to be side by side; but when I filter one appear on top of the other like below
Sales
Sales
Sales
Sales
Sales
SalesTodate
SalesTodate
SalesTodate
SalesTodate
SalesTodate
However, I want them appearing like below: that way, I can place the difference column beside them.
Sales
SalesTodate
Sales
SalesTodate
Sales
SalesTodate
Sales
SalesTodate
Sales
SalesTodate
Any help will be appreciated.. I have tried a case statement, still the problem persist
Chuck
On the side: Does anyone know how to place the question in such a way when one answers I can mark correct or helpful, I am still not able to.. I hate it, when I place a question I go through create then discussion, is that the right way?Hi
Just drag the column to measure label area in pivot table @ columns.
So the table has to drag and drop to column area on the top so it will get display like
Sales SaleToDate
And the measure label to row side drag and drop it
sales saletodate
values values
Regards,
VG -
How to update UDF based upon the row level dimensions.
Hello Experts,
I have made 4 new udf at Sales Order. Its displaying at Righthand side under General Category.
Now at row level im entering item detail, and other things with 4 profit center vaues.
So i want that if i enter value in those 4 proft center in row level then it should automatically update those 4 udf with that value.
It always happen in Add mode of SO, if SO open in update mode then i can update those udf with other values also, which can be differ then row level profit center values.
If we need to create any trigger or any query for that, then guide me for that.
Regards,Hi Chintesh,
You can use the option of changing value when the exising column value changes. (also check the option refersh only option)
pls revert in case more help.
Regards,
Datta Kharat -
How to get Adobe Acrobat 7 Side by Side Comparison
Hello all,
I have an issue where my job functions requires a Side by Side Compaison with 2 documents. I currently have Adobe Acrobat 9 (upgrade from work) but found its side by side to be downgrade. With this upgrade, the side by side comparison (Instead of 1 documents you have to seperate them into 2 pdf files) of my documents are now not being approved. How or who would I have to talk to get recieve the Adobe 7 side by side comparison again?https://my.adobeconnect.com/p73795396/
-
How do I adjust finder 'view' options to scroll up/down NOT side to side
Using finder/download I like to see my files/photos, apps, music.... for easier filing/deletion, so I use icon view.
I was thinking that way back when in icon view/kind/date added I would see a page of icon files that I could scroll up/down and enlarge w/ slider bar - (if it decided to work, if not- once again turn off/ turn on.... that's a whole-nother issue)
Anyway, now in icon view I have this never ending line of icons/files that scrolls side to side - what a pain to file.
Is there anyway to set back to a page view instead of the line view?
thanks for any insight!Turn off the Arrangement.
Arrangements are groupings of like items. It is not sorting.
You have set your arrangement such that all of the icons fall into the same group and are listed horizontally in that group.
View menu, Arrange By, None.
If you want to sort, hold down the option key and Arrange By will change to Sort by.
You can also set both from the View Options dialog (cmd-j). -
Trying to understand CF side-by-side installations (CF9 and CF11)
I'm testing my upgrade from CF9 to CF11 on the same server. Looks like my old CF9 installation was an enterprise, standard, IIS installation. (if that makes sense to you) My CF11 is an enterprise, production + secure, stand-alone installation. It appears that I had to choose the stand-alone installation with internal web server so it can diferentiate between the two Cold Fusions adn do side-by-side installation. We want to use the internal web server anyhow so we can use the built-in Tomcat server instead of having to install a separate one. Now the question has come up, how do I get all of my web pages that are on IIS into my current ColdFusion. I discovered a document that discusses the Web Server Management. It looks like I can run it now and it will configure my connection between IIS and ColdFusion.
https://wikidocs.adobe.com/wiki/display/coldfusionen/Web+Server+Management
My question is, can this be done while CF9 is still up and running and then it would give me a CF11 ran instance of using the CF webpages so I can test them and get them to work. Someone was thinking that IIS wouldn't be able to figure out which CF administrator to use. Two CF applications cannot use IIS at the same time. If so, how do I get the two systems to run side-by-side using my CF pages, so I can test if anything broke and needs to be changed in the code, and/or test any of the new capabilities in CF11?
Thanks in advance!!It can be done, but it is not necessarily for the faint of heart. I haven't done it in quite some time. Here are the basics:
Figure out which ports CF 9 is using.
Install CF11 using the built-in web server first (don't connect it to IIS). Make sure CF 11 is not trying to use the same ports as CF 9.
Run the CF9 Web Server Connection Tool. See if you have "all sites" configured. If you do, remove the connector and reinstall individually to the sites you want CF9 to operate. Make sure your sites operate properly before moving on.
If you want to have the same site code run under both CF9 and CF11, you'll need to copy the directory of the CF9 site to a new directory for CF11 (e.g.: D:\sites\MySite -> D:\sites\MySite2)
Run the CF11 Web Server Connection Tool. Connect your CF11 site (D:\sites\MySite2) to IIS.
Repeat 4&5 for each site you are parallel testing with CF11.
I'd do a Google search on "install multiple versions of ColdFusion", as there are several blog articles involving previous versions of ColdFusion. If you find one that shows CF9 paired with CF10, it should be pretty much the same for CF9 and CF11.
If it were me, though, I'd spin up a virtual machine, copy the site code in, and install CF11. I would then do extensive testing, fix code that breaks, then when once I was satisfied CF11 is working fine, copy the code updates back to my production server and do an upgrade install of CF11 to replace CF9.
-Carl V. -
How do I get video (.f4v) to play and sync side by side powerpoint slides
I have a talking head video (converted to .f4v) that I would like to position on the left side of the screen and sync with a powerpoint deck on the right side of the screen. Does anyone know how to accomplish this in Adobe Captivate?
You can add a talking head video to the TOC area. Place your TOC on the right instead of the left side.
Maybe you are looking for
-
Cant see my iPod in Itunes and cant connect to store
When I open my iTunes my iPod touch dosnt appear under Devices.It is fine when I plug in my iPod Nano (it recognises that no problem).Also when I try to connect to the iTunes store it comes up "the network connection was refused.Make sure your networ
-
SC Vendor flag on PO level populated from contract
Dear all, maybe you can help me with this topic. I have an external vendor (B) who should provide components to a Subcontractor (A). So the first PO is for my subcontracotr with the item category L, secondly as I do not have the component on stock t
-
Problem in registerApplicationFromPropertyFile method
Hi, I use the following code to get an application module instance. oracle.jbo.html.jsp.JSPApplicationRegistry appRegistry =oracle.jbo.html.jsp.JSPApplicationRegistry.getInstance(); appRegistry.registerApplicationFromPropertyFile(session, "dgpa_bd_Bd
-
Business Object - Problem with client tool
Hi Everyone, We installed BO Enterprise XI 3.1 in Windows server but we'rehaving problem accessing it through Cient tool from different server. But when we log in in the same server, BO works fine as well as thru web log in.. Can you please help me o
-
Overriding Result Status of a (Multiple) Numeric Limit Test
I want to be able to change the pass/fail status of a numeric limit test from a CVI DLL, whilst still displaying the numeric results in the report. I have tried ResultStatus, StatusExpression and many others but they all seem to do nothing or get rep