How to show pivot total in value only, and column in percentage only
Hi All,
I want to show pivot table by column percentage only (no value), but total in value only without showing percentage.
How to do that?
Thank you,
Ling
The below are 2 different approaches:
1) is something like
Bike ======= $253M====20% =======27% =======53%
Pull columns like
Product, region, sales, sales --->Region is for values(East,West..), Sales for % and other sales is for Total as below
for first sales exp: ((sales*1.0)/sum(sales by Product))*100.0 -->Column format and set to Percentage
for 2nd sales exp: sum(sales by Product)
In Pivot table
Product and sales(2nd) columns at Row
Region at columns
Sales% at Measures
2) You can go with Bike ====20% =======27% =======53%======= $253M
Using cast like exp: cast(sum(sales by Product) as char)
If you are not okay with any of these just wait for our Guru David_T. You may get best solution..
Edited by: Srini VEERAVALLI on Jan 28, 2013 11:50 PM
Similar Messages
-
How to show $ sign alongwith the value in message styled text field.
Hi,
How to show $ sign alongwith the value in message styled text field.
The value is coming from the table column in VO.
I am working on OAF R12.Hi,
Resolved.
I used the below code in CO for the solution.
Formatter currencyFormatter = new OADecimalValidater("$#,##0.00;($#,##0.00)",
"$#,##0.00;($#,##0.00)");
OAMessageStyledTextBean msrpField = (OAMessageStyledTextBean)webBean.findChildRecursive("MSRP11");
msrpField.setAttributeValue(ON_SUBMIT_VALIDATER_ATTR, currencyFormatter); -
How to show all view tab (Main Report and all Sub Report) in Visual FoxPro 9
I use ActiveX from Crystal Report Developer XI for viewer in Visual FoxPro 9 and I already know how to show Main Report by using command:
oRptRun=createobject("CrystalRuntime.Application")
oRptView=thisform.oleRptViewer
oRptOpen=oRptRun.OpenReport('MyReport.rpt')
oRptView.ReportSource=oRptOpen
oRptView.ViewReport
Inside the MyReport.rpt there is two subreport name :
1. MySubReport1
2. MySubReport2
My Question is :
How to show all view tab (Main Report and all Sub Report) at the 1st time we call ViewReport?
I try to using command :
oRptRun=createobject("CrystalRuntime.Application")
oRptView=thisform.oleRptViewer
oRptOpen=oRptRun.OpenReport('MyReport.rpt')
oRptSub=oRptOpen.OpenSubreport("MySubReport1")
oRptSub=oRptOpen.OpenSubreport("MySubReport2")
oRptView.ReportSource=oRptOpen
oRptView.ViewReport
but only show Main Report (view tab name : Preview)?
Did I miss any command before I call oRptView.ViewReport?Your right, there is only one tab to view the report.
To open the subreports you will need to click on them in the main report. I don't know of a way to open them programmatically like you are doing here
http://diamond.businessobjects.com/robhorne</a> -
How can I reference the last value in a column?
How can I reference the last value in a column? For example, today I want the value of A1 to appear in another cell. Tomorrow, I will add a row and want to reference A2, next day A3, and so forth.
Now I got it:
=OFFSET(A1,COUNT(A)-1,0) -
I am trying to figure out how to get the total allocated CPUs, memory and storage in a particualr reservation through vRealize Automation Java SDK.
I am trying to figure out how to get the total allocated CPUs, memory and storage in a particualr reservation through vRealize Automation Java SDK.
-
How do I read text from specific rows and columns in a tree structure?
How do I read text from specific rows and columns in a tree structure? In a table you can specify the cell to read from but I have not been able to figure out how to do this with a tree structure.
You need to set two properties to activate the correct cell and then you can read it's string property.
The positioning properties are the "ActiveItemTag" and
"ActiveColNum" properties. With them you select the tree item by it's tag and the active column. The string can then be read from the "Cell String" property.
MTO -
How to show Grand total values in Chart view....
Hi,
I have a crazy req. like i need to show grand totals values also on the chart view along with the normal metrics.
column Metric1 Metric2
AAA 10 20
BBB 30 15
CCC 20 15
TOTAL 60 50
so here i need the values 60 and 50 also also to be displayed in a line graph
cheersPretty simple to achieve :)
In your Pivot view, under Rows section where you have column dimensions like AAA,BBB etc...create a new calculated item say Grand Total with function as 'formula' and formula as sum(*). This will give you a new row with totals. Now Chart Pivoted Results and you are done.
Hope answered -
How to show grand total at bottom in Pivot view?
Hi All,
How to show the report Grand total at bottom in pivot table?Plz help.
Regards,
VaishnaviHi ,
Thanks for the reply but My report structure is like below:
AAA,BBB,CCC,DDD,EEE,FFF,GGG,HHH & III my report columns.I have arranged those columns in measure & i have to calculate the variance against each column like below structure.As per the report here I have lto calculate variance for 4 columns like AAA,BBB,CCC,DDD & after that total of each..then again variance for EEE,FFF & their total.After that i have to show grand total of all from AAAA to FFF likewise for rest of fields.
Measures variance
AAA(db column) 1
BBB(db column) 2
CCC(db column) 3
DDD(db column
Total 6
EEE(db column) 4
FFF(db column) 5
Total 9
Grand Total(AAA TO FFF) 15
GGG(db column) 6
Total 6
Grand Total(AAA TO GGG) 21
III(db column)
Grand Total(AAA TO III)
How to do that?
Regards,
Sonal
Edited by: Sonal on Jan 11, 2012 9:06 AM
Edited by: Sonal on Jan 11, 2012 9:15 AM
Edited by: Sonal on Jan 11, 2012 9:17 AM -
How to show/hide total based on selected column in column selector
Hello,
Is there a way to show/hide the total based on what column is selected in the column selector? Or alternatively to hide the total based on the column selected? I'm using OBIEE 10g.
Basically, I have a pivot table with a handful of row variables and one measure. Then I allow the user to select the column variable. The default is to have nothing, which I have achieved using the hidden/dummy column trick (Re: How to add new columns by using Multiselect However, if my pivot table is set to have a total, I now get 2 columns that are the same. When the user selects any other choice (e.g. gender), I would want to see Male, Female and the total. Something like this:
Default:
Count
East 10
West 20
Total 30
Gender:
Male Female Total
Count Count Count
East 6 4 10
West 14 6 20
Total 20 10 30
Any thoughts?
Thanks!I recommend using view selector instead of column selector
-
How to show the total in group footer in group header?
Hello,
I am having difficulties while showing the total of a group footer in the group header. The total in the group footer is correct, but when i am placing the formula in the header it is giving me 0.
I am having 2 formulas to get the total which i placed in the footer:
1.
whileprintingrecords;
numbervar sumpctx := sumpctx + {@Sum OB};
2.
whileprintingrecords;
global numbervar sumpctx;
numbervar DispSales;
DispSales := sumpctx;
sumpctx := 0;
DispSales;
now, I want to add the 2 formula in the header, but it is giving me 0 value, But in the group footer it is showing the correct value.
I tried to do:
Sum ({@Sum OB}) and it is giving that the field can not be summarized.
The group Name is @Entity which is grouped by.
@Entity :
if {Customer.NAME}="NONE" THEN
" OB"
ELSE {Customer.NAME}
Thanks in advance for yopur help.
RegardsHi,
What i was trying to say there is a hierarchy in report design and records are processed in that way.
Report header/footer - only once
Page header/footer -once in a page
detail -n no of times ,n-no of rows of data
First report header will be processed,then page header n detail,after that report and page footer.
If u insert a group,then the order will be-
report header,page header,group header,detail,group footer,detail,report and page footer.
When u r in group header,all the records are not processed,that results the sum as zero.
But when u create a formula,it calculates the sum first and then u put it there.
I hope this time it will be helpful for u.
Regards,
Misra P. -
How to set 0 for "Nan" Value in the Column
Hi All,
I have 3 imp columns with name Build %,Deploy%,Validation % and I would like to set the value as "0" or "1" using formula and below is the formula . But I am getting the values as "Nan" due to that it's reflecting the
Pivot Table & Report which show in below 2nd image.
And I had written formula as "=SWITCH(EDSCIMonthlyReport[Build %] , "Nan", 0)" to copy all the values of the Build % Field to another calculated Column and set the value "0" if found "Nan" ,But I am getting
error as"Function 'SWITCH' attempted to compare values of incompatible types. Ensure that both values are Numeric, String, or Boolean(True/False). Consider using the VALUE or FORMAT function to convert one of the values".Can any one help me how can
I solve this issue
Thanks,
SidHello Sid,
Again TFS? The data type of the column is "text" and now you want to convert it to a numeric to use it as a measure, right?
- First you have to change "NaN" to "0" (<= 0 as type "Text"!, see your error msg); you can do it with an IF expression
- Then you have to remove the % sign; it's a text as well. For this you can use the SUBSTITUE function
- Then you can convert it to a numeric using the VALUE function
As one complete expression it will look like this:
= VALUE(SUBSTITUTE(If(Tabelle3[Build] = "NaN"; "0"; Tabelle3[Build]); "%"; ""))
As you can see in below screenshot PowerPivot automatically detects the data type as "Decimal"; now you can use it as a measure value.
Olaf Helper
[ Blog] [ Xing] [ MVP] -
SSRS 2008: how to show an empty chart with legend and x and y axis when no data available
Hi,
I am using SSRS 2008, I generated one chart in report designer with the data from Analysis Services (Cube).
According to the dataset, there is no data returned when I run the query. so when I preview the chart, there is nothing but "no data available" showing on the chart.
Here I want to know is there any possible to show an empty chart with legend and x and y axis?
If it is possible, can you tell me how can I make it?
Best Regards.
Connie ZhuHi,
When there is no data, the chart displays the message "no data available". But using a little work around, you can display an empty chart.
Please find the below steps given to achieve this
1. Create a new dataset using TSQL to return 1 row of data having the category field and value field set to 0. Add the fields that are necessary for the category fields, series fields and datafields.
A simple example would be like
SELECT 'abc' as Category, 0 as Amount
2. Add a new chart, set the category field to 'Category' and set the data field to Amount from above dataset created in step 1.
3. In the new chart, right click the category axis and select axis properties, Click on the labels tab, check on
'Hide axis labels' and then click ok
4. Now set the Visibility property of both the charts depending on the rows returned from your main dataset
a. click on your main chart and set its Hidden property to :
=iif(CountRows("MainDataSet"),false,true)
b. click on the new blank chart added and set its Hidden proprety to (the opposite) :
=iif(CountRows("MainDataSet"),true,false)
Note : Please change the dataset name in above expression "MainDataset" to the name of your chart's dataset
5. Resize the new chart to the same size as your main chart, then position the new chart on the place as the main chart.
(Note : You can set the position of new chart to be same by copying the location property from the main chart)
6. Now run and observe the result. When there are no rows returned by your main dataset, the new chart (the blank chart) should be displayed.
I've added a working sample of this kind of a report
here.
Hope this helps. Please feel free to discuss if you have any questions.
Please click "Mark as Answer" if this resolves your problem or "Vote as Helpful" if you find it helpful.
BH -
How to show a picture both on client and server at the same time (X11?)
Hi Guys
I want show a picture on my client as well as on the server(in another location) at the same time, pretty much like showing something both on laptop and on a projector. Assume I have a picture sssss.jpg on the server A1, if I want to open that picture to my client, I can simply to do the following from client A2:
xhost A1
telnet to and login A1
setenv DISPLAY "ipaddress of A2":0.0
Anyone can direct me how to show picture the client that I am sitting at an also show on the server at the same time?
ThanksVNC would let you do that. With a shared connection, both machines could run a VNC client to the same session.
Darren -
How to pass more than one value for one column in procedure
hi
select id, name from col_tab where dept_name in ('ECE','CIVIL');
when i was running this it is working well.
CREATE OR REPLACE PACKAGE pack_str
AS
TYPE type_refcur IS REF CURSOR;
PROCEDURE str(char_in VARCHAR2,ans OUT type_refcur);
END pack_str;
CREATE OR REPLACE PACKAGE BODY pack_str
AS
PROCEDURE str(char_in VARCHAR2,ans OUT type_refcur)
IS
BEGIN
OPEN ans FOR
select id,name from col_tab where dept_name in char_in ;
END str;
END pack_str;
the package was created.
my doubt is
1.how to pass more than one value for char_in (e.g ('ECE','CIVIL'))
2. when i was storing the value in string like val = 'ECE,CIVIL' ,
how to get the id,name for ECE and CIVIL.
plz help meHi Rebekh ,
I am recreating your packages for the desired output.
CREATE OR REPLACE PACKAGE pack_str
AS
TYPE type_refcur IS REF CURSOR;
PROCEDURE str(char_in VARCHAR2,ans OUT type_refcur);
END pack_str;
CREATE OR REPLACE PACKAGE BODY pack_str
AS
PROCEDURE str(char_in VARCHAR2,ans OUT type_refcur)
IS
lv_t varchar2(200);
BEGIN
lv_t := REPLACE(char_in,',',''',''');
lv_t := 'select id,name from col_tab where dept_name in (''' || lv_t || ''')' ;
OPEN ans FOR lv_t;
END str;
END pack_str;
Note:-
Input Parameter char_in is a comma seperated value for dept_name
-Debamalya -
How can can i subtract the value of the column in each row ?
I want to subtract the value of the column in each row if the row is not enough then continue to next row.
For example
ID QTY
A 20
B 40
C 60
I want to update this table by subtract the value of the column (QTY) out 70 so the result i want will be
ID QTY
A 20 - 70 = -50 --> 0 this row will be updated to 0 and 50 will continue to next row
B 40 - 50 = -10 --> 0 this row will be updated to 0 and 10 will continue to next row
C 60 - 10 = 50 --> Stop loop
How can i write the sql query for this operation , ThanksPlease post DDL, so that people do not have to guess what the keys, constraints, Declarative Referential Integrity, data types, etc. in your schema are. Learn how to follow ISO-11179 data element naming conventions and formatting rules. You have no idea,
do you? Temporal data should use ISO-8601 formats. Code should be in Standard SQL as much as possible and not local dialect.
This is minimal polite behavior on SQL forums. What did you try on your own before posting? I will bet that you did nothing! You expect other people to do your job or homework for you.
>> I want to subtract the value of the column in each row if the row is not enough then continue to next row. <<
This makes no sense. Rows have no ordering; that is a spreadsheet. There is no such thing as a generic “id” in RDBMS. And an identifier is not a sequence which would have an ordering.
CREATE TABLE Foobar
(something_seq INTEGER NOT NULL PRIMARY KEY,
onhand_qty INTEGER NOT NULL);
Learn how to use the SUM()OVER() and LAG() aggregate functions, post what you tried for yourself and then we will help you.
--CELKO-- Books in Celko Series for Morgan-Kaufmann Publishing: Analytics and OLAP in SQL / Data and Databases: Concepts in Practice Data / Measurements and Standards in SQL SQL for Smarties / SQL Programming Style / SQL Puzzles and Answers / Thinking
in Sets / Trees and Hierarchies in SQL
Maybe you are looking for
-
I have my iCloud account but I want to delete all there. How can I to do this?
-
I have just bought a Macbook Pro and sync data from my old version onto the new one...However when I tried opening the mail client...Message window does not appear. The old Macbook Pro I was using used Snow Leopard. Now with the new it is a Lion. Tor
-
Both my iPod Classic and my iPod Shuffle show up as a device, and I am able to transfer music to them, but I have no source list - no summary page and no tabs. No icon representing my device with the serial number and name. I have tried several thing
-
Cound not find any entry in table EDP12 for a partner provided in IDOC data
Hi All, I have an inbound IDOC for a purchase order. If a put a query to the table EDP12 for the partner or message type (ORDERS) provided in the IDOC data, I do not get any entry for this. Could you please enlighten me on this... Thanks, Sanjeet
-
Low battery warning for low signal?
Every once and while I get the screen showing the battery at red and asking to plug the Iphone in. When I looked at the battery life it's still had more than 30%, but my signal was on like 1 bar, could this be a reason why the Iphone might show a low