Different value in the sum in a table of Desktop Intelligence
Greetings, I created a report in Desktop Intelligence and I created a variable that contains the sum of the table. The table gives a value but when I put the variable in other part of the report give a total different value. When I checked the table contains some duplicate values. I used Avoid Duplicate Row Aggregation but the problem is worst. How can I remove the duplicate values in a row of table ?
Hi Miguel Rodriguez,
what is the meaning of sum of table???
i didnot understud.
aggregation performence is good when you make A object as measure Object in Universe level.
if you want to like this:
customer product_1 product_2 product_3
A 10 50 60
B 20 60 40
C 30 70 20
D 40 80 80
create a variable PRODUCT
=Sum( [product_1] + [product_1] + [product_1])
customer product_1 product_2 product_3 PRODUCT
A 10 50 60 120
B 20 60 40 120
C 30 70 20 120
D 40 80 80 200
Next Click on Product column File menu -
> Insert -
> calculations -
>Sum
customer product_1 product_2 product_3 PRODUCT
A 10 50 60 120
B 20 60 40 120
C 30 70 20 120
D 40 80 80 200
Sum= 560
All the best,
Praveen
Similar Messages
-
Passing different values to the same servlet
Hi,
Is there a way to pass different values to the same servlet?
Background:
I have a database that I query to acquire a list of customers, then I show each customer as a link, that when clicked will show details of that customer. (The customer table is dynamic so I can't create a new page for each customer)
When using JSP what I do is
//Do query database
while (rst.next())
String cust = rst.getString ("cust");
out.write("<a href = \"cust2.jsp?cust=" + cust + " \" >" + cust + "</a> ");
}Then on the cust2.jsp. I will use
String str = request.getParameter ("cust");to acquire the customer to get details of.
Is there a way to do the same using servlets?
I could swap to JSP when creating this particular part of the project but it won't look good and it would help me learn a few things when there is another way.I want to know if there is a way to pass a variable from a webpage link like in my JSP example using servlets.
Here is what I wanted to do:
I have a webpage that contains customer names and each name has a link to the same servlet (let's say the link is famia/servb). I want servb to show detailed information about the customer my visitor clicked in the webpage.
The logic I was thinking is to pass a variable to this servlet, then I can use that variable to know which customer should I query in my database. So that I can show the details to my users.
Here lies my problem, I don't know how I can pass this variable, or even know which customer my visitor clicked. I can't use a new servlet for each client since the customer is in a database and if my customer base grows then I would need to create a lot more web page that does the same thing.
The JSP example I gave is how I will be coding it if I am using JSP, but now I am using servlets. So I was wodnering if there is a way to do this using servlet. Or should I stay with using JSP for this particular logic and just call servb after the JSP page acquired the variable.
I'm trying not to use "<original URL> + ? + <variable> = <value>" (eg: http://www.famia.net/customer?cust=famia) as the means for passing the variable. (or in the example as a means of passing variable cust with value famia) -
Default value of the combobox in a table
Hi,
I am facing a strange problem.I have a column of a table of type comboBox.But when I try to retrieve the value of the cell of that table, it returns a blank value to me.I am using table.getValueAt(0,1) function.Where I am trying to retrieve the value of the element in row zero and column 1.
But when I select something in the combobox then that value comes up, but if i don't select anything in the combobox, the default topmost value of the combobox is not returned.
Any suggestions,
Connie.Hi..
my code looks like this:
//to make the second column of the Left table a combobox
TableColumn col = mLeftTable.getColumnModel().getColumn(1);
//col.setCellEditor(new DefaultCellEditor(comboBox));
col.setCellEditor(new MyComboBoxEditor(values));
col.setCellRenderer(new MyComboBoxRenderer(values));
class MyComboBoxRenderer
extends JComboBox
implements TableCellRenderer {
public MyComboBoxRenderer(String[] items) {
super(items);
class MyComboBoxRenderer
extends JComboBox
implements TableCellRenderer {
public MyComboBoxRenderer(String[] items) {
super(items);
public Component getTableCellRendererComponent(JTable table, Object value,
boolean isSelected,
boolean hasFocus, int row,
int column) {
if (isSelected) {
setForeground(table.getSelectionForeground());
super.setBackground(table.getSelectionBackground());
else {
setForeground(table.getForeground());
setBackground(table.getBackground());
// Select the current value
setSelectedItem(value);
return this;
Somewhere in the code i have the following line:
mDataModel1.addRow(new Object[] {mDSPathTextField.getText(),
"aa"});
now my combobox does not add the value aa as it topmost value and makes it selected by default.Can u guide me on what to do?
thx
Connie -
How use "All Values" in the pages of pivot tables
Hi everyone,
I’m using Oracle Bi Answers and I have the following problem:
I’m doing reports based in a datamart with 2 fact table each with about 28 Million records per month and with a medium of 14 dimensions.
The users want to have the choice to select 5 parameters for example (region, district, type of product, month of analysis, subtype of product) where they can select an individual option as well as select an “all values” option. They want this for all the parameters.
We are having problems doing this without having the report to timeout.
Approaches used
We are trying to do this by using pivot tables and combo boxes in the reports (one for each parameter). The combos are in the pages area.
We are trying to do a calculated item with Sum(*) to have a “ALL Values” in the combo box but this makes the report extremely slow.
We also tried to do Sum in the pages section of the pivot table but it only displays the “All pages value” of the first combo box.
So actually I don’t know what to try. Can you help me with the best way to do this?
Thanks
Edited by: user8727081 on Sep 28, 2009 2:45 AMHi,
I had the same problem, and I solved it using the dashboard prompts.
But sometimes users are not happy. I explaine why.
Suppose a dimension Nation:
Italy, Germany, UK, France, USA
1) I create a report with sales quantity.
2) Report has a filter --> "nation" = is prompted
3) I create a dashboard prompt "Nations" based on dimension Nation with All Values
4) I publish the report in a dashboard with the dashboard prompt "Nations"
When user choose the nation from the prompt, all nations are displayed, also if I have NO sales for some of these.
My goal: only nations with sales must be shown
Thanks
Enrico -
[ora_hash] different value for the same input
hi all,
i'm using 2 different machine running the same version of oracle (11g).
on those 2 db i have the same tables with the same datas.
for the comparisson of the data i'm using the ora_hash function (both on numeric and string fields) and for some records i get different results.
how is that possible?
(by the way looking at the records that has different hashes the values calculated by the hash function are the same)
thxYou have posted in the wrong forum. As the forum title says this forum is for SQL Developer and not for SQL or PL/SQL questions.
After reading the information provided at the end of this reply you should
1. create a new thread in the SQL and PL/SQL forum
PL/SQL
2. Edit this current question to add a link to the new question and tell people to follow up in the other forum.
3. Mark this current question ANSWERED so followup will be in the other forum.
Thanks.
When you post in the other forum provide information related to the following
>
for the comparisson of the data i'm using the ora_hash function (both on numeric and string fields) and for some records i get different results.
>
Please post your 4 digit Oracle versions - both versions (result of SELECT * FROM V$VERSION) and examples (i.e. actual code) of values that are giving different results.
>
(by the way looking at the records that has different hashes the values calculated by the hash function are the same)
>
What? there can't be 'different hashes' if the 'values calculated by the hash function' are the same. What are you saying here?
Again - provide examples that show the differences. Should be something like
SELECT ORA_HASH(12345) FROM DUAL;Since you say there are differences on the two machines provide the execution plan from each machine that shows what Oracle is actually doing. One machine may be applying a function to the data. -
How to remove numeric value in the fields of a table
Environment: SQL Server 2008R2
Tools: MSMS
Code:
a. Table Definition
USE [DLPT_CMS1_RESTORE]
CREATE TABLE [dbo].[Mocha]
[id] [int] IDENTITY(80,1) NOT NULL,
[Login_ID] [char](10) NULL,
[PE4] [varchar](8000) NULL,
[PE9] [varchar](8000) NULL,
[PE11] [varchar](8000) NULL,
[PE15] [varchar](8000) NULL,
[PE17] [varchar](8000) NULL,
[PE20] [varchar](8000) NULL,
[PE22] [varchar](8000) NULL,
[PE25] [varchar](8000) NULL,
[PE28] [varchar](8000) NULL,
[PE29] [varchar](8000) NULL,
[PE27] [varchar](8000) NULL
b. data
Insert into Mocha (Login_ID,[PE4],[PE9] ,[PE11],[PE15],[PE17],[PE20],[PE22],[PE25],[PE28], [PE29],[PE27])
Values (293595,293595,293737,293737,293737,293737,293737,293737,'I dont think 12 week program is hard',293737,293737,'antiinflamatory- this helps to fight free radicals and ward off disease.')
Insert into Mocha (Login_ID,[PE4],[PE9] ,[PE11],[PE15],[PE17],[PE20],[PE22],[PE25],[PE28], [PE29],[PE27])
Values (293841,293841,293841,293841,'293841 I feel that the product should be more holistic'
,'293841 I would like for the customer support to give more immediate feedback'
,'293841 Fends off alzeimer disease and dementia. It has been proven to destroy the amaloid plaques that are believed to be a cause of dementia and memory loss',
293841,293841,293841,293841,293841,293841)
Challenge:
1. Delete / Remove login_ids from a string found in one or more of the fields in Mocha table
Example: the following string contains login_id '293841 I would like for the customer support to give more immediate feedback' , remove the login_id in the narrative field which could be PE4, PE22. or PE28
2. Count the response or narrative field for each column after the deletion is completed
My script and still working progress
SELECT * FROM MOCHA
WHERE ISNUMERIC(PE4) = 1 and [PE4] like '%[0-9]%'
Thanks for the supportI added a new data which shows inaccurate results using your last updated code. The mistake appears in the 3rd row culomn name PE25 is null but counts it as 1
CREATE TABLE [dbo].[Mocha]
[id] [int] IDENTITY(80,1) NOT NULL,
[Login_ID] [char](10) NULL,
[PE4] [varchar](8000) NULL,
[PE9] [varchar](8000) NULL,
[PE11] [varchar](8000) NULL,
[PE15] [varchar](8000) NULL,
[PE17] [varchar](8000) NULL,
[PE20] [varchar](8000) NULL,
[PE22] [varchar](8000) NULL,
[PE25] [varchar](8000) NULL,
[PE28] [varchar](8000) NULL,
[PE29] [varchar](8000) NULL,
[PE27] [varchar](8000) NULL
Insert into Mocha (Login_ID,[PE4],[PE9] ,[PE11],[PE15],[PE17],[PE20],[PE22],[PE25],[PE28], [PE29],[PE27])
Values (293737,293737,293737,293737,NULL,293737,NULL,293737,'I dont think 12 week program is hard',293737,293737,'antiinflamatory- this helps to fight free radicals and ward off disease.')
Insert into Mocha (Login_ID,[PE4],[PE9] ,[PE11],
[PE15],[PE17]
,[PE20],[PE22],[PE25],[PE28], [PE29],[PE27])
Values (293841,293841,293841,293841
,'293841 I feel that the product should be more holistic'
,'%%293841%% I would like for the customer support to give more immediate feedback'
,'%%293841%% Fends off alzeimer disease and dementia. It has been proven to destroy the amaloid plaques that are believed to be a cause of dementia and memory loss'
,293841,NULL,NULL,293841,293841)
Insert into Mocha (Login_ID,[PE4],[PE9] ,[PE11],[PE15],[PE17],[PE20],[PE22],[PE25],[PE28], [PE29],[PE27])
Values (293735,'293735 my name',NULL,NULL,NULL,NULL,NULL,NULL,'%%293735%%I dont think',293735,293735,'this helps to fight free radicals and ward off disease')
select
Replace(Replace(PE4,RTRIM(Cast(Login_ID as varchar(10))), ''),'%','') PE4
,Replace(Replace(PE9,RTRIM(Cast(Login_ID as varchar(10))), ''),'%','') PE9
,Replace(Replace(PE11,RTRIM(Cast(Login_ID as varchar(10))), ''),'%','') PE11
,Replace(Replace([PE15],RTRIM(Cast(Login_ID as varchar(10))), ''),'%','') PE15
,Replace(Replace(PE17,RTRIM(Cast(Login_ID as varchar(10))), ''),'%','')PE17
,Replace(Replace(PE20,RTRIM(Cast(Login_ID as varchar(10))), ''),'%','') PE20
,Replace(Replace(PE22,RTRIM(Cast(Login_ID as varchar(10))), ''),'%','') PE22
,Replace(Replace(PE22,RTRIM(Cast(Login_ID as varchar(10))), ''),'%','') PE25
,Replace(Replace(PE28,RTRIM(Cast(Login_ID as varchar(10))), ''),'%','') PE28
,Replace(Replace(PE22,RTRIM(Cast(Login_ID as varchar(10))), ''),'%','') PE29
,(case when len(PE4)-Len(Replace(PE4,RTRIM(Cast(Login_ID as varchar(10))), ''))=0 or [pe4] is null or Replace(PE4,RTRIM(Cast(Login_ID as varchar(10))), '') ='' Then 0 Else 1 End) cntP4
,(case when len(PE9)-Len(Replace(PE9,RTRIM(Cast(Login_ID as varchar(10))), ''))=0 or [pe9] is null or Replace(PE9,RTRIM(Cast(Login_ID as varchar(10))), '') ='' Then 0 Else 1 End) cntP9
,(case when len(PE9)-Len(Replace(PE11,RTRIM(Cast(Login_ID as varchar(10))), ''))=0 or [pe11] is null or Replace(PE11,RTRIM(Cast(Login_ID as varchar(10))), '') ='' Then 0 Else 1 End) cntP11
,(case when len(PE15)-Len(Replace(PE15,RTRIM(Cast(Login_ID as varchar(10))), ''))=0 or [pe15] is null or Replace(PE15,RTRIM(Cast(Login_ID as varchar(10))), '') ='' Then 0 Else 1 End) cntP15
,(case when len(PE17)-Len(Replace(PE17,RTRIM(Cast(Login_ID as varchar(10))), ''))=0 or [pe17] is null or Replace(PE17,RTRIM(Cast(Login_ID as varchar(10))), '') ='' Then 0 Else 1 End) cntP17
,(case when len(PE20)-Len(Replace(PE20,RTRIM(Cast(Login_ID as varchar(10))), ''))=0 or [pe20] is null or Replace(PE20,RTRIM(Cast(Login_ID as varchar(10))), '') ='' Then 0 Else 1 End) cntP20
,(case when len(PE22)-Len(Replace(PE22,RTRIM(Cast(Login_ID as varchar(10))), ''))=0 or [pe22] is null or Replace(PE22,RTRIM(Cast(Login_ID as varchar(10))), '') ='' Then 0 Else 1 End) cntP22
,(case when len(PE25)-Len(Replace(PE25,RTRIM(Cast(Login_ID as varchar(10))), ''))=0 or [pe25] is null or Replace(PE25,RTRIM(Cast(Login_ID as varchar(10))), '') ='' Then 0 Else 1 End) cntP25
,(case when len(PE28)-Len(Replace(PE28,RTRIM(Cast(Login_ID as varchar(10))), ''))=0 or [pe28] is null or Replace(PE28,RTRIM(Cast(Login_ID as varchar(10))), '') =''Then 0 Else 1 End) cntP28
,(case when len(PE29)-Len(Replace(PE29,RTRIM(Cast(Login_ID as varchar(10))), ''))=0 or [pe29] is null or Replace(PE29,RTRIM(Cast(Login_ID as varchar(10))), '') =''Then 0 Else 1 End) cntP29
from mocha -
How to pick the value of the line item in table control
My screen.
I have designed table control by referring internal table without using wizard.
I have placed button inside of that table control.
my requirement is by clicking the button it ll show the value of the line inside of the table control.
I have used "get cursor...".
But the problem is "it ll show only the cursor value of the front screen, if suppose i scroll the value of table control at the time also, it ll show the cursor value of the screen, it ll not show the exact value of the cursor inside of the table control.Wrong Forum Anand......!
-
Why does eye dropper Lab show a different value than the Lightness channel?
Can someone help me understand how the L in Lab color in the eye dropper tool maps to the actual Lab Lightness channel? Both are on a scale of 0-100, but they clearly show different values. Here's a video that show what I mean (note that if I completely desaturate the color, I get the same results, it isn't a color thing).
I cannot read much useful in the OP's video, but I think, the OP is not talking about
HLS- or HSL-Lightness (not available in PS CS6) or HSB-Brightness, but only about
CIELab Lightness in two different modes:
Figure 1:
Figure 2:
The area was filled with a gray L=50 a=0 b=0.
In Figure 1 all channels are selected. The values are correct.
In Figure 2 only the Lightness channel is selected. The value L=54 is wrong.
What might be the reason?
Measurements were always taken inside the area. The RGB-values are the same in both modes.
Please don't verify this by measuring in these Forum-images. These are PNGs in RGB.
Please verify by repeating the trial.
Best regards --Gernot Hoffmann -
Display pages that reacts to different values in the drop down list.
I currently did up a simple drop down list that stores values retrieved from the database. I would like the program to display pages that reacts to the selected value without the press of any button, which means, if I select any value from the drop down list, the page will be displayed according to the value selected.
Below are the codes that I did for the retrieval of data from the database.
<%
String username = "test";
String password = "test";
String thinConn = "jdbc:oracle:thin:@dbdev:1521:ORCL";
Connection conn;
Statement stm;
ResultSet rs;
String baseQuery ="SELECT DISTINCT ID FROM STAFF ORDER BY ID ASC";
try {
conn = DriverManager.getConnection(thinConn,username,password);
stm = conn.createStatement();
rs = stm.executeQuery(baseQuery);
%>
<strong>Retrieve ID from Database</strong>
<select size="1" name="dropdown">
<%
while (rs.next()) {
String id = rs.getString("ID");
out.write("<option value=\"" + id + "\">" + "level " + id + "</option>");
conn.close();
} catch (SQLException e) {
%>
</select>Would appreciate if someone might offer some help to what I have to do next
Edited by: wyndsor on Jun 26, 2008 7:34 PMcotton.m wrote:
[_An instant classic_|http://www.webdeveloper.com/forum/showthread.php?t=184937]
Sometimes I find myself wondering why people think they won't get caught with their cross forum cross posting. Then I realize that if they knew about Google they wouldn't have needed to ask the question in the first place.
It's kind of funny in an ironic sort of way. -
AST Acctype Accounts - Need a different value at the PARENT level of Time Dimension
Hi All,
We have a planning model wherein we have the following hierarchy in the account dimension:
CLOSECUSTOMERS
OPENCUSTOMERS
NET ADDS
GROSS ADDS
MIGRATE
DISCONNECTIONS
CLOSECUST and OPENCUST are AST type accounts since we need as of balance, whereas the other accounts like Gross Adds, Migrations and Disconnections are EXP type, as we need a cumulation of these values for a particular period.
Account
Jan 2011
Feb 2011
Mar 2011
Q1 2011 ( in BPC)
Q 2011 (Required)
Opening Customers (AST)
1000
1020
1070
1070
1000 (Jan opening)
Gross Adds (EXP)
50
100
60
210
210
Migrations (EXP)
-20
-30
-30
-80
-80
Disconnections (EXP)
-10
-20
-70
-100
-100
Closing Customers (AST)
1020
1070
1030
1030
1030
The business is looking for more of a summary at their quarterly level. i.e. what was the opening for the quarter, the delta changes that happened during the year, and the closing balance.
The issue is mainly with the opening value. It takes the value from the latest month. But the value is needed from the earliest month of that calculated time period.
We do not have a Flow Dimension in the planning model and the users need this in ad-hoc reporting as well. So we do not have an option of managing this at a reporting level (using EPMCopyRange or something similar)
Is there any other solution to this issue?
Any help would appreciated.
ThanksHi,
A bit not clear requirements. You are trying to create separate accounts for Opening and Closing? Looks strange! Please, use Flow dimension for this things. Trying to emulate it on the report level will create a lot of misunderstanding...
B.R. Vadim -
How to get the sum in BSEG table using select statement
hai all
i made the internal tale "itab1" .. i want to get the som feild of DMBTR in BSG table my code is here but its not working gave som error massage (Aggregate functions and the addition DISTINCT are not supported in field lists for pooled and cluster tables.) plz tel me how should i do it..... i want to get the som of that feild....
loop at itab1
SELECT sum( DMBTR ) from bseg INTO itab1-DMBTR141_45
where GJAHR = itab1-GJAHR
and BELNR = itab1-BELNR.
endloop.
regard
nawaSELECT BELNR GJAHR SHKZG DMBTR
from bseg
INTO table it_bseg
for all entries in itab1
where GJAHR = itab1-GJAHR
and BELNR = itab1-BELNR.
loop at it_bseg.
IF it_bseg-shkzg = 'H'.
it_bseg-dmbtr = it_bseg-dmbtr * ( -1 ).
ELSE.
it_bseg-dmbtr = it_bseg-dmbtr.
ENDIF.
MODIFY it_bseg.
endloop.
loop at it_bseg.
READ TABLE itab1 with key belnr = it_bseg-belnr
gjahr = it_bseg-gjahr.
if sy-subrc = 0.
collect it_bseg into it_bseg_amount.
endif.
endloop.
U can use the collect statement
Regards
Gopi -
Different value in select one choice inside table in ADF
Hi ADF Experts,
jdev version 11.1.1.5
I have an requirement like
I have a table with 1 column as selectonechoice,
and each selectonechoice should show different list based on department id.
I have don't wan't backing bean approach as mention in below link (some other alternative will be helpful)
[http://itnewscast.com/applications/how-populate-different-select-list-content-table-row|http://itnewscast.com/applications/how-populate-different-select-list-content-table-row]
please helpCheck out Frank'S article http://www.oracle.com/technetwork/developer-tools/adf/learnmore/dec2010-otn-harvest-199274.pdf on page 27 'How-to populate different select list content per table row'
Timo -
IT0041 : Same date type with different values in the same infotype
Hi,
Is it possible to store in the 0041 infotype, the same type date but with a diffentent date.
Example :
IT0041
employee 1000:
date type : xx 01.05.10
date type : xx 02.05.10.....
ThanksHi there,
My two cents.
I don't think it can be done in standard. Also copying IT 0041 would limit you to enter only 12 dates.
My suggestion:
Create a custom infotype with subtype field and a date field like IT 0015.
On the screen you will only be seeing subtype and date. And assign time constraint 3 to it.
In this way with the same subtype you can record several dates.
cheers
Ajay -
Meaning of EE in the value in the field ARCKEY of table EDIDC.
Pls ignore ths thread
Edited by: Arnab Mondal on Apr 21, 2009 1:14 PMSeems no 1 nows the answer. So closing the forum
Regards,
Arnab -
Hi experts,
I have drop down in one column of a table.In each row i want to populate different values to the drop down.But since i have binded the drop down with a single node, so all the drop down gets same values.
for example. row1 i want to populate drop doen with value say A,B,C and in row2 i want to populate drop doen with value say D,E,F. But i am getting the values in both drop downs as A,B,C,D,E,F.
The values are coming from backend as a arraylist.
Please help.
Regards
NarendraHI
I hope you may know the values you want to present in the DropDownByIndex in each row of the Table ,
Are the Values static . if so you may have to catch the index of the Node , remove the
elements that you are not necessary .
When you bind the same node of the RFC to all the dropdown of the tables
then it will show the same data in all DDI as you are getting it from . .
if you want different data then you can make bind different nodes from the RFC or
if you have less amount of values you have present in the DD , i hope you can go with
Simples Types .
Maybe you are looking for
-
<p style="margin-top: 0; margin-bottom: 0"><font face="Arial" size="2">Hi,</font></p> <p style="margin-top: 0; margin-bottom: 0"> </p> <p style="margin-top: 0; margin-bottom: 0"><font face="Arial" size="2">I would like to insert data in a table. The
-
When I enable the root user it asks me for the password, then password verification. Then when I leave terminal I disable the root user. Next time I enable it, it again asks for the password and to verify it, but I can enter ANY password and get into
-
Webdav client for iCloud? Forget Transmit.
Would love to know if anyone has found a client for iCloud. Migrated over today and wish I could migrate back. Transmit is as useless as the Finder for this new server structure. I'm not even sure what the initial path is now for iCloud. Any help
-
How to create two UILoader that can be nested with each other and save the parent UILoader - as3
Hi all, I am currently researching on the problem but I can't find any solution in the web. Here is my problem: I have two UILoader instance (loader_inner and loader_outer) I need to have loader_inner to be part of the loader_outer. I have also a but
-
Technical content objects Getwa_not_assigned
hi friends thanks for pervious replay I have assigned the points but i have one more request this regrading technical content objects. plz find the error below and try to help thank you . thnaks in advance . infoobjects for technical content is faile