Currency & Amount Concatenated into One Column after SPS Upgrade
Hi BI Community
We have recently upgraded to SPS17 (BW SP19) for our production system and we have one issue where the currency and amount are concatenated into one column (Annual Salary). Previously the currency and amount are displayed in separate columns. An example below.
Before SPS Upgrade
Annual Salary
100000
723200
20122
After SPS Upgrade
Annual Salary
USD 100000
723200 TWD
20122 CNY
Hi Karthik,
Its working fine but if duplicate values found in column which we want to concat it should take its occurrence only once
for eg:
ID COMPLETED_BY RISK_EVALUATION
532 [email protected] Low/Low/Medium/High/Medium/Medium/High/Medium/High/High/Medium/Low/Medium
this should be like below
ID COMPLETED_BY RISK_EVALUATION
532 [email protected] Low/Medium/High
Thanks in advance
Similar Messages
-
Hi, thanks for taking the time...
I'm running a machine with Windows 7, Office 2010, and Acrobat XI. When I save a specific PDF as an Excel workbook, all of the data in the original PDF is sorted correctly in four columns. When the same task is performed on this file on another user's machine, all of the data is sorted into one column. The user has the same versions of Windows, Office, and Acrobat. I've attempted the "Repair installation" option but the problem persists. Any suggestions? Thanks again for helping,
-EThanks for the quick reply. I figured out how to get the desired results by using tagging. For anyone who may reference this post in the future, I went to "Customize" in the top right corner of Adobe, then selected "Create new tool set...", looked under "accessiblity and found the "tag" option. Hit ok, tag is added to the toolbar. Then I highlighted the dataset in the PDF that was relevant to the output format, then clicked "tag", saved as spreadsheet. Sorry I can't provide more details on how tagging works or if there's a more elegant solution available, but I'm sure one's out there.
-
When I import a text file(comma separated) into a numbers spreadsheet all the data goes into one column instead of individual columns based on the comma separators. Excel allows you to do this during the import.. Is there a way to accomplish this in numbers without opening it in Excel and the importing into Numbers.
Your user info says iPad. This is the OS X Numbers forum. Assuming you are using OS X… Be sure the file is named with a .csv suffix.
(I don't have an iPad, so I don't know the iOS answer.) -
Data in two different coulmns merge into one column
I am using following script to create external table with data.
CREATE TABLE external_class(
item_no varchar2(255),
max_range varchar2(255)
ORGANIZATION EXTERNAL
TYPE ORACLE_LOADER
DEFAULT DIRECTORY DATALOAD
ACCESS PARAMETERS
RECORDS DELIMITED BY NEWLINE
FIELDS TERMINATED BY ','
MISSING FIELD VALUES ARE NULL
(item_no,max_range)
LOCATION ('class_newc.txt')
REJECT LIMIT UNLIMITED;
Problem is that its merge both columns into one column.
I want two seperate columns.
Data is in microsoft excel spread sheet.
I saved as txt(TAB DELIMITED) txt
Data appears in clas.txt file as below:
"400 " 4177.64
"404 " 5574.64
"406 " 5333
"408 "
"409 "
"450 " 10.83
"478 "
"482 " 4820
I ran the above script to create table.
Table Created
SQL> desc external_class;
Name Null? Type
ITEM_NO VARCHAR2(255)
MAX_RANGE VARCHAR2(255)
SQL> select count(*) from external_class;
COUNT(*)
3036
but with
select * from external_class;
ITEM_NO MAX_RANGE
"400"4177.64
"404"5574.64
"406"5333
"408"
"409"
"450"10.83
"478"
"482"4820thanks its work.
Actually I created other file as below
Item_no-----max_range
400 4177.64
404 5574.64
406 5333
408
409
450 10.83
and use creation script as below:
CREATE TABLE external_class(
item_no varchar2(255),
max_range varchar2(255)
ORGANIZATION EXTERNAL
TYPE ORACLE_LOADER
DEFAULT DIRECTORY DATALOAD
ACCESS PARAMETERS
RECORDS DELIMITED BY NEWLINE
fields terminated by whitespace
MISSING FIELD VALUES ARE NULL
(item_no,max_range)
LOCATION ('class_newa.txt')
REJECT LIMIT UNLIMITED; -
Inserting multiple selection from checkbox into one column of the database
Hi,
How to insert multiple selection values from checkbox into one column of the database.
Anyone can u help me
Thanxhi
try to use request.getParameterValues("fieldname") -
Can we concatenate 2 columns of datafile into one column in sql loader
Hi,
Can we concatenate 2 columns of datafile into one column in sql loader?
like
Suppose there are two field in data file
column1 - lastname value tiger
column2 - firstname value scott
Required result
sould be concatenate of the two field into one database coulmn
like name and value should be scott tiger.
ThanksOr try this...
My input file
1,KARTHICK,PATTABIRAMAN,SOFTWARE
2,VIJAY,RENGANATHAN,FINANCE
3,VIMAL,KANTH,SALESAnd my control file.
LOAD DATA
INFILE 'EmpDetail.txt'
BADFILE 'EmpDetail.bad'
DISCARDFILE 'EmpDetail.dsc'
INTO TABLE "EMPDETAIL"
FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"' TRAILING NULLCOLS
(NO,
NAME1 BOUNDFILLER,
NAME ":NAME1||' '||:NAME",
DEPT) My table is.
SQL> create table empdetail(no integer, name varchar2(50), dept varchar2(50))
2 /
Table created.Then i loaded the data.
D:\karthick\Akiva\Look up\Akiva\Address Look Up>sqlldr sysadm/sysadm@akivanew empdetail.ctl
SQL*Loader: Release 9.2.0.1.0 - Production on Mon Sep 15 12:23:42 2008
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
Commit point reached - logical record count 2
Commit point reached - logical record count 3And the output is
SQL> select * from empdetail
2 /
NO NAME DEPT
1 KARTHICK PATTABIRAMAN SOFTWARE
2 VIJAY RENGANATHAN FINANCE
3 VIMAL KANTH SALESThanks,
Karthick. -
Sql loader - mutiple values into one column
Hi,
Is it possible to load multiple fields into one column. Eg, my table structure has two columns COL1, COL2 and my data file is comma delimted with 3 fields A,B,C.
How could i use sql loader to achieve (without the use of temp tables)
COL1 = A
COL2 = BC
ThanksI don't understand why you can't modify the input fille.
But anyway, i have 2 ways to help you
1. Make new inputfile online using pipe and awk(or something your are familiar with) and use it as new input file.
This is a traditional and powerful method in Unix environment.
For instance:
oracle> $ mknod pipe.dat p
oracle> cat input.dat | awk '{print ...}' > pipe.dat &
oracle> sqlldr ctl=.. data=pipe.dat
Using this method, you don't need to modify original input file physically, but by some magical trick you can modify it on the fly.
2. Use before trigger
For instance:
create table load(a int, b int, c int, d int);
create or replace trigger load_trigger
before insert on load
for each row
begin
:new.d := :new.b + :new.c;
:new.b := null;
:new.c := null;
end;
load data
infile *
append
into table load
fields terminated by "," optionally enclosed by '"'
(a, b, c)
begindata
1, 1, 1
2, 2, 2
3, 3, 3
4, 4, 4
sqlldr userid=... ctl=load.ctl
SQL> select * from load;
A B C D
1 2
2 4
3 6
4 8
You won't like the existence of unnecessary columns(B, C) but don't have choice. ^^;
I think there is another simple way provided by SQL*Loader. But i've never tried it myself. Read following doc and try it yourself:
http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96652/ch06.htm#1008153 -
Select multiple column into one column
Hi..!!!
Is it possible to select 4 columns in to 1 columns?
I've major1, major 2, major 3, major 4 and i want to retrieve all the columns into one column called "Majors".
Is it possible? if yes then how?
Help me out.
Thanks,
HimadriIf you had given a proper example this thread would have been over in two posts. What you are looking for is often described as an UNPIVOT.
I tend to use a collection type for this, e.g.
Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
SQL> CREATE OR REPLACE TYPE varchar2_table AS TABLE OF VARCHAR2 (4000);
2 /
Type created.
SQL> SELECT empno, column_value
2 FROM emp, TABLE (varchar2_table (ename, job));
EMPNO COLUMN_VALUE
7369 SMITH
7369 CLERK
7499 ALLEN
7499 SALESMAN
7521 WARD
7521 SALESMAN
7566 JONES
7566 MANAGER
7654 MARTIN
7654 SALESMAN
7698 BLAKE
(snipped)
28 rows selected.
SQL> -
Merge two resultsets into one column
Hi Guys,
I have two SQL statements. The first returns 12 columns and the second returns 2 columns but both return the same number of rows. I can't seem to merge both the queries into a common query as the WHERE clauses in both are different. I have to dump the output into a table i created. The table has 14 columns. One column in both queries act as primary key and they help form the relationship between the resultsets. The column name is SUBSCR_CODE. Below you will find my SQL queries and the CREATE TABLE statement. Please could someone tell me how to achieve this.
SELECT o.subscr_code,
SUM(NVL(m.remain_capital,0)),
SUM(NVL(m.remain_interest,0)),
SUM(NVL(m.remain_debtor_fee,0)),
SUM(NVL(s.remain_debtor_fee,0)),
SUM(NVL(m.remain_costs_to_client,0)),
SUM(NVL(m.remain_debtor_outlay,0)),
SUM(NVL(s.remain_debtor_outlay,0)),
SUM(NVL(m.debtor_exp_outlay,0)),
SUM(NVL(s.debtor_exp_outlay,0)),
SUM(NVL(m.vatbase_debtor_fee,0)),
SUM(NVL(s.vatbase_debtor_fee,0)),
NULL
FROM kkrpt1 o,
maincase m,
subcase s
WHERE o.maincase_id = m.maincase_id
AND m.maincase_id = s.mc_maincase_id
AND s.claim_type IN (6,7,8,9,10,11,13)
AND s.subcase_no = 0
AND m.closing_date IS NULL
AND s.closing_date IS NULL
GROUP BY subscr_code;
SELECT o.subscr_code,
SUM(NVL(a.remain_interest,0))
FROM kkrpt1 o,
amount a,
maincase m,
subcase s
WHERE o.maincase_id = a.mc_maincase_id
AND o.maincase_id = m.maincase_id
AND m.maincase_id = s.mc_maincase_id
AND s.claim_type IN (6,7,8,9,
10,11,13)
AND s.subcase_no = 0
AND m.closing_date IS NULL
AND s.closing_date IS NULL
AND a.amount_type = 41
GROUP BY subscr_code;
CREATE TABLE kk_ajot_14 (
subscr_code VARCHAR2(5),
remain_capital_sum NUMBER,
remain_inerest_sum_1 NUMBER,
remain_debtor_fee_sum_1 NUMBER,
remain_debtor_fee_sum_2 NUMBER,
remain_costs_to_client NUMBER,
remain_debtor_outlay_1 NUMBER,
remain_debtor_outlay_2 NUMBER,
remain_debtor_exp_outlay_1 NUMBER,
remain_debtor_exp_outlay_2 NUMBER,
vatbase_debtor_fee_1 NUMBER,
vatbase_debtor_fee_2 NUMBER,
remain_inerest_sum_2 NUMBER);No need to create table
with
sql_1 as
(<first sql here>
sql_2
(<second sql here>
select a.*,b.*
from sql_1 a,sql_2 b
where a.subscr_code = b.subscr_codeRegards
Etbin -
Concacenate Many Columns text into one Column
Hi,
I have many columns with text in it. I would like to ideally concatenate these column content into just ONE column.
Please help work out how to do this as I have no idea.
I am somewhat familiar with CMD so if you can help with this urgently that would be SO awesome.
Thanks
:)890635 wrote:
Thanks again...
So I want to display this data eventually on forms. So I think I do need to create a blank column.
so let's say I want the concatenated data to end up in "Final_Delivery".
How to do that?
Thank youI dont have any idea about Forms...But just a guess that for form as well you must be writing some SQL, and you can use the sql there directly. Otherwise if you want to get it inserted into new column in existing table....First you have to add a new column to your table and then run update Statement to populate that data..similar to this
SQL> select * from emp;
EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO TEST INFO
7369 SMITH CLERK 7902 17-DEC-80 800 20
7499 ALLEN SALESMAN 7698 20-FEB-81 1600 300 30
7521 WARD SALESMAN 7698 22-FEB-81 1250 500 30
7566 JONES MANAGER 7839 02-APR-81 2975 20
7654 MARTIN SALESMAN 7698 28-SEP-81 1250 1400 30
7698 BLAKE MANAGER 7839 01-MAY-81 2850 30
7782 CLARK MANAGER 7839 09-JUN-81 2450 10
7788 SCOTT ANALYST 7566 19-APR-87 3000 20
7839 KING PRESIDENT 17-NOV-81 5000 10
7844 TURNER SALESMAN 7698 08-SEP-81 1500 0 30
7876 ADAMS CLERK 7788 23-MAY-87 1100 20
EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO TEST INFO
7900 JAMES CLERK 7698 03-DEC-81 950 30
7902 FORD ANALYST 7566 03-DEC-81 3000 20
7934 MILLER CLERK 7782 23-JAN-82 1300 10
14 rows selected.
SQL> update emp set info=to_char(empno)||' '||ename||' '||job;
14 rows updated.
SQL> select * from emp;
EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO TEST INFO
7369 SMITH CLERK 7902 17-DEC-80 800 20 7369 SMITH CLERK
7499 ALLEN SALESMAN 7698 20-FEB-81 1600 300 30 7499 ALLEN SALESMAN
7521 WARD SALESMAN 7698 22-FEB-81 1250 500 30 7521 WARD SALESMAN
7566 JONES MANAGER 7839 02-APR-81 2975 20 7566 JONES MANAGER
7654 MARTIN SALESMAN 7698 28-SEP-81 1250 1400 30 7654 MARTIN SALESMAN
7698 BLAKE MANAGER 7839 01-MAY-81 2850 30 7698 BLAKE MANAGER
7782 CLARK MANAGER 7839 09-JUN-81 2450 10 7782 CLARK MANAGER
7788 SCOTT ANALYST 7566 19-APR-87 3000 20 7788 SCOTT ANALYST
7839 KING PRESIDENT 17-NOV-81 5000 10 7839 KING PRESIDENT
7844 TURNER SALESMAN 7698 08-SEP-81 1500 0 30 7844 TURNER SALESMAN
7876 ADAMS CLERK 7788 23-MAY-87 1100 20 7876 ADAMS CLERK
EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO TEST INFO
7900 JAMES CLERK 7698 03-DEC-81 950 30 7900 JAMES CLERK
7902 FORD ANALYST 7566 03-DEC-81 3000 20 7902 FORD ANALYST
7934 MILLER CLERK 7782 23-JAN-82 1300 10 7934 MILLER CLERK
14 rows selected.
SQL>Regards,
Navneet -
Collecting data from multiple rows into one column
I'd like to run a query and put a collection of items into one output column instead of multiple rows. See the example below:
Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - Prod
PL/SQL Release 10.2.0.5.0 - Production
"CORE 10.2.0.5.0 Production"
TNS for 32-bit Windows: Version 10.2.0.5.0 - Production
NLSRTL Version 10.2.0.5.0 - Production
CREATE TABLE "SKIP"."INGREDIENTS"
( "INGRED_ID" NUMBER,
"INGRED_NAME" VARCHAR2(20 BYTE),
"STORES" VARCHAR2(20 BYTE)
) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
TABLESPACE "USERS" ;
REM INSERTING into SKIP.INGREDIENTS
Insert into SKIP.INGREDIENTS (INGRED_ID,INGRED_NAME,STORES) values (1,'SEA SALT','Food lion');
Insert into SKIP.INGREDIENTS (INGRED_ID,INGRED_NAME,STORES) values (2,'TABLE SALT','Food lion');
Insert into SKIP.INGREDIENTS (INGRED_ID,INGRED_NAME,STORES) values (3,'FLOUR','Piggly Wiggly');
Insert into SKIP.INGREDIENTS (INGRED_ID,INGRED_NAME,STORES) values (4,'YEAST',null);
Insert into SKIP.INGREDIENTS (INGRED_ID,INGRED_NAME,STORES) values (5,'BEER','ABC Store');
CREATE TABLE "SKIP"."PRETZELS"
( "PRETZEL_ID" NUMBER,
"PRETZEL_NAME" VARCHAR2(20 BYTE),
"PRETZEL_DESC" VARCHAR2(100 BYTE)
) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
TABLESPACE "USERS" ;
REM INSERTING into SKIP.PRETZELS
Insert into SKIP.PRETZELS (PRETZEL_ID,PRETZEL_NAME,PRETZEL_DESC) values (1,'CLASSIC','Classic knot pretzel');
Insert into SKIP.PRETZELS (PRETZEL_ID,PRETZEL_NAME,PRETZEL_DESC) values (2,'THICK STICK','Straight pretzel, abt 1/2" in dia');
CREATE TABLE "SKIP"."INGRED_XREF"
( "PRETZEL_ID" NUMBER,
"INGRED_ID" NUMBER
) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
TABLESPACE "USERS" ;
REM INSERTING into SKIP.INGRED_XREF
Insert into SKIP.INGRED_XREF (PRETZEL_ID,INGRED_ID) values (1,1);
Insert into SKIP.INGRED_XREF (PRETZEL_ID,INGRED_ID) values (1,2);
Insert into SKIP.INGRED_XREF (PRETZEL_ID,INGRED_ID) values (1,4);
Insert into SKIP.INGRED_XREF (PRETZEL_ID,INGRED_ID) values (2,2);
Insert into SKIP.INGRED_XREF (PRETZEL_ID,INGRED_ID) values (2,3);
Insert into SKIP.INGRED_XREF (PRETZEL_ID,INGRED_ID) values (2,5);
-- Constraints for Table INGRED_XREF
ALTER TABLE "SKIP"."INGRED_XREF" MODIFY ("PRETZEL_ID" NOT NULL ENABLE);
ALTER TABLE "SKIP"."INGRED_XREF" MODIFY ("INGRED_ID" NOT NULL ENABLE);
{code}
Desired output (note how the ingredients are all listed in one column, separated by commas):
{code}
PRETZEL_ID PRETZEL_NAME PRETZEL_DESC INGREDIENTS
1 CLASSIC Classic knot pretzel SEA SALT, TABLE SALT, YEAST
2 THICK STICK Straight pretzel, abt 1/2" in dia TABLE_SALT, FLOUR, BEERSee the FAQ : {message:id=9360005}
Especially links concerning string aggregation. -
I wish to import a csv file from my Bank into a numbers spreadsheet but I can't expand it from the one column it's in . Can anybody help Thankyou
This Automator Service (Dropbox download) should do the job, eliminating the need for a trip to TextEdit, etc.
The one-time installation is simple: just doubleclick the .workflow package. You may have to click "Download Anyway" in System Preferences > Privacy & Security.
To use, in Finder select the csv file, rightclick, and in Services in the contextual menu select CSV to Tabs on Clipboard. Choose the delimiter when prompted (usually it's a comma but there are other choices). When the "ready to paste" notification appears a few seconds later, click once in a Numbers cell and command-v to paste the data. (If needed Numbers will automatically expand the table to accommodate the data.)
To remove or rename the Service, in Finder hold down the option key and in the menu Go > Library > Services.
SG -
How To Insert Cells Into One Column Only
Can anyone advise me, how to insert a cell (or multiple cells) into +just one column+ whilst leaving everything else on the sheet exactly as it is?
I'm migrating from Excel and can't find this functionality in Numbers
Thanks in advance for any helpThank you for taking the time to reply, thereby removing the misery of me continuing to search for this absent function!
I really wanted to like the iWork apps! I recently rebuilt one of my rigs and had the intention of making it a Microsoft-free computer - hence the purchase of iWork.
However, the last few days of 'learning curve' I have stumbled upon an increasing number of incompatibilities and limitations when compared to Excel, and the lack of the function to insert a single cell into a sheet is the final deal-breaker for me, sadly.
So, reluctantly, I am going to install my Microsoft Office 2008 suite and get back to where I was before. I will continue to look at the iWork apps but I suspect they'll fall to the wayside.
Once again, many thanks for confirming what I was reluctantly concluding. -
SQL*Loader concat into one column
Hi
I want to import an ASCII File with fixed positions to a table. One column in database needs 3 different position strings to import. is there a way to do it?
i test this sample, but it doesn't work:
into table t1
ORDER position(1:10),
NAME position(28:35)||' '||position(100:116)||', '||position(129:140)
ralfok forget it. I've just see the answer in forum. SORRY
-
Combine 2 specific column values into one column
Is there an easy solution to combine column values that is in a group?
In my report I have 1 column group named Activity_Area which has 5 different values Activity 1, Activity2...Activity5.
Let's say I want to merge Activity 4 and Activity 5 and call it ActivityX and gives me the output as below
Activity 1 | Activity 2 | Activity 3 | ActivityXHi Jhonny86,
According to your description, you create a field in database and it contains five values. Then you want to only display four values in report column group, and the last two values should be replaced by “ActivityX”, right?
In your scenario, you can create an table like below:
create table Act(id int,activity varchar(99))
insert into Act select 1,'Activity 1'
insert into Act select 2,'Activity 2'
insert into Act select 3,'Activity 3'
insert into Act select 4,'Activity 4'
insert into Act select 5,'Activity 5'
Then query the table with code like below in query designer, then add the field [Act] into the column group.
If you have any question, please feel free to ask.
Best regards,
Qiuyun Yu
Qiuyun Yu
TechNet Community Support
Maybe you are looking for
-
How to install packages from local folder
Hi all, I have downloaded all arch linux packages from the following URLs: ftp://mirrors.kernel.org/archlinux/core/os/i686/ ftp://mirrors.kernel.org/archlinux/extra/os/i686/ ftp://mirrors.kernel.org/archlinux/community/os/i686/ and then have saved th
-
Dear All, I am in need to develop customized report on Vendor Accounts payable - Aging for given slab. I can find the open items for the given key date in the table BSIK. if we want to calculate due on past date( for cleared item),
-
TS1630 I had purchased IPHONE 5S in MAY 2013 and in NOV 2013 my phone ringer has stopped working
i had raised a call earlier also 531814968 and with this id the executive tried everything possible to get my phone work but nothing happened. and then I was told by the customer care executive that i will have to go to the same vendor from where i p
-
Refresher: Apple in-app purchase requirement
Hey, Guys, Digging through all the routine documentation and can't seem to find Apple's requirement (been a while since we've dealt with this particular topic). Scenario: A client is aiming to launch a new magazine app in the Newsstand. They'll have
-
How to create an album of photos from a (photo)book
I have created a photobook in iPhoto. Is it possible to now create an album containing all the images in the photobook - the reverse of creating a book from an album of images? Mac OS X (10.4.3)