Percentage Column
How do you calculate a percentage at the bottom of a report in Discoverer that cannot be calculated using the Percentages wizard? I have to divide the sum of the rows by the count of distinct case numbers. The Percentages wizard adds a new record with a percentage on every line when I am looking only for ONE percentage at the bottom of the report. I was able to do it in Oracle Report rather easily using a Formula column by writing a function, but have to duplicate the same data in Discoverer. Can it be done?
It's never easy to try to process one summary level process (sum of rows) against another summary level process (count distinct case numbers).
Discoverer does not really support a calculation kind of concept in the SUMMARY level.
The trick is to create a calculation (ie: a new column of data) that somehow reflects what you're trying to accomplish on a detail level and let the SUMMARY part work naturally.
For example, instead of count distinct case numbers, if you could create some kind of other column that puts in a 1 if the number if unique or a 0 if it's the same number from before, then that's the kind of thing that would make what you're trying to accomplish easier. Of course, there's always sub-queries in Disco, but they're ugly and only supported (well writeable) in the Desktop version.
Russ
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 -
Percentage Column in Activity Report
Hello all,
Can anyone tell me what the "Percentage" column in an application's Page Views by User activity report represents? Even better, can anyone direct me to some documentation that explains all the columns in the activity reports?
Thanks,
JohnBump...
-
Installed/not Applicable Percentage column
When i look at the WSUS 3.0 SP2 console (Server 2008) all of our computers show 99% as value for Installed/not Applicable Percentage column.
Why would it not be 100%
Anything i can do.would that imply that i havent approved those 100 updates or something else.
More likely that you've missed a *few* updates, and the remaining 90+% are superseded and irrelevant.
99% Installed/NotApplicable with 100+ Needed updates is highly unusual, but possible. I have a relatively new Win7SP1 system that's 99% Installed/NotApplicable with 95 updates "needed".
But you really need to be looking at *updates* not computers. Find the not-superseded updates where needed > 0.
Lawrence Garvin, M.S., MCSA, MCITP:EA, MCDBA
SolarWinds Head Geek
Microsoft MVP - Software Packaging, Deployment & Servicing (2005-2014)
My MVP Profile: http://mvp.microsoft.com/en-us/mvp/Lawrence%20R%20Garvin-32101
http://www.solarwinds.com/gotmicrosoft
The views expressed on this post are mine and do not necessarily reflect the views of SolarWinds. -
SSRS Dynamic percentage column value
Hi. I have an SSRS report. Within a Tablix how do I create a percentage column that works out the result based on two other values with the table?
See below:
In the % Total Demand column how do I for each row dynamically work out the total / the value * 100
e.g. For the first row whats the % Demand for Portfolio 5.5+5.5+0.3 / 5.5 * 100 (or something along those lines)
Looking at this I guess the % Total Demand row should sit horizontally.
Thanks!So this 10.9 is sum of all months data and whats is this 11.4 are you calculting it from SQL query or its just hardcode value.
If you your calculting 11.4 from SQL then
Sum(Fields!Expresion.Value)/Fields!Expression.Value*100
else
Sum(Fields!Expresion.Value)/11.4*100
Sachin Vashishth MCTS
Hi - 11.4 is total demand (bottom row). I should be getting 95% for first row. 10.9/11.4*100
My table values have changed slightly but I'm getting about 1400% as an answer. -
Creating a Profit Margin Percentage column in Numbers '09
I searched around the forums and could not find anything on this topic.
Basically I am making a spreadsheet for the company I work for and want a column that has our profit margin percentage for a couple of items we sell.
Problem is, I only have basic knowledge of spreadsheet formulas
Can anyone help? Thanks!plan9
Hi welcome to the forum.
The spreadsheets in Pages follow the formating and formulae in Numbers.
Download the Formulaand_FunctionsUserGuide.pdf from under the Help menu in Numbers.
Peter -
Grand total level of the percentage column giving value from the first row of column
Hi Guys,
I have a requirement like to show the percentage value which the calculation of two columns , in the grand total level .
I think it can be achievaable by giving the aggregation rule for that column as Server complex Aggregate .
eg.
Fiscal Year Department subdepartment Total cost Sub Department cost % cost
2011 Edu Books 500 50 10
2011 Edu Note Book 200 100 50
2011 Edu Furniture 300 30 10
2011 Edu 1000 180 18
Grand Total
Ideally it should come like as above ..but the problem with me that ,it showing correct value for all the rows ,but at the grand total level it's taking the value of % cost from the first row . like below..
2011 Edu 1000 180 10
Grand Total
I have calculated the % cost column in the answer itself as (Sub Department cost /Total Cost )
where the
Aggregation rule for the columns given are
Total Cost - Sum ,Sub Dep Cost - Sum, % Cost - Server Complex Aggregate
So plz suggest me any Idea to achieve this ..Thanks in advance.Give the agg. as avg for % field.
Best of Luck,
Kashi -
Calculate percentage column based on 2 other columns
I have 2 fact colums. Those two columns are column_a=count distinct of all records and
column_b = count distinct of subset of records based on specific condition.
I am trying to get column_3 as = (column_b/column_a )* 100
These 2 columns comes from same physical tables but two different logical tables (I have different where condition for each)
Result is correct (100) when column_a = column_b however I am getting 0 when they are different
col_a col_b Percent
8 7 0 why not 87.5
1 1 100
27 23 0 why not 85.2Hello,
Check your datatypes in your phyiscal layer, I've found if they are INT then %'s tend to get rounded to whole numbers.
Try setting them to float and report back if it works (or not !)
Cheers
Alastair -
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. -
Hi Expert,
In alv report percentage calculation.Here we have a problem, In total column it will adding the fields
in percentage column, but i want to calculate the percentage in run time.
Example:
A B %*100
10 20 20%
20 40 20%
TOTAL: 30 60 40 -
>it is a total but not percentage
Thank you,
Dinesh.Hi,
1. In the ALV output tab add extra fields that are the same as those on which you are sorting and contain the same values.
2. In the Field Catalog you must add these fields but they must be hidden i.e. no_out = 'X'.
3. These fields must be included in the Sort Catalog with subtot = 'X'.
4. In order to handle the final total line in your layout for the ALV you must set field no_totalline'X' because you are going to be taking this over as well.
5. Create a form called SUBTOTAL_TEXT or similar structured as follows:
form subtotal_text using ep_subtot_line like output_tabes_subtottxt type slis_subtot_text.
In this form you will do the percentage calculation again at total level. The structure ep_subtot_line
will contain a field for each of the fields in your output_tab i.e. ep_subtot_line-sales,
ep_subtot_line-cost and ep_subtot_line-margin. Put the margin calculation into ep_subtot_line-margin.
6. In the eventtab that you pass to the ALV_GRID function module you must create a record with the
field name = 'SUBTOTAL_TEXT' and the field form = the name of the form you created in step 5 above. -
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
Elmarhave 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 -
Sorting by summary column, query based on previous query.
Using 10g reports.
I've got a report with one query currently thats broken down itno a couple groups. I'm trying to change the order they are displyed by based on a summary count of each group. I'm also trying to do another query for the report based on the results of the first one and display that with the information from the first.
The report currently:
Chain name
ABC Stores
Month
JUN
Store Name Store ID bad sales
Store1 storeid1 5
Store2 storeid2 3
Store3 storeid3 1
month total: 9
JUL
Store1 storeid1 6
Store2 storeid2 5
Store3 storeid3 2
month total:13
Chain total 22
XYZ Stores
JUN
Store1 storedid1 20
Store2 storedid2 15
month total 35
JUL
Store1 storedid1 11
Store2 storedid2 7
month total 18
Chain total 53What I want to do is sort the order the store chains appear in based on the CHain total of bad sales. This is a summary done by the report and not in the sql query at the moment. I would also like to create a second query where it takes the store id and month from the first query and uses it to look up the total sales each store did so I can determine what percentage of the total sales the bad sales were. I would like to add this column plus a calculated percentage column to the right of the current columns but still have them grouped as they are. Is this possible to do or will i need to change my original query?
Not very familiar with reports and I haven't been able to find anything to indicate how this should/could be done yet. Any help is appreciated.hi,
there is no break order property for summary columns .
so use the group by and take the sorting order for whole group
example:
SELECT DEPTNO, JOB, ENAME, SAL FROM EMP
ORDER BY SAL
You then create two groups, G_DEPT and G_JOB. G_DEPT contains
the DEPTNO column and G_JOB contains the JOB column. If you
specify a Break Order of Descending for the DEPTNO column and
Ascending for the JOB column, your output would appear similar
to that below (assuming you use a Tabular style):
Deptno Job Ename Sal
30 CLERK JAMES 950.00
MANAGER BLAKE 2850.00
SALESMAN WARD 1250.00
MARTIN 1250.00
TURNER 1500.00
ALLEN 1600.00
20 ANALYST SCOTT 3000.00
FORD 3000.00
CLERK SMITH 800.00
ADAMS 1100.00
MANAGER JONES 2975.00
10 CLERK MILLER 1300.00
MANAGER CLARK 2450.00
PRESIDENT KING 5000.00 -
Percentage Total/Subtotal in ALV Grid
Dear All,
I have to display an ALV report with percentage feilds. Everything is fine but the problem arises when the standard ALV sum functionality is used. It simply adds up all the percentage columns. Making do_sum = 'C' wont help either as it would simple give an average of all the percentage. My requirement is to show them through calculation. I have searched the web and saw some solutions with SUBTOTAL_TEXT nad some with OOP programming but i am not able to get this. Can anybody please help.
<REMOVED BY MODERATOR>
Thanks
MV
Edited by: Alvaro Tejada Galindo on Apr 21, 2008 4:24 PMhi manish,
try this program.
ALV Grid List with sub-totals
REPORT z_demo_alv_sort.
* This program lists orders (VBAK) with sort and sub-total for *
* 'sold-to-party' (KUNNR) and 'Sales organization' (VKORG) *
TABLES : vbak.
TYPE-POOLS: slis. " ALV Global types
SELECT-OPTIONS :
s_vkorg FOR vbak-vkorg, " Sales organization
s_kunnr FOR vbak-kunnr, " Sold-to party
s_vbeln FOR vbak-vbeln. " Sales document
SELECTION-SCREEN :
SKIP, BEGIN OF LINE,COMMENT 5(27) v_1 FOR FIELD p_max.
PARAMETERS p_max(2) TYPE n DEFAULT '20' OBLIGATORY.
SELECTION-SCREEN END OF LINE.
DATA:
BEGIN OF gt_vbak OCCURS 0,
vkorg LIKE vbak-vkorg, " Sales organization
kunnr LIKE vbak-kunnr, " Sold-to party
vbeln LIKE vbak-vbeln, " Sales document
netwr LIKE vbak-netwr, " Net Value of the Sales Order
waerk LIKE vbak-waerk, " Document currency
END OF gt_vbak.
INITIALIZATION.
v_1 = 'Maximum of records to read'.
START-OF-SELECTION.
PERFORM f_read_data.
PERFORM f_display_data.
* Form f_read_data
FORM f_read_data.
SELECT * INTO CORRESPONDING FIELDS OF TABLE gt_vbak
FROM vbak
UP TO p_max ROWS
WHERE kunnr IN s_kunnr
AND vbeln IN s_vbeln
AND vkorg IN s_vkorg.
ENDFORM. " F_READ_DATA
* Form f_display_data
FORM f_display_data.
DEFINE m_fieldcat.
add 1 to ls_fieldcat-col_pos.
ls_fieldcat-fieldname = &1.
ls_fieldcat-ref_tabname = 'VBAK'.
ls_fieldcat-do_sum = &2.
ls_fieldcat-cfieldname = &3.
append ls_fieldcat to lt_fieldcat.
END-OF-DEFINITION.
DEFINE m_sort.
add 1 to ls_sort-spos.
ls_sort-fieldname = &1.
ls_sort-up = 'X'.
ls_sort-subtot = &2.
append ls_sort to lt_sort.
END-OF-DEFINITION.
DATA:
ls_fieldcat TYPE slis_fieldcat_alv,
lt_fieldcat TYPE slis_t_fieldcat_alv,
lt_sort TYPE slis_t_sortinfo_alv,
ls_sort TYPE slis_sortinfo_alv,
ls_layout TYPE slis_layout_alv.
m_fieldcat 'VKORG' '' ''.
m_fieldcat 'KUNNR' '' ''.
m_fieldcat 'VBELN' '' ''.
m_fieldcat 'NETWR' 'X' 'WAERK'.
m_fieldcat 'WAERK' '' ''.
m_sort 'VKORG' 'X'. " Sort by vkorg and subtotal
m_sort 'KUNNR' 'X'. " Sort by kunnr and subtotal
m_sort 'VBELN' ''. " Sort by vbeln
ls_layout-cell_merge = 'X'.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
is_layout = ls_layout
it_fieldcat = lt_fieldcat
it_sort = lt_sort
TABLES
t_outtab = gt_vbak.
ENDFORM. " F_DISPLAY_DATA
***************** END OF PROGRAM Z_DEMO_ALV_SORT **********************
thanks
karthik
<REMOVED BY MODERATOR>
Edited by: Alvaro Tejada Galindo on Apr 21, 2008 4:50 PM -
How to hide % measure column Grand Total value in Pivot View in obiee 11g?
Hi ,
I am facing a issue in obiee 11g .I am using a Pivot table to display the grand total of 3 metric columns eg: A , B, C out of which B is percentage so I need to remove the grand total value of the percentage column. We have to stick to Pivot View only. Anyone can sugest me on this?
Thanks ,
ShrutiMove B to rows section or cast to char in Criteria tab by keeping the B in Measures section only.
cast(B as char) -
Column calculations getting wrong will exporting report to excel
Hi Experts,
we have a report on obiee 11.1.1.5.0 with following details
we have report with columns destination region,service , origin country and revenue
and report is created as follows
Destination Region
Asia NorthAmerica Total(using selection steps included both country)
June July June July June July
Origin
Country
India 25% 75% 50% 50% 37.5% 62.5%
China 96% 4% 96% 4% 96% 4%
Brazil 78% 22% 72% 28% 75% 25%
the logic i have used here is :- i have revenue and in pivot have applied SHOW DATA AS PERCENT OF LAYER(DESTINATION GEOGRAPHY)
till here everything is fine but when i export it to excel then i get this all values divided by 100 for eg:-
Destination Region
Asia NorthAmerica Total(using selection steps included both country)
June July June July June July
Origin
Country
India 0.25% 0.75% 0.50% 0.50% 0.375% 0.625%
China 0.96% 0.4% 0.96% 0.4% 0.96% 0.4%
Brazil 0.78% 0.22% 0.72% 0.28% 0.75% 0.25%
any suggestions how to get rid of this problemAnkit,
Did you check this?
Calculated Percentage Columns in Pivot Table loose formating in Excel
Regards,
Dpka
Maybe you are looking for
-
Settings function does not work in my lumia 520
I have lumia 520. when i update Lumia Black in my Setting some of the settings apps does not work. when i click this its return back the settings. i can't update it . how can i update or reinstall it. Or How can i re-update window for work proper
-
Hi, I am facing a problem in connecting to an Oracle server. We have two servers, production and test. From the same client I am able connect to test server and not to prod. I am able tnsping both servers but the prod server gives a time of 1800ms as
-
Randomly occurring Disk Insertion error message
Running a mac mini with 10.5.4 I seem to get a randomly occurring error message "Disk Insertion - The disk you inserted was not readable by this computer" with choices to "Initialize" or "Eject". The weirdness is that the message seems to pop up at r
-
Is it possible to store all of your photos in the iCloud? If not then is it possible to store them to an external hard drive? I currently have waaaaaaaay too many on my laptop and I would still like access to them.
-
Material flow system in SAP WM
Hi, Do have functionality of configuring the material flow system in normal SAP warehouse. I know its possible in extended warehouse management, however is it possible in normal centralized or decentralized warehouse system. Regards