Sorting Column's Label in Pivot Table
Hi Fellows !!
This is my problem: I have two tables, dates and rates, providing me data for a report. Dates has a DateId (number), Year(number) and Month(varchar2(12)), and Rates has DateId(number) and RateAmount(number). I wrote a quite simple query to obtain report's data:
SELECT DATES.YEAR, DATES.MONTH, RATES.RATEAMOUNT
FROM DATES, RATES
WHERE DATES.DATEID = RATES.DATEID.
I must to show as a pivot each rate by month for each year. Years must be showed as row heading and sorted descending (this already works) and Months must be showed as column's labels. Something like this:
----------|January|February|......|December|
2008 | 737.3 | 372.3 |......| 342.56 |
2007 | 346.2 | 456.6 |......| 678.78 |
The problem is Months always appear in Lexicographical order: April, August, December, ..., September. How can I to define the correct sort for Month ? Thanks in advance for your help.
Edited by: [email protected] on Sep 21, 2009 4:03 PM
Hi Vetsrini, thank you for your answer.
I've included an additional DATES table's field in query, and it contains the number of month, according to your suggestion. Results for query show month's names in proper form, but when I set up the pivot table from template builder and get preview for results (pdf, html, etc), I still get month's names in Lexicographical order. All the examples and documentation tips (sorting tags and others) I've found seems to apply to normal tables, because none of that works in my pivot table. Any other ideas are welcome.
Similar Messages
-
Maximum Number Of Columns For A OBIEE Pivot Table?
Hi All ,
What is the Maximum Number of Columns for a OBIEE Pivot Table? Also what is default size of columns set for Pivot view in OBIEE 11g?
Thanks In Advance.
QujesHi,
You can increase the maximum columns in a view by add some tags to instanceconfig.xml file.
check this...http://obiee101.blogspot.com/2008/02/obiee-controling-pivot-view-behavior.html
Regards,
Srikanth
Edited by: Srikanth Mandadi on Oct 15, 2010 10:04 AM -
Hi,
I have a question about the column order in a Pivot Table in a WebI (xi r3.1) report
At the moment I have the following Pivot Table
|1 | 2
| Produced Water | Produced Oil | Produced Water | Produced Oil
Platform 1 | 2 | 3 | 4 | 5
Platform 2 | 3 | 4 | 5 | 6
I want to have the following pivot table instead
| Produced Water | Produced Oil
| 1 | 2 | 1 | 2
Platform 1 | 2 | 4 | 3 | 5
Platform 2 | 3 | 5 | 4 | 6
Is it possible to setup the above pivot table in a WebI report?
Many Thanks for any help,
Dirk JanDirk Jan,
That's a question regurlarly asked to me by users and the solution (as long as nobody is comming up with a better one) is to create variables for the measures for each month (using the WHERE operator).
So you need to define 12 variables (for each month) for Product Oil and Product Water (PO month1, PO month 2, ...., PW month 1, PW month 2 ....) using the formula (eg. PO month1):
=[Product Oil] Where ([month] = 1)
Then instead of a crosstab you build a table where you can put the variables in any order you want.
Regards,
Harry -
How to change labels in pivot tabls
I have created a report combining two cubes. From one cube I select the total room nights and total revenue, and from the other cube I filter on room nights and room revenue for a certain company.
The goal is two compare how much revenue and room nights from the total is coming from this company.
I used there the combine with similar request functionalities and added one column in each cube for the purpose to create the labels "Tot room nights", "Company room nights". This works as well, however under Room Revenue in pivot tables it shows "Tot room nights", "Company room nights" as well, which is wrong.
Attached screens shots for better understing.
I have tried to create the label for the revenue as well, but it doesn't work.
Any suggestions?
http://imageshack.us/photo/my-images/809/company1z.jpg/
http://imageshack.us/photo/my-images/99/companyq.jpg/
ThanksHi,
to handle GuiXT central in SAP: use transaction SHD0. There is also an online help for further information.
in SHD0 transaction variants are defined: alternative tcodes, where normally fields are hidden and default values are assigned.
Enter standard tcode in field TCODE, enter z-tcode in field TCVARIANT and create just something for playing...
In upper part you will find flag GiuXT-Script and in upper part is 'i'-button for help in using this transaction (this blue-i-help-button is also in starting screen, docu is implemented like SPRO-docu).
Approach with SHD0 ensures transportation of scripts and automated download to local Guis - so some help to handle bigger installations.
Regards,
Omkar. -
Remove column heading in a pivot table without columns
I have a pivot table which only has rows and measures. But It doesn’t have any column.
It shows at the top a light grey cell (see attached image https://drive.google.com/file/d/0B1mQC-zTrijUSmtXWEFEaHB1cEU/edit?usp=sharing
How could I remove that?
Column properties – labels of column are already disabled.
OBIEE 11.1.1.7.0
Regards,
VíctorHey Victor,
I'm unable to view that file also...
Just curious, if you don't have anything in the column section of the pivot, why not just use a table?
If this is going onto a dashboard the quick and dirty approach is just to make a small CSS change, just throw something like the following into a text object.
<style>
.PTCHC0 {border:0px; background-color: #FFFFFF; background-image:none;}
</style>
JB -
Sort on the Measure in Pivot table in OBIEE 11g
The pivot table ignores the sort on the measrure in the criteria section, so how can we enable sort on the measure columns in pivot in OBIEE 11g ?
887111 wrote:
The pivot table ignores the sort on the measrure in the criteria section, so how can we enable sort on the measure columns in pivot in OBIEE 11g ?Try this:
1) Make a duplicate layer of the measure column.
2) Move the duplicate layer to the far left in the Rows section.
3) Apply the desired sort order.
4) Hide the duplicate layer column. -
Sorting on Totals in a Pivot Table
I am using 10g and I am trying to do a secondary sort on a total column. The columns in my pivot table are region, country, employee headcount by business unit and total headcount. I have the region sorted to get Americas, Asia/Pacific, and EMEA, but i can not get the countries under each region to be sorted by the total headcount.
thanks in advance for any hints.961587 wrote:
I am using 10g and I am trying to do a secondary sort on a total column. The columns in my pivot table are region, country, employee headcount by business unit and total headcount. I have the region sorted to get Americas, Asia/Pacific, and EMEA, but i can not get the countries under each region to be sorted by the total headcount.
thanks in advance for any hints.Try this:
1) Grab another instance of your headcount column in your Criteria.
2) Click on the fx and enter SUM(table.headcount by table.Region, table.country)
3) Put this column after the Region column (if you have a duplicate layer in your Rows Section. If Region is in the Sections area of the pivot table, then this column should be farthest left).
4) Sort this column and hide it. -
CALL TO COLUMN IN TITLE IN PIVOT TABLE
Hi all, In Oracle BI Asnwer i create a pivot table and i want to call a column data(column data in criteria), i think that i call with "@" and name column or position column, i think this because in gauge i can do it, i put "@1","@2","@3",.... "@+positioncolumn" image--> [Image gauge |http://lh4.ggpht.com/_V2lpPpulbm0/Sjt_sVzrxtI/AAAAAAAACSY/ys175AzRLJI/gaugestitle.PNG] , but in pivot table i can´t, image --> [Image pivot table|http://lh6.ggpht.com/_V2lpPpulbm0/Sjt_sR8NvAI/AAAAAAAACSc/si4JIoU2qNU/pivottable.PNG] .
I tried with : @1,@namecolumn,@{namecolumn},...etc.
any sugestions?
Edited by: Benito Camelas on 19-jun-2009 5:13
Edited by: Benito Camelas on 19-jun-2009 5:14where exactly do you have a title in a pivot? you sure its not a title for the entire report?
if its the latter then you can add an narrative and apply what you tried ( e.g. @1) -
Duplicate fact column as percentage in pivot table.
Hi,
I created duplicate fact column set as percentage in pivot table.
Duplicate column not visible for graph generation.My requirement is need to use percentage column for graph .
How to achieve this.kindly let me know.Thanks for reply.
Sorry if im not clear.
Here is my requirement.
1.In my report contains 2 columns.
2.Example - year,count.(Here- Count is fact)
3.I make the count as duplicate column and set as percentage.
4.If i create graph in pivot table itself then graph contains 3 column information i.e.,Year,Count,% Count.
5 Here i unable to hide/remove original count column.
My requirement is my graph has to contains 2 column information i.e., Year,%Count.
How to achive this.kindly let me know. -
How to calculate value from perticular column and row in pivot table
Hi all,
I am having following pivot table.
Country
A
B
C
D
F
G
H
J
K
L
M
Grand Total
Canada
1
1
3
3
12
14
13
97
China
8
4
3
19
India
2
47
448
176
395
3656
1964
1360
8077
USA
1545
352
380
26
10
4
8
32
2054
1023
758
4624
UK
12
19
13
23
33
298
Grand Total
1545
352
381
29
72
474
184
427
5743
3028
2167
13114
Now I want sum of Columns A, B, C, K, M where Country = India in one field.
and sum of D, F, g in another field. and sum of remainig columns in another field.
How can i get sum of values with some where condition in pivot table.
Thanks,Hi Michael,
Following is the representation which i want
CouRntry
ROW LABLES
A
B
C
Total of
ABC
F
G
Total
Of FG
J
K
L
TOTAL
of JL
Grand
Total
Canada
1
1
3
3
12
14
13
97
China
8
4
3
19
India
2
47
448
176
395
3656
1964
1360
8077
USA
1545
352
380
26
10
4
8
32
2054
1023
758
4624
UK
12
19
13
23
33
298
Grand Total
1545
352
381
29
72
474
184
427
5743
3028
2167
1
Also if i get sum how can i add a column in between of the fields.
Thanks -
Sorting data by clicking on pivot table header in excel
Hi,
Do you have an elegant idea how to sort pivot table data, based on power pivot model,
by clicking on header (not by using the arrow on the first one).
I'm Using Excel 2013
Thank you in advance!
DinaYou could implement a solution using slicers:
http://www.powerpivotpro.com/2011/10/user-friendly-report-sorting-with-slicers/ -
How to Sort Dimension in Pivot Table via Order Column which is changing like Factual values
Hi,
Recently in of our product offerings we got stuck on this following question:
How to Sort Dimension based on the Order Value which Keeps Changing with Factual Values??
We have a data source laid out as (example)
In the above the “Order” columns are changing per
Company/(DimensionA) for DimesnsionB.
Instead what we want is: (But only if we can get the following result without putting the “Order” Column in the “Values” Section.
If there are any configurations that we can make to our power pivot model for the similar data set so that the
DimesnionB in this case can be sorted by the Order column, would be greatly helpful to us.
Sample File:
http://tms.managility.com.au/query_example.xlsx
Thanks
AmolHi Amol,
According to your description, you need to sort dimension members in Pivot Table via order column, and you don't want the order column show on the Pivot table, right?
Based on my research, we can sort the data on the Pivot table based on one of the columns in that table, and we cannot sort the data based on the columns that not existed on the Pivot table. So in your scenario, to achieve your requirement, you can
add the column to pivot table and hide it.
https://support.office.com/en-gb/article/Sort-data-in-a-PivotTable-or-a-PivotChart-report-49efc50a-c8d9-4d34-a254-632794ff1e6e
Regards,
Charlie Liao
TechNet Community Support -
Problem of sorting month name in pivot table
Hello,
I have a month name that is sorted by month number in my repository.
When I select Year + month name + measure sorted by year then by month name and I look the result in a table, everything works perfectly but when I switch to a pivot table the sorting doesn't work : the pivot table sorts my month name in an alphabetical order instead of using the month number .... Is it normal ?
To find a solution, I have added my month number and I have sorted by year then by month number and I have hidden my column month number. This have solved my problem for the pivot table but if I attached a chart to it (by selecting "Chart Pivoted Results"), the label of the bottom axis contains the month number and the month name and I haven't found where I can hide this month number. Why the hidden option only works on the pivot table and not on the pivot chart ? And how I can do that ?
Thanks in advance for your help.No there is no Transient attribute involved , could you please tell me what might cause this error .
Basically this page is for inserting a record.
Thanks ,
Keerthi
Edited by: user1140193 on Oct 21, 2011 7:15 AM
Edited by: user1140193 on Oct 21, 2011 7:16 AM -
Sorting Totals After on rows in a Pivot table
Hi,
I need to Sorting Totals After on rows in a Pivot table .
Can anyone help?
ThanksTry this:
1) Duplicate your measure column in Criteria.
2) In the fx window, enter RANK(your_measure_column).
3) Place this column in the Rows section of your pivot table. Apply ascending sort order.
4) Hide the column.
Your Totals (After) column (the sigma sign in the Columns section of your pivot table) willl be sorted. -
How to sort column totals in pivot view
Hello guys
I have a report in pivot view where I have put call type on the column section. So the report looks like below with SUM applied at the column section:
Call Type1 Call Type2 Call Type3 TOTAL
ID SALES TOTAL
A 100 200 300 500
B 200 200 400 800
C
D
EMy question, how do I sort the data in 'TOTAL' field? The challenge it seems is that since 'TOTAL' isn't a table column, but just a display of pivot Sum, it can't be sorted H-L or L-H..
But I'd like to have some advice from you guys before I make my conclusion
Thanks
Edited by: user7276913 on Jan 11, 2010 10:05 AMYou can't have the sorting on the total in Pivot table.
On a workaround,
you can create a column in the criteria which calculate the sum
SUM(sales_total by ID)Assign sorting order on this column
You can exclude this column in the pivot table
Regards,
Raghu
Maybe you are looking for
-
Upgrade Coldfusion 8 Multiserver to Coldfusion 9 Multiserver
So I am working on a new web environment that we are planning to rollout in January and I have all of the servers setup, configured and ready to go. They are running CF 8 multiserver and everything runs pretty great right now. Now that coldfusion 9
-
Web Dynpro for ABAP iVIew's Namespace parameter
Hi Gurus, I am trying to create Web Dynpro for ABAP iVIew in portal There I have confusion while giving namespace say I m trying to create iView for standard WD4ABAP Application which lies in SICF at below location /default_host/sap/bc/webdynpro/sap/
-
I have a strange problem....with many applications including third party and even the messaging app sometimes when i'm writing long words the text editor crashes and the app too....
-
Photoshop CS5.1 won't launch from a bootable backup
I regularly back up my hard drive to two different external drives using SuperDuper. I can boot from them, but when I do Photoshop will not launch. It evidently wants to see a particular hard drive as its home. What is the solution to this? I tried
-
Cannot import RAW files since I upgraded to Yosemite
I used to import RAW files using iPhoto from my T3 Canon camera but since I upgraded to OS X Yosemite (10.10.1) and iPhoto 9.6 I cannot do this anymore. I have reinstalled the OS, applied all the RAW upgrades and even deleted and installed iPhoto aga