How can I reconfigure this formula of substring OBIEE for Null columns?
HelloI use this formula of substring to conveert my 20130201 to 02/02/2013 date field and as some of my data columns are NULL, I get a result of / / that is contained in the formula itself. How can I reconfigure this formula so cells NULL return Null and if a cell has data I should see, for example, 01/02/2013?
SUBSTRING (CAST ("CSR Order Headers". "Appointed date" AS CHAR) 5 FOR 2) ' | ' /'| " SUBSTRING (CAST ("CSR Order Headers". "Appointed date" AS CHAR) 7 FOR 2) ' | ' /'| " SUBSTRING (CAST ("CSR Order Headers". "Appointed date" AS CHAR) FROM 1 to 4) "
Thank you
John
Use the CASE statement:
Example:
CASE WHEN SUBSTRING(CAST("CSR Order Headers"."Appointment Date" AS CHAR) FROM 5 FOR 2)||'/'||SUBSTRING(CAST("CSR Order Headers"."Appointment Date" AS CHAR)
FROM 7 FOR 2)||'/'||SUBSTRING(CAST("CSR Order Headers"."Appointment Date" AS CHAR) FROM 1 FOR 4) = '//'
THEN null
ELSE
SUBSTRING(CAST("CSR Order Headers"."Appointment Date" AS CHAR) FROM 5 FOR 2)||'/'||SUBSTRING(CAST("CSR Order Headers"."Appointment Date" AS CHAR)
FROM 7 FOR 2)||'/'||SUBSTRING(CAST("CSR Order Headers"."Appointment Date" AS CHAR) FROM 1 FOR 4)
END
Appreciate if you score as good/useful.
Best regards
Kalyan Chukkapalli
http://123obi.com
Tags: Business Intelligence
Similar Questions
-
How can I make a cell formula will apply for the entire column? For example D2 appears B2 - C2. How can I copy this formula for each cell in the column?
If you want the formula is the same (B2 - C2) in the cell of each column you must change it as ($B$ - 2$ C$ 2). Then copy it, select the whole column and paste.
-
How can I implement this formula?
Hello, I use labview to implement the formula in the image;
x with i, is a particular element of the nx1 range...
What should I do?
I don't think that you still need a loop FOR. try this:
-
I have pictures (Nikon) on my computer and Picasa3. A scalable show of all my photos - as a gadget - had been to my sidebar-great fun, but mistakenly hit a wrong something, after an update to Norton and they diasppeared gadget. I know little about computers and have NO idea how to reinstall them. Now my sidebar has only 2 icons and seems lonely. Help
Hey! :), right-click on the desktop and click gadgets. Then double click on the slide show gadget. :)
-
I get the pop-up windows and windows that automatically open on my browser, how can I solve this
Do a scan for adware with Malwarebytes: http://malwarebytes.org/antimalware/mac.
(copy and paste the link above into the address bar of your browser).
-
When I try to open any video feature posted on my comcast home page all I get is a black screen. the same thing when I try to open
videos in my message. I can't even open a training video.
How can I solve this problem.
Thank you for your help.
Y_BrownThis does not happen on my computers. Try to download Firefox from http://www.mozilla.org and see if that makes a difference. I also recommend the safe boot and checking the virus. Get your updated antivirus program and boot into Safe Mode. Note that some viruses can hide from your normal antivirus program, so you really need to scan in Safe Mode. To enter in Safe Mode when you turn on first, press F8 on every seconds until you get the menu, and then select Safe Mode. Then run a complete system scan.
-
Good luck.
-
I used him copy / paste to add several checkboxes on my form, but now in preview mode when I check the first box it automatically checks all the boxes. How can I stop this from happening?
For later use, it happened because your fields have the same field name, and fields with the same name automatically have the same value.
So all you had to do was so each had a unique name and it would have worked, but using the command create several fields is preferable because it renames the fields for rename you them.
-
How can I recover this database?
The computer that hosts my Oracle 10 g XE Server finally broke down... Luckily I have a backup of the system files, including my Oraclexe folder. I bought a new system and need to reinstall 10gXE oracle database again. I have an urgent need to convert the facility to resemble the database in the system, I lost. How can I achieve this?
Thanks in advance for your helpGSun wrote:
Best way to recover the database from my own experience is to generate and keep your DOF of the database and the table of backup data using the export utility!And what happens when you lose your database business 6 hours after taking this export? You've lost only 6 hours of transactions.
No, the best way to recover a database must follow the procedures documented in the Guide of the backup and recovery at http://docs.oracle.com/cd/E11882_01/backup.112/e10642/toc.htm
And that starts with the use of rman to back up the database AND the archivelogs. -
How can I add a formula which attaches to other boxes in adobe acrobat pro 11?
How can I add a formula which attaches to other boxes in adobe? I can easily put it in excel or word but the difficulty to do in acrobat pro 11. It is for a contract and required for add, subtract, and multiply different numbers around the page they came.
This tutorial is a good starting point: http://acrobatusers.com/tutorials/how-to-do-not-so-simple-form-calculations
-
I recently downloaded my favorite CD music in my I tunes library, how can you transfer this music on a USB Flash drive so that I can play the music through my H D - bike
stereo system.
I'm 10 Windows on my PC
Select the songs in iTunes, let them slip into a file Explorer window showing the flash drive, drop.
TT2
-
I have iOS 10 and I am still unable to make messages with animation effects. How can I solve this problem?
Without knowing what is happening when you try, it is difficult to recommend troubleshooting. However, one of the first steps is to ensure that you don't have to reduce the Motion activated in accessibility.
-
ElCapitan update macOS/Sierra tonight. Photo open. Wallpaper (behind photos) used to be black, now it is white. How can I get this back to black?
I believe the Photos app exactly the same under MacOS Sierra there as it did under OS X El Capitan on the background color.
The background color is (and was) white when usually browsing photos. But when you edit a picture, the background color turns black.
To edit in the Photos under MacOS Sierra app, press the circle button. (This button is used to say "Change" under OS X El Capitan). You will then see the black background.
-
I attempt to backup my iPhone several times and it does not backup. I received a message stating "several files were not available at the time of the backup. How can I solve this problem?
Hello Lope8725,
Looks like you are trying to backup either iCloud or iTunes, but you have found an error on files being unavailable. Can reply you with the exact wording or a screenshot of the message you are getting?
In the meantime, you can solve the problem with either of those two sections depending on whether or not it's iTunes or iCloud:
If iCloud backup could not be completed or if you can not restore
or
If your iTunes backup could not be completed or you cannot restore from a backup
See you soon!
-
In Entourage, all the incoming mails are doubled. How can I fix this?
In Entourage, all the incoming mails are doubled. How can I fix this?
Entourage is not an Apple product and there are very few users Entourage here. I do part, but never encountered the problem you describe. You the best chance for a quick resolution is to post your question forums Office: Mac from Microsoft here:
Everyone he's a Mac user AND a user desktop, something you can't say about Apple forums. You will get the quickest help there and I think you'll find contributors more useful.
When you post here, do not forget to include your Office version and your version of Mac OS x.
-
I received a prompt on my Ipod touch 5th generation yesterday, that there is a new update of the Messenger application. So I tried to update, however, the app is now stuck on the phase "Waiting."... "and the logo has been disabled. I still get notifications of new messages from the app, but I can't open. I tried to remove and then reinstall the application but the application did not and the app store think that I always opened it. How can I fix this or return to the previous edition that worked?
Thank you in advance!
Hello cfossum,
Looks like you have problems with a third party on your iPod touch app, since the Messages belongs to iOS and you would receive separate not quickly update.
The resources below will provide some troubleshooting steps for the problem you are having with the Messenger application.
If an application you have installed unexpectedly closes, unresponsive, or does not open
Take care.
Maybe you are looking for
-
my mouse move as a magnet on it what can I do to make the right move? Help, please
my moving the mouse in a mode of travel. or as a magnet is about this, do not move to the right please help
-
HP Pavilion Gaming 15 - ak155nm: problem with detection m.2 SSD
Hello I built a computer with M.2 Intel SSD 256 GB 600p and for some reason it does not detect the SSD m2. I have HP Pavilion 15 - ak155nm portable Gaming. Please help. Thank you Toni
-
How can you fill ListBox with channel group name dynamically?
I built a GUI in the 'View' pane that acts as a large table of contents. At the top of the GUI, there is a list box I want to dynamically fill with Group channel names loaded in my data portal (internal data). I can't generate the necessary code to d
-
Recovery of old e-mail account
My computer crashed and I had to get another. I'm unable to access my old email address, * address email is removed from the privacy *. I really need retrieve information from it. I had to get a new e-mail address of Suddenlink, * address email is
-
How to run repair downloads when the local disk (c) is bad, system32, rundll
I am home with one leg broken, broken arm, a broken jaw and having my left shoulder replaced, my question, can I me pls someone, anyone, to come and go in my store and get my sled 5lb.hand, I have six kids and they will get no money, in any case, my