Help in Pivot Table
Hi
How to show grand total two times in pivot table?is it possible
Thanks in Advance
Have a look here:
http://obiee101.blogspot.com/2008/05/obiee-pivot-table-measure-label.html
regards
John
http://obiee101.blogspot.com
Similar Messages
-
Help in Pivot Table (or another ways)
I need to do following view in the report,can anyone tell me how can I do that??
This is original report:
DATE AMOUNT1 AMOUNT2 AMOUNT3
01/02/2009 5 6 7
02/02/2009 2 3 4
I want to change this view into this:
01/02/2009 02/02/2009
AMOUNT1 5 6
AMOUNT2 6 3
AMOUNT3 7 4
How can I do this? Please help me..Have a look here:
http://obiee101.blogspot.com/2008/05/obiee-pivot-table-measure-label.html
regards
John
http://obiee101.blogspot.com -
Help with pivot tables in excel
Hello,
I need some help with a very specific issue I am getting in excel.
So, I have this pivot table that gets data from an external source (a huge database) and everything is working fine.
The problem comes with some lines in our database that are written in asian letters (the thai alphabet). Every thai entry that we import appears like ????????.
I can look into the DB (via MySQL Workbench) and everything is alright in there. I can also just copy some of the content into excel and the letters shows up normally.
Is there something I can do to fix it?
Thank you very much
Daniel AyresI can see it is working fine for roman/latin characteres, and it is not working for thai or japanese characteres. Since I dont have data written using the russian or the arabic alphabet, there is no way I can tell you if it would or not work..
-
Dear
i am working on BI Publisher Desktop Version and trying to generate a RTF Template in which pivot table has to be used
Below is the format of my XML File.
-<G_C1>
<R>1</R> row 1
<C>1</C> column 1
<C1>1300001 ASL 112531 2</C1>
<C2>1 10 1.5</C2>
<C3>120000105 12.5</C3>
<C4>120000105 </C4>
<C5>OPeration</C5>
</G_C1>
-<G_C1>
<R>1</R> row 1
<C>2</C> column 2
<C1>1300001 ASL 112531 2</C1>
<C2>2 10 1.5</C2>
<C3>120000106 12.5</C3>
<C4>120000106 </C4>
<C5>OPeration</C5>
</G_C1>
-<G_C1>
<R>1</R> row 1
<C>3</C> column 3
<C1>1300001 ASL 112531 2</C1>
<C2>3 10 1.5</C2>
<C3>120000107 12.5</C3>
<C4>120000107 </C4>
<C5>OPeration</C5>
</G_C1>
......... and sow on till row 16 and column 8
i am facing two issues,
first i have to show 5 columns in cross product, but pivot table option shows option for 4 columns only
secondly characters are not shown when i preview the template its shows 'NnN' in all columns
Kindly help me in generating the template.
I have to define the template in XML Publisher of Oracle E-Business Suite R12
Regards,
Muhammad Usmancheck these samples
http://winrichman.blogspot.com/2008/08/pivot-table-cross-table-with-fixed.html
and
https://blogs.oracle.com/xmlpublisher/entry/new_skool_crosstabbing
i will let you if i know i get anything. -
Hi all,
We are having 6 measures. My requirement is that all the 6 measures needs to placed in rows one after other(each measure in one row) And in column level Fiscal year should be displayed to the corresponding 6 measures. Is this possible in pivot table...
Kindly help..urgent
Thanx in advance...
Regards,
NareshPlace measure lables in the rows and year column in column and all the measures in measures
-
Require help with Pivot table query in SQL Server 2008
Hi,
I have a query regarding converting columns to rows in SQL Server 2008. Please look at the table below.
I need the output to look something like this :
The columns for the children can be dynamic or fixed ( max of 6 children) based on the Family_ID. For Example: A family can have 1 child or more than 1 child.
Not sure how to go about it. Would appreciate your help :)Looks like you need dynamic pivot on multiple columns. I have two articles on this topic, start from this one
T-SQL:
Dynamic Pivot on Multiple Columns
It has reference to my other blog post.
For every expert, there is an equal and opposite expert. - Becker's Law
My blog
My TechNet articles -
I'm trying to create an airplane seat map. 2 tables boarding and seats, boarding has the seat assignment (seatid) and seats has the id as well as row (eg 1) and position (eg A, B,C). I'm trying to pivot the two together so I see which seat
is taken and which is open (1-taken, 0-open). Result should look like this:
Row |A|B|C|
___1|1 0 1
___2|0 0 0
___3|0 0 0
___4|1 0 0
Using SQL server, run a below query get error "incorrect synatx near 'PIVOT'
SELECT *
FROM (SELECT s.row, s.position,
CASE when b.seatid is null
then 0
else 1
end seat_free
from seats s
left outer join
boarding b
on (b.seatid=s.id)
PIVOT (max (seat_free)
FOR position in ('A' as A, 'B' as B, 'C' as C))
Order by s.row
Thanks for the help!Hi,
in addition to pivot solutions posted by RSingh and Latheesh, you can use another solution without pivot:
select roww,MAX([A]) as [B],MAX([B]) as [A],MAX([C]) as [C]
from (
select roww ,
[A] = CASE
when position = 'A' and not ISNULL(boarding.seatid, '0') = '0' then 1
else 0
END,
[B] = CASE
when position = 'B' and not ISNULL(boarding.seatid, '0') = '0' then 1
else 0
END,
[C] = CASE
when position = 'C' and not ISNULL(boarding.seatid, '0') = '0' then 1
else 0
END
from seat
left join boarding on seat.id = boarding.seatid
) T
group by roww
Hope this is helpful :-)
[Personal Site] [Blog] [Facebook] -
Need help w/pivot table. dsplay multi cols as col delimited, data fm 2 tbls
I need to disply data from tbl 1 with qty's from tbl2.
disply qty's i.e. (if qyt_type = 'past', display column in ',' deliminated) as "Past_qty"
colmns in 1st tbl
name,pgm,type,code
aaa bbb 3 x
aaa ccc 3 z
colmns in 2nd tbl (first three cols are refer integ to the 1st tbl)
name,pgm,type,qty_type,qty
data in tbl 2
name pgm type qty_type qty
aaa bbb 3 past 0
aaa bbb 3 past 0
aaa ccc 3 past 1
aaa ccc 3 past 3
aaa bbb 3 present 0
aaa bbb 3 present 0
aaa bbb 3 future 0
aaa bbb 3 future 0
need it to look like this
name pgm type past_qty present_qty future_qty, code
aaa bbb 3 0,0 0,0 0,0 x
aaa ccc 3 1,3 z
there are 12 past qtys, 38 present qtys and 60 future qtys
thank you in advanceOh well, guess I needed some little exercise.
Here it is:
SQL> create table first_table
2 as
3 select 'aaa' name, 'bbb' pgm, 3 type, 'x' code from dual union all
4 select 'aaa', 'ccc', 3, 'z' from dual
5 /
Tabel is aangemaakt.
SQL> create table second_table
2 as
3 select 'aaa' name, 'bbb' pgm, 3 type, 'past' qty_type, 0 qty from dual union al
4 select 'aaa', 'bbb', 3, 'past', 0 from dual union all
5 select 'aaa', 'ccc', 3, 'past', 1 from dual union all
6 select 'aaa', 'ccc', 3, 'past', 3 from dual union all
7 select 'aaa', 'bbb', 3, 'present', 0 from dual union all
8 select 'aaa', 'bbb', 3, 'present', 0 from dual union all
9 select 'aaa', 'bbb', 3, 'future', 0 from dual union all
10 select 'aaa', 'bbb', 3, 'future', 0 from dual
11 /
Tabel is aangemaakt.
SQL> select f.name
2 , f.pgm
3 , f.type
4 , stragg(decode(s.qty_type,'past',s.qty)) past_qty
5 , stragg(decode(s.qty_type,'present',s.qty)) present_qty
6 , stragg(decode(s.qty_type,'future',s.qty)) future_qty
7 , f.code
8 from first_table f
9 , second_table s
10 where f.name = s.name
11 and f.pgm = s.pgm
12 and f.type = s.type
13 group by f.name
14 , f.pgm
15 , f.type
16 , f.code
17 /
NAM PGM TYPE PAST_QTY PRESENT_QTY FUTURE_QTY C
aaa bbb 3 0,0 0,0 0,0 x
aaa ccc 3 1,3 z
2 rijen zijn geselecteerd.Regards,
Rob. -
Hello gurus,
I need a help in pivot table view. In pivot table, I have to show measure in accordance to month. For example show sales as per region by month name.
Region Sales
Jan Feb Mar Apr …………..Dec Avg Total
A 10 40 92 92 32 xxx xxx
B 73 83 39 78 87 xxx xxx
So this is what I have to do. I am able to do this with one measure with created new calculated item. Now I have to create this report using two measures and the in the new measure I have to show only average and total.
For example
Region Sales Target
Jan Feb ………Dec Avg Total Avg Total
A 10 40 32 xxx xxx xxx xxx
B 73 83 87 xxx xxx xxx xxx
Here sales and target are two different measures. The problem is when I add target column in measures; it will show all the month which I don’t require at all because I need all the month for sales only and for target I just need average and total. I try from head to toe but not getting any thing like this.Can i do this using other view if possible.
Help me guys. If you need more explanation then please let me know.
Thanks
Regards,
SuhelAnybody replies please.....
Is this possible that we can use Calculated column in other calculation in pivot table. For example, total of one measure divided by total of another measure in pivot table.
Regards,
Suhail -
Pivot table HELP in OBIEE Answers!!!
Hello,
I am having some problems in a “pivot table”, “Sections” and “Calculated Items” I have a section called 'e) External Income' and I would like the value reverted from a negative to a positive. In excel or any other form of calculation you can do this by * -1 (negative 1). However this statement does not work as a Calculated Item. This is the statement I am using = 'e) External Income'*-1 and I get the following error message “The semantics of the formula entered are not valid”.
I have also tried = 'e) External Income'-('e) External Income'+'e) External Income') this will give you it as a minus also but I have no error message this time, but the values stay the same.
Can this be done any help would be very appreciative.
Thank you
JohnI cannot change the folmula in the critera tab because this will chnage my values on the other 'Bins' I have created. Ref your other question i have a list of account codes and i have grouped ones together to create 4 "Bins". If i change the formula for one of the Bins it will chnage it for all of them but I only need it on the 'e) External Income'
-
Help me regarding pivot table group by
Hi ,
i am developing an bi publisher rtf template using ms word .
i had an issue with pivot table.
i have a table something like this
table_code Indicator1 year value
1 a 2008 20
1 a 2009 40
1 b 2008 10
2 a 2008 20
2 a 2008 20
2 a 2008 20
in table view i am doing this .. i am grouping my table by table_code
<>TABLE_CODE
INDICATOR1 YEAR VALUE
INDICATOR1 YEAR VALUE
By doing so , i am getting all the tables in my database
like
1
indicator year value
a 2008 20
a 2008 10
a 2009 20
2
indicator year value
a 2008 20
a 2009 20
b 2008 20
. so on
Now i want pivot table view like
1
Indicator 2008 2009 2010
a 20 30 40
b 10 40 40
2
Indicator 2008 2009 2010
a 20 30 40
b 10 40 40
how can this be achieved??
how to create a group by in pivot table? where to write the group by clause?
struck here from 1 week. any help will be appreciated .
Thank You,
Sunny.i have to use table_code also in the view??
C H ACCTABLE_CODE
INDICATOR1
G YEARE
G RSTABLE_CODE
G INDICATOR1
G 999.00E E
and where to write the code.outside the table or on which tag?? and what to write.
please help me.
Thanks -
Pivot table problem. Please help me create this report
Hi friends..I'm new to OBIEE. We can create the grand total column in pivot table. I need grand total as well as Grand average. How can I create a new column in pivot table that is same as grand total but calculates average.
My table structure is like this.
Facility......Date........totaldays
A..........01/01/08......210
B..........01/01/08......215
C..........01/01/08......917
A..........02/01/08......211
B..........02/01/08......211
C..........02/01/08......911
A..........03/01/08......210
B..........03/01/08......215
C..........03/01/08......917
I need the report like this..
Facility.....01/01/08......02/01/08....03/01/08...Total....AVG
A...............210.............211............210.....631......210.3
B...............215.............211............215.....641.....213.6
C...............917.............911............917.....2745....915
For this report..I created pivot table but I'm not able to calculate the average..
Can you please help..I'm new to OBIEE...
Thanks in advancePlease change your username....
Here is what you need to do...
1) In the Pivot Table View, click on the Measures column and select New Calculated Item.
2) In the pop-up window complete as follows:
Name: type "Total Average"
Function: Select "Average" from the drop-down window.
Click on the values in the right pane that you wish OBI to calculate the average for.
3) Click "OK."
You now have another column that is the average of the values in each row. -
Hi,
I have created a request in Pivot Table. Rows section Include Product Domain column and Columns Section Includes Month ;
measures section contains columns gross, profit, loss and YTD %. I want YTD% column to appear after Dec month and it is should come only once.
In my request it is getting repeated for every month.
It should look like following way,
-------------------------------|-------Jan-----|------Feb------|-------Mar------|-------Apr------|--------YTD %
=========|======|========|========|=========|=========|-------------------
-------------------|-Gross
Prod Dom 1-----|-Profit
-------------------|-Lossyou can include month to measures and other column row level and apply aggregation
Edited by: Chack on 20 May, 2010 12:06 PM -
Hi
I have searched pivotand not sure if what I see will work for me. here is what I have
table
ssn,benefit_id,plan_id, option_id
123456789,MEDICAL,BCBS,80/20
123456789,MEDICAL,ATENA,1020
I need a pivot table where i can put the ssn and then all benefit_id,plan_id, option_id combinations in the table into a pivot table sorfor above I have
123456789,MEDICAL,BCBS,80/20,MEDICAL,AETNA,1020,etc
I have this working
SELECT ssn,
LTRIM(MAX(SYS_CONNECT_BY_PATH(benefit_id,','))
KEEP (DENSE_RANK LAST ORDER BY curr),',') AS benefits
FROM (SELECT ssn,
benefit_id,
ROW_NUMBER() OVER (PARTITION BY ssn ORDER BY benefit_id) AS curr,
ROW_NUMBER() OVER (PARTITION BY ssn ORDER BY benefit_id) -1 AS prev
FROM emp_ben_elects)
GROUP BY ssn
CONNECT BY prev = PRIOR curr AND ssn = PRIOR ssn
START WITH curr = 1;
IN 9.i
How do I add the plan_id and option_id?
Any Ideas?Hi,
If you use Rob's approach, change the second argument of SYS_CONNECT_BY_PATH to something that will not appear in the first argument.
That is, don't say:
SYS_CONNECT_BY_PATH ( benefit_id || ',' || plan_id || ',' || option_id
, ',' -- WRONG: Causes ORA-30004
)Instead, do something like:
SYS_CONNECT_BY_PATH ( benefit_id || ',' || plan_id || ',' || option_id
, ';' -- Assumes semicolon never appears in columns above
)If you really want to have the same character that separates fields (',' above) used to separate records, too (instead of ';', above) use REPLACE on the string returned by SYS_CONNECT_BY_PATH:
REPLACE ( SYS_CONNECT_BY_PATH ( benefit_id || ',' || plan_id || ',' || option_id
, ';' -- Assumes semicolon never appears in columns above
)I wouldn't use CONNECT BY at all. I suggest the user-defined STRAGG function, which you can copy from astom
After installing STRAGG, your entire query will just be
SELECT ssn
, STRAGG benefit_id || ',' || plan_id || ',' || option_id)
FROM emp_ben_elects
GROUP BY ssn;Unlike your original query, the records will not necessarily appear in any particular order.
If you want that, STRAGG can be used as an analytc function. -
Hi Everyone
I used this in SP calculated column field.
=IF([Shift Sched]="1pm to 10pm","0",IF([Shift Sched]="2pm to 11pm","1",IF([Shift Sched]="3pm to 12am","2",IF([Shift Sched]="4pm to 1am","3",IF([Shift Sched]="5pm to 2am","4",IF([Shift
Sched]="6pm to 3am","5",IF([Shift Sched]="7pm to 4am","6",IF([Shift Sched]="8pm to 5am","7",IF([Shift Sched]="9pm to 6am","8",IF([Shift Sched]="10pm to 7am","8",IF([Shift
Sched]="11pm to 8am","7",IF([Shift Sched]="12pm to 9am","6",IF([Shift Sched]="1am to 10am","5",IF([Shift Sched]="2am to 11am","4",IF([Shift Sched]="3am to 12pm","3",IF([Shift
Sched]="4am to 1pm","2",IF([Shift Sched]="5am to 2pm","1",IF([Shift Sched]="6am to 3pm","0",IF([Shift Sched]="7am to 4pm","0",IF([Shift Sched]="8am to 5pm","0",IF([Shift
Sched]="9am to 6pm","0",IF([Shift Sched]="10am to 7pm","0",IF([Shift Sched]="11am to 8pm","0",IF([Shift Sched]="12pm to 9pm","0"))))))))))))))))))))))))
it was able to work fine however my issue is when i extract the information to excel and use a pivot table the table is not able to calulate the sum of the value for this field. Can you please help me with this. this is for an Attendance traker for Night
Differential pay for employees. they create a daily log of their shift schedule and if i summarize this in pivot the value in the calculated field for this is not getting the sum.
Thanks,
NormanHi Everyone
I used this in SP calculated column field.
=IF([Shift Sched]="1pm to 10pm","0",IF([Shift Sched]="2pm to 11pm","1",IF([Shift Sched]="3pm to 12am","2",IF([Shift Sched]="4pm to 1am","3",IF([Shift Sched]="5pm to 2am","4",IF([Shift
Sched]="6pm to 3am","5",IF([Shift Sched]="7pm to 4am","6",IF([Shift Sched]="8pm to 5am","7",IF([Shift Sched]="9pm to 6am","8",IF([Shift Sched]="10pm to 7am","8",IF([Shift
Sched]="11pm to 8am","7",IF([Shift Sched]="12pm to 9am","6",IF([Shift Sched]="1am to 10am","5",IF([Shift Sched]="2am to 11am","4",IF([Shift Sched]="3am to 12pm","3",IF([Shift
Sched]="4am to 1pm","2",IF([Shift Sched]="5am to 2pm","1",IF([Shift Sched]="6am to 3pm","0",IF([Shift Sched]="7am to 4pm","0",IF([Shift Sched]="8am to 5pm","0",IF([Shift
Sched]="9am to 6pm","0",IF([Shift Sched]="10am to 7pm","0",IF([Shift Sched]="11am to 8pm","0",IF([Shift Sched]="12pm to 9pm","0"))))))))))))))))))))))))
it was able to work fine however my issue is when i extract the information to excel and use a pivot table the table is not able to calulate the sum of the value for this field. Can you please help me with this. this is for an Attendance traker for Night
Differential pay for employees. they create a daily log of their shift schedule and if i summarize this in pivot the value in the calculated field for this is not getting the sum.
Thanks,
Norman
Maybe you are looking for
-
I need to get my voice memos onto my pc and then convert for email
Hello, I'm a clinical hypnotherapist. I do a lot of distance work by video chat and phone. I record the sessions on my iphone and send them to my clients through itunes. However, my computer (PC) was out of commision when I recorded them so I can'
-
whenever I open firefox after closing it down, it always opens with the last page I was on. I have the settings to point to a specific homepage and have it set to always open on the homepage, but it doesn't.
-
Over the air sync can be changed on your iPhone
iTunes says that "Your contacts are being synced with your iPhone over the air from MobileMe. Over-the-air sync settings can be changed on your iPhone". How do I change that so I can sync my contacts with Windows Contacts? When I tried to sync with M
-
What HDMI cable do I need for my MacBook (2009) to my SONY HDTV? I thought the HDMI cable from my Apple TV would work, but it doesn't.
-
Printer wont print from pc but will do from phone
I have gone through the set up process and the printer prints from my phone but not the pc. I have an icon for the printer and it is set as the default printer. ( it will print a test page from the pc but not a document.) When I go through the troub