Percentage calculation in pivot table per row
Hello all,
I do calculate two fields in a pivot table. First calculated field is the # of activities per user (standard SoD reporting field). Second calculated field is the # of activities per user with a certain classification (customized pick list field that is converted in a from a text value to a integer value ==> CASE WHEN Activity.Type = 'Call' THEN 1 ELSE 0 END).
In the pivot table I do show both vlaues as a sum. I would like to calculate the percentage per row per user.
Example:
User - # activities - # calls - percentage
User XY - 80 - 40 - 50%
Thanxs for your help
Elmar
have you # Call column look like
sum(CASE WHEN Activity.Type = 'Call' THEN 1 ELSE 0 END) -- column2
create the percentage column with # activities / column2
under the column property of the percentage column --> Data Format -->Treat Numbers As --> percentage.
leave the Aggregation Role as default on all columns.
Hopefully, I didn't miss anything.
Shilei
Similar Messages
-
Calculated Percentage Columns in Pivot Table loose formating in Excel
I have a simple report built using pivot table ( OBIEE 11.1.1.5.0)
1 Metric and 1 dimension using pivot table. and I duplicated the metric column and change it to % column.(Show data as % of column). SO far so good. Below is the snapshot
http://tinypic.com/r/2s14xa9/7
Now i download the report in excel and all the % values are messed up . Below is how it looks
http://tinypic.com/r/bede90/7
I tried messing with data formats etc..nothing works.. I cannot add a custom column format to the metric column since it will impact the derived % column.
Is this a bug ?Any pointers ..
ThanksHi,
Follow up this SR:
SR 3-5060435331: Calculated Percentage Columns in Pivot Table loose formating in Excel
Workaround: (not sure may be give a try)
also give a try like below one then try to download it may work.
In that % column -->add the below statement in the Custom CSS section of the column properties:
mso-number-format:"\@"
Refer snapshot here:
http://i53.tinypic.com/a09kqv.jpg
This will treat the data in the column as text while downloading to excel, hence retaining any leading or trailing spaces.
Thanks
Deva -
Pivot table alternating row colors
Hello,
In ADF 11g, is it possible to format a pivot table so row colors will alternate? 1st row gray, second row white, 3rd row gray and so on..
Can i determine which row is a DataCellContext object in ?
Thanks.Any ideas ? I still could not find a way to give alternate row colors to a pivot table.
-
Calculating percentage change in pivot table
Hi,
In my requirement i want calculate percentage change of revenue in month wise(i.e.,by comparing current month previous month).that result should display in pivot table.but iam not getting values.can any one know.plz give sol ASAPRead these:
http://catb.org/~esr/faqs/smart-questions.html#homework
http://catb.org/~esr/faqs/smart-questions.html#beprecise
Try again, and hopefully, there will something someone can respond to. But don't ask to "give the solution." That's your job. We'll help, if we can and if we have the time. Good luck. -
Calculating growth percentage in a pivot table
I have a pivot table with the following data generated by a pivot table of customer and sales data. The pivot table is showing the 2010 and 2009 data.
Sales
Customer 2010 2009
ABC 1000 800
DEF 2000 1000
How would I get the calculation to show the % growth from 2009 to 2010 shown below ??
Sales
Customer 2010 2009
ABC 1000 800 25%
DEF 2000 1000 100%
Thanks for any helpRe: how to Make a report from two cubes
This link will help you. -
"Top n" selection and percentages in a pivot table
Hi all,
I have a problem with calculating/display of percentage figures in a pivot table that I need some help on.
For a given month, I'm reporting the web browser logins, by browser type. So for example:
2010/03, IE, 50
2010/03, Firefox, 30
2010/03, Chrome, 10
2010/03, Others, 10
Totalling 100 ( and their produce the same value as a % ). However, if I apply a filter on the browser that does a select of the Top 2 for the month, the IE & Firefox total 80 and displays the % values as:
2010/03, IE, 62.5%
2010/03, Firefox, 37.5%.
So I can see that really what I need to do is to filter the columns being displayed as the "Top 2" not selecting the data onbeing in the top 2.
Can anyone advise on how to do this/is it possible.
Thanks in advance.Hi you can try like,
1. create a duplicate column for browserlogins and set its level as month and name it as totallogin.
2. create a calculated measure for the original browserlogins column. Choose the totallogin to compare against that column.
3. choose percent in the new calculation tab.
4. Bring this column iinto the presentation layer.
5. use this column in the report.
Check what it is showing. I dint try this out. Just a guess. If its helpful award some points.
Thanks,
Karthick -
Hi there,
Is it possible to subtract the values of two rows in a pivot table and show as the third row if we can assure that there will always be only two rows in the pivot table?
Pivot table view:
h2. Year M01 M02 M03 Q01 Total_
*2009* 493 437 529 *1459*
*2010* 599 579 643 *1,821*
Problem: I am trying to generate another row in the bottom (In the place of Grand Total) and show the result of M01-M02.
Underlying data columns:
Year, Month, Quarter, #Orders
Underlying Filter: (this assures 2 years)
Year IN "Previous Year", "Current Year"
Version: OBIEE 10
thanks!
Edited by: obitime on Dec 28, 2011 9:45 PMInstead of using a pivot table that way, create seperate measures using the filter function:
current year amt = filter(measure using year=[current year])
previous year amt = filter(measure using year=[current year] - 1)
change amt = filter(measure using year=[current year]) - filter(measure using year=[current year] - 1)
You may want to define [current year] using a prompt which sets a variable.
A second option is to write a formula like case when year = [current year] then 'Current Year' else 'Previous Year' end, and use that in your pivot table in place of Year. That way you can create your calculated item formula on something more dynamic.
Regards,
Robert -
Above Average Conditional Formatting in Pivot Table off Row Total
I have a pivot table where the months are column labels and the actual issues are Row labels. This is inverted from a normal pivot table where the months are usually the row labels.
Basically I want the table to look at the value in the Values cells to look at the row Average instead of the column Average. Is there a way to do this?
I've highlighted all my Value cells (showing the sum of the issue for a specific month) and then applied the Above Average conditional formatting selecting 'All cells showing "Average of #of Tickets" values for "Issue" and "Month".
This works where the cells' value is greater than the columns average, but I want it to look at the row average instead.
Is this possible? I thought it be simple, but I can't figure it out. The table will grow every month width wise and possibly adding new issues each month.Hi Vetsrini, thanks for the reply. I'm using the crosstab feature of BI Publisher template builder in MS Word to create the pivot table. I have a field called ACTIVITY as the row, and I want to bold the font and set the color as red if the ACTIVITY equals to certain text (such as if ACTIVITY = 'A' then bold & red). Can you please tell me how that can be achieved? I tried using the conditional formatting feature of the template builder, but it only works if I use it in a table, and not in pivot table.
Thanks a lot. -
Pivot Table - adding row header detail
I've created a pivot table output using template builder for word plugin (10.1.3.4.2)
xml
<XXNCC_APEDI_3PINT>
<P_FROM_DATE>2012-01-03T00:00:00.000+00:00</P_FROM_DATE><P_TO_DATE>2012-03-31T00:00:00.000+01:00</P_TO_DATE>
<LIST_G_DELIVERY>
<G_DELIVERY>
<ESTABLISHMENT>Name1</ESTABLISHMENT>
<INVOICE_NUMBER>028993A</INVOICE_NUMBER>
<INVOICE_DATE>07-01-2012</INVOICE_DATE>
<INVOICE_SORT>20120107</INVOICE_SORT>
<INVOICE_PERIOD>Jan-2012</INVOICE_PERIOD>
<AMOUNT>60.48</AMOUNT>
<PRODUCT>D16</PRODUCT>
<PRODUCT_DESC>PAST MILK SEMI CTN</PRODUCT_DESC>
<ORDER_QTY>288</ORDER_QTY>
<UNIT_COST>.21</UNIT_COST>
<LINE_COST>60.48</LINE_COST>
<LINE_UNIT>1</LINE_UNIT>
<SERVING>200ML</SERVING>
</G_DELIVERY>
<G_DELIVERY>
<ESTABLISHMENT>Name1</ESTABLISHMENT>
<INVOICE_NUMBER>028993A</INVOICE_NUMBER>
<INVOICE_DATE>07-01-2012</INVOICE_DATE>
<INVOICE_SORT>20120107</INVOICE_SORT>
<INVOICE_PERIOD>Jan-2012</INVOICE_PERIOD>
<AMOUNT>61.74</AMOUNT>
<PRODUCT>D17</PRODUCT>
<PRODUCT_DESC>PAST MILK WHOLE CTN</PRODUCT_DESC>
<ORDER_QTY>294</ORDER_QTY>
<UNIT_COST>.21</UNIT_COST>
<LINE_COST>61.74</LINE_COST>
<LINE_UNIT>1</LINE_UNIT>
<SERVING>200ML</SERVING>
</G_DELIVERY>
_______________________Date1_________Date2_______Date3___
Establishment_______________________________________
___________Product______99__99.99___99__99.99____99__99.99__
<crosstab:c547;"//G_DELIVERY";"ESTABLISHMENT{,o=a,t=t},PRODUCT{,o=a,t=t}";"INVOICE_DATE{INVOICE_SORT,o=a,t=n}";"ORDER_QTY,LINE_COST";"sum"?>
All I want to do is add a new field after Product - Description.
I've tried a number of combinations but nothing displays - and now I'm going in circles.
Something to do with being within <?for-each:.//R2?> ?
I can change the xml to do what I want but that seems un-necessary!
Thanks in advance
Edited by: GaryWW on 25-May-2012 03:29I've created a pivot table output using template builder for word plugin (10.1.3.4.2)
xml
<XXNCC_APEDI_3PINT>
<P_FROM_DATE>2012-01-03T00:00:00.000+00:00</P_FROM_DATE><P_TO_DATE>2012-03-31T00:00:00.000+01:00</P_TO_DATE>
<LIST_G_DELIVERY>
<G_DELIVERY>
<ESTABLISHMENT>Name1</ESTABLISHMENT>
<INVOICE_NUMBER>028993A</INVOICE_NUMBER>
<INVOICE_DATE>07-01-2012</INVOICE_DATE>
<INVOICE_SORT>20120107</INVOICE_SORT>
<INVOICE_PERIOD>Jan-2012</INVOICE_PERIOD>
<AMOUNT>60.48</AMOUNT>
<PRODUCT>D16</PRODUCT>
<PRODUCT_DESC>PAST MILK SEMI CTN</PRODUCT_DESC>
<ORDER_QTY>288</ORDER_QTY>
<UNIT_COST>.21</UNIT_COST>
<LINE_COST>60.48</LINE_COST>
<LINE_UNIT>1</LINE_UNIT>
<SERVING>200ML</SERVING>
</G_DELIVERY>
<G_DELIVERY>
<ESTABLISHMENT>Name1</ESTABLISHMENT>
<INVOICE_NUMBER>028993A</INVOICE_NUMBER>
<INVOICE_DATE>07-01-2012</INVOICE_DATE>
<INVOICE_SORT>20120107</INVOICE_SORT>
<INVOICE_PERIOD>Jan-2012</INVOICE_PERIOD>
<AMOUNT>61.74</AMOUNT>
<PRODUCT>D17</PRODUCT>
<PRODUCT_DESC>PAST MILK WHOLE CTN</PRODUCT_DESC>
<ORDER_QTY>294</ORDER_QTY>
<UNIT_COST>.21</UNIT_COST>
<LINE_COST>61.74</LINE_COST>
<LINE_UNIT>1</LINE_UNIT>
<SERVING>200ML</SERVING>
</G_DELIVERY>
_______________________Date1_________Date2_______Date3___
Establishment_______________________________________
___________Product______99__99.99___99__99.99____99__99.99__
<crosstab:c547;"//G_DELIVERY";"ESTABLISHMENT{,o=a,t=t},PRODUCT{,o=a,t=t}";"INVOICE_DATE{INVOICE_SORT,o=a,t=n}";"ORDER_QTY,LINE_COST";"sum"?>
All I want to do is add a new field after Product - Description.
I've tried a number of combinations but nothing displays - and now I'm going in circles.
Something to do with being within <?for-each:.//R2?> ?
I can change the xml to do what I want but that seems un-necessary!
Thanks in advance
Edited by: GaryWW on 25-May-2012 03:29 -
Adding Cumulative Percentages to Pivot table
Hi all,
I am trying to add a Cumulative Percentage to a pivot table in Hyperion IR 11:
Month joined July August September October
Sales 5 3 2 0
Accounts 2 1 0 1
Marketing 0 8 5 2The pivot facts are the number of employees joining the department and the row label is the department.
I am trying to add a running cumulative percentage in the pivot table for each month. Example, the cumulative percent in July will be 71.4% [5/(5+2)] under Sales department and 100% under Accounts department (71.4 + 28.6 of Accounts). For month of August, the cumulative percent will reset the calculation to be that it will be 25% [3/(3+1+8)] for Sales in August. The expected pivot table is something like that:
Month joined July August September October
Sales 71.4 25 28.5 0
Accounts 100 33.3 28.5 33
Marketing 100 100 100 100The underlying table is as follows:
Month joined Department No of employee
July Sales 5
July Accounts 2
July Marketing 0
August Sales 3
August Accounts 1
August Marketing 8
September Sales 2
September Accounts 0
September Marketing 5
October Sales 0
October Accounts 1
October Marketing 2I have tried using the Add Cume function but am not able to give the correct figure.
Has anybody had any suggestions on how to produce the cumulative percentage in the pivot?
Thanks in advance.Hover text is possible with static text but your requirement would not be possible to display value unless its hardcoded
-
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 -
How to move excluded items into Measures in OBIEE 11g Pivot Table
Hi All,
Need your help. Previously I have about 25 facts in my pivot table as rows. Now I need to add about 10 more. Adding new criteria only put the items into Excluded section. How can I move all these new items at once to the end of the existing facts? What I can do now is moving them one by one, and in the middle of existing facts, then move it again, because I can point my cursor to the end of them directly.
Thanks a lot,
Gajah.I've tried to drag the fact heading, but I can't point my cursor to the end of existing list of facts (unfortunately they are all in the same fact group name). Do you have any suggestion on how to put the new facts at the end of the list?
Thanks. -
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 -
Error in displaying pivot table
Hi everyone,
I have't seen any thread that gives me an answer to my problem.
I have OBI SE 10.1.3.4 on Windows Server 2003.
In physical layer i've table REQUEST:
Pack varchar,
Seg varchar,
State varchar,
SUM_ACT double,
SUM_PRE double.
I mapped REQUEST into two tables in Business Model and Mapping:
DIM_REQUEST:
Pack varchar PK,
Seg varchar PK,
State varchar PK
FAC_REQUEST:
Pack varchar FK,
Seg varchar FK,
State varchar FK,
SUM ACT double, -- Sum()
SUM PRE double, -- Sum()
PERC double
PERC is a new logical column: +((SUM ACT)/(SUM PRE))*100+
Then I mapped FAC_REQUEST into the Presentation layer.
In Answers I create pivot table with:
Rows:
Pack
Seg
Measure Labels
Columns:
State
Measures:
SUM ACT double
SUM PRE double
PERC
Everything is fine, but when I try to add to the pivot table SUM: Columns->Sum (After or Before), I got the following error:
Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
+State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] Błąd ogólny. [nQSError: 46036] Asercja+
wewnętrzna: Warunek rightAtomicTableSet.insert(*tableIter).second, plik .\Src\SQONPathJoinComposer.cpp, linia 671.
+(HY000)+
SQL Issued: SELECT Zlecenia.Pack saw_0, Zlecenia.Seg saw_1, Zlecenia.State saw_2, Zlecenia."SUM ACT" saw_3,
Zlecenia."SUM PRE" saw_4, Zlecenia.PERC saw_5, AGGREGATE(saw_5 BY ), AGGREGATE(saw_5 BY saw_2), AGGREGATE(saw_5 BY saw_0, saw_1) FROM TEST ORDER BY saw_0, saw_1, saw_2
Any idea?https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=noclassdeffounderrorIWDAbstractTableColumn&adv=false&sortby=cm_rnd_rankvalue
java.lang.NoClassDefFoundError
Error while binding node attribute to a UI element (table)
Problem with NWDS 7
class def error? -
OBIEE: Pivot table chart is not proper when GOURL is on Measure Column
Hi All,
I a facing an issue with Pivot table chart drill.
Pivot Table columns:
Row description column in row section.
Column description (Periods) in column section and
A Number format amount column in Measure Section (In BMM it is not defined as a measure column).
GOURL written on the Measure column to enable the drill in Pivot table data.
When I click on chart the pivoted reasults Graph: Vertical Bar, Type: Default, Style: Rectangle.
It shows the row description in X axis but the amount is not shown properly (it just shows 1,2,3..numbers on Y axis instead of the amounts which are in lakhs) on Y axis and alos there is not vertical bars showing up.
Any help in this regard is very helpfull.
Regards,
Sagar Vishwanathwar.hi Karthikeyan,
use combined with similar request(union report)
In first criteria show all the columns
Second criteria 'Grand total' , year ,month, avg _formula that u have
Thanks,
Saichand.v
Maybe you are looking for
-
BAPI_PO_CREATE1 of services
Hi, While using this BAPI with the service option, i get the 3 following errors. -No instance of object type PuchaseOrder has been created. -Purchase order still contains faulty items. -Please enter either material or short text. The first two, i hav
-
I still ahve the old Iphoto. How can I get the new one. I want icloud to work with Iphoto
-
How to find program in menu? (Urgent!!!)
Dear all, As we know, the SAP menu gives us easily access to corresponding transactions or applications. Each node in SAP menu links to a transaction. Now, I would like to know how does SAP store the relation for program in the menu. Is there a table
-
I had to reset my phone and now when I text my contacts are not showing up
I had to reset my phone and now when I send and receive text messages it is not showing the contact name only the phone number. Help.
-
Gave audiobook. Gift not received. How to fix that?
I gave a friend an audiobook ($38 !!) via email but he never got it. I think the email address works as I sent him emails but just not sure if this has vanished into the ether. Is there any way to retrieve the gift or find out what happened? Thanks v