Thread: Blank values in Answers (trim)

This question is answered. Helpful answers available: 5. Correct answers available: 1.


Permlink Replies: 9 - Pages: 1 - Last Post: Jun 22, 2009 2:37 AM Last Post By: Stijn Gabriels
user11166061

Posts: 54
Registered: 05/20/09
Blank values in Answers (trim)
Posted: Jun 18, 2009 2:15 AM
 
Click to report abuse...   Click to reply to this thread Reply
It seems like Answers is removing leading and trailing blanks when it takes the values to the SQL. This is very "dangerous" because it means that it will not be able to find a value that in the database table is:
e.g.
"Short-term receivables " (one blank at the end)

when Answers take this to the SQL it removes the trailing blank and searches for this value:
"Short-term receivables" (no blanks!!)

e.g. it won't find this row when e.g. drilling down on details. This can be fixed by adding TRIM to alle Character values in the BI Server (or in the data warehouse) but I rather want Answers to include the blanks (performance etc.).

Is there any way to tell Answers to include blanks (or not remove them) ?

(There is a similar issue with capitalized letters, but that is another case :)
wildmight

Posts: 817
Registered: 11/07/07
Re: Blank values in Answers (trim)
Posted: Jun 18, 2009 3:33 AM   in response to: user11166061 in response to: user11166061
 
Click to report abuse...   Click to reply to this thread Reply
actually, it's one of the consistency checks in RPD - avoiding spaces - it'll spit error message of you have a trailing space
user11166061

Posts: 54
Registered: 05/20/09
Re: Blank values in Answers (trim)
Posted: Jun 18, 2009 3:45 AM   in response to: wildmight in response to: wildmight
 
Click to report abuse...   Click to reply to this thread Reply
As I can see the concistency check only checks for surrounding blanks in the variable names, not in the data itself... (which is the problem)
Dhrubo C

Posts: 68
Registered: 10/28/05
Re: Blank values in Answers (trim)
Posted: Jun 19, 2009 1:59 AM   in response to: user11166061 in response to: user11166061
 
Click to report abuse...   Click to reply to this thread Reply
Try one thing..Click open the datasource in the Physical Layer and go to Features tab and hit "Revert to defaults" and see if the problem persists.

dhrubo
user11166061

Posts: 54
Registered: 05/20/09
Re: Blank values in Answers (trim)
Posted: Jun 19, 2009 6:24 AM   in response to: Dhrubo C in response to: Dhrubo C
 
Click to report abuse...   Click to reply to this thread Reply
Hi,
These features has not been modified, but anyway the problem is not the datasource. It is in Answers that the blank characters are removed.
John Minkjan

Posts: 747
Registered: 03/14/08
Re: Blank values in Answers (trim)
Posted: Jun 19, 2009 3:02 PM   in response to: user11166061 in response to: user11166061
 
Click to report abuse...   Click to reply to this thread Reply
Just an outside the box tought: Replace the spaces with an underscore on the fly:
REPLACE("D1 Customer"."C1 Cust Name", ' ', '_') and use that (hidden) column for your filter.

HTH

John
http://obiee101.blogspot.com/
user11166061

Posts: 54
Registered: 05/20/09
Re: Blank values in Answers (trim)
Posted: Jun 22, 2009 1:58 AM   in response to: John Minkjan in response to: John Minkjan
 
Click to report abuse...   Click to reply to this thread Reply
Problem is that I would have to do this for every attribute I have and that is not what I want.. I want Answers to NOT trim the values, because that will make an indifference with the physical value.
Stijn Gabriels

Posts: 878
Registered: 11/29/07
Re: Blank values in Answers (trim)
Posted: Jun 22, 2009 2:15 AM   in response to: user11166061 in response to: user11166061
 
Click to report abuse...   Click to reply to this thread Reply
Hi,
I'm not 100% sure, but I think the problem is caused by HTML. The spaces on the end of your value are not translated into & nbsp; (non breaking space) but are displayed as regular ' ' in the HTML. This will make your space dissapear on your screen. Unfortunately I don't see an easy solution for this.

Regards,
Stijn

P.S. Just a little test with some spaces at the end

Edited by: Stijn Gabriels on Jun 22, 2009 11:36 AM
user11166061

Posts: 54
Registered: 05/20/09
Re: Blank values in Answers (trim)
Posted: Jun 22, 2009 2:20 AM   in response to: Stijn Gabriels in response to: Stijn Gabriels
 
Click to report abuse...   Click to reply to this thread Reply
Ok, you are probably right. This is actually a common problem to be aware of because it can give wrong results, especially when doing drill downs.

Do you have any suggested to this? Adding a TRIM to all attributes seems a bit "dirty", also for performance.
Stijn Gabriels

Posts: 878
Registered: 11/29/07
Re: Blank values in Answers (trim)
Posted: Jun 22, 2009 2:34 AM   in response to: user11166061 in response to: user11166061
 
Click to report abuse...   Click to reply to this thread Reply
Hi,
well it's maybe not the answer you want to hear, but with most data related issues, you should solve them in the database. So change the source and/or change your ETL process to remove those spaces at the end of your string.

Regards,
Stijn
Legend
Guru Guru : 2500 - 1000000 pts
Expert Expert : 1000 - 2499 pts
Pro Pro : 500 - 999 pts
Journeyman Journeyman : 200 - 499 pts
Newbie Newbie : 0 - 199 pts
Oracle ACE Director
Oracle ACE Member
Oracle Employee ACE
Helpful Answer (5 pts)
Correct Answer (10 pts)

Point your RSS reader here for a feed of the latest messages in all forums