"CASE WHEN 1 = 0 THEN... ON THE OTHER... END '?

This might be a very basic question I'm still confused about it.
Can you explain me please "BOX WHEN 1 = 0 THEN... ON THE OTHER... END '?
Where and why to use this declaration?


Help appreciated.

First Let's break down what it means. Because 1 is never equal to 0, OBI will ignore what comes immediately after and run what comes after the ELSE.

So, why would we do that? Well, often we want to perform an action that has nothing to do with a particular column in our field. Using this CASE statement, trick us OBI into thinking that we use a column for a calculation or action, but in fact, the column is unchanged.

For example, suppose that you have been the construction of a line of dashboard. You want to use a column twice in the dashboard command prompt, for example a column ACCOUNT_OPEN_DATE for a range of dates. You cannot use the same column twice in a row of dashboard. (Try it, OBI will ignore your attempt to put the same column twice in your workspace).

So, what are you doing? You first get a column (in this example, I use a column of type CHAR) as the name of the branch. It doesn't matter which column you are using. The TANK is used the syntax is so logical.

Move the column to your workspace. Now you click on the amending formula and you type CASE WHEN 1 = 0 THEN organization. "" The branch name ' ELSE 'TEST' END.
So in this case, the values of the branch name are not affected and the dummy column represents just the word 'TEST '. Now in the 'Show' of the command prompt part, we switch to 'SQL results' and SELECT 'attributes of the account' type. Account_Open_Date OF THE industry and together for a PV called StartDate.

Because the column is a model, you can call it in fact once again. Use the instruction BOX even make a "dummy" column Then use the same SQL, you used previously, but this time save it in a TICKET called EndDate.

You now have two date values, you can use your ACCOUNT_OPEN_DATE column to get a date range.

So, in conclusion, normally you choose a column in the subject box, because you have the values in this column in your report. But when you just need a column to do something unrelated to any column, you use CASE 1 = 0 to make a "dummy" column, and then you can perform your action.

HTH,

Tags: Business Intelligence

Similar Questions

  • I have an iphone 6 times and after the installation of new iOS 9.3 when I receive or make a call the person on the other end cannot hear me but I can hear them.  If I change speaker and then they are able to hear me.  Any help?

    I have an iPhone 6 plus and have upgraded to the new iOS 9.3 but now when you receive or calls the other person on the other end can't hear me. The only way to make this work is to allow the speaker.

    I power off, the hard reset, and this problem still exists.

    Can anyone help?

    Test your low microphone by going on record and taking a test recording.

    (When you put it on the loudspeaker, he uses the microphone before located next to the cylinder head box.)

  • When I try to make a video call via Skype. I can see and hear the people on the other end, but they cannot hear me.

    I just got a new laptop with the latest softwear Microsoft and McAfee. Everything works fine EXCEPT when I try to make a video call via Skype. I can see and hear the people on the other end, but they cannot hear me.  The microphone settings seem to be OK.  the antivirus that was installed would cause the problem?  I tried to ask Skype. but do not seem to be able to communicate with them...

    The following support Skype may have something that will help: http://support.skype.com/en-us/category/CALL_QUALITY/

  • Hi, I have a problem with a basic movement scroll effect.  I've already looked and read every tutorial out there about it and even tried the cat to adobe support, but the guy at the other end of the line disconnected me..., he probably didn't unde

    Hi, I have a problem with a basic movement scroll effect.

    I've already looked and read every tutorial out there about it and even tried the cat to adobe support, but the guy at the other end of the line disconnected me..., probably he did not understand what I wanted him, because English is not my native language, so one will try to be very clear on this one...

    Please note that I am new to dream, this is my first project ever.

    My idea is as follows:

    When the customer comes to our site of companies, he sees just our logo on a white background. the logo is composed of, say, four elements. When the client makes a scrolling down, the logo begins to transport: first the first part of the logo flies on the left side of the site, then the second part of the logo disappears down, then the third part of the logo flies to the right, then the fourth part of the logo flies upward and out of sight of customers. given what I've seen, it is possible to do...

    so...

    now I have four parts of my logo imported as png files in muse and was assembled in design mode to build our companies logo. I select each of the four parts and go to the effects of scrolling to the left tab next to the tab layers first I get the same values for each of the four parts: first movement: x 0 and x 0 again for the movement of the left and right; key position (t-handle): 0px; final movement: x 0 and x 0 for the value of left and right.

    now, I hit "Preview". : the logo is "pinned" to the correct location, I can scroll but the logo stays where it is. So far so good...

    now, I select all four components again and go to the tab scroll to 'final motion' effecs, I click on the drop down arrow and enter 1 x. I struck an excerpt...

    When I scroll the WHOLE grave logo down... well.

    NOW, I want the first part of the logo down, THEN part II to move left, THEN the third part to go to the top, THEN the fourth part to go right.

    so I select ONLY the first part, go to the request of scroll, to the 'final movement' tab, I click on the left arrow, then I go 1 x. (the value of up-down, I put to 0 again)... I struck an excerpt...

    the first part of the logo is left as soon as I start to scroll, the other three parties still go down at the same time...

    NOW, I want the second part of the logo to start to move, when the first part left, not at the same time as the first part.

    THEN I SELECT THE SECOND PART AND DRAG ITS HANDLE IN T (KEY ITEM) DOWN, LETS SAY: 200PX. THEN IT STARTS TO MOVE ONLY AFTER THE CUSTOMER HAS REACHED THIS POINT, RIGHT?

    BUT WHEN I SAW THAT *, THE LOGO IS NO LONGER TOGETHER, THE SECOND PART IS FLOATING ANYWHERE, BUT WHERE IT SHOULD BE... WTFF?

    short: when I move the t-handle, the initial position of the object changes. That's what I said to the adobe employee, but he said, this is the expected behavior...

    But if that's the case, how can I have my four parts correctly together, so they form my logo, but with different t treats, so they all start to move at different times?

    Pleeease help me, I will die of frustration here...: () this behavior is not normal, right?

    Thank you very much to everyone who reads this message and tries to help him...

    All the best,

    Niki Lapan

    I'm not good at explaining things that im going to download the file, I did for you. hope this helps you solve your problem

    https://www.mediafire.com/?xiild0yhr5cna7s

  • BlackBerry Smartphones can not hear the other end to the phone

    Hello

    I have a Bold 9900. Lately, I had a problem where I am unable to hear the ringing of the. The phone vibrates and I see an incoming call. When I answer the call, I can not hear the person at the other end of the line, or the other person can hear me. If I try someone sounds, I can't hear their phone ring, but I get the message that we are related, but may not have any conversation. When I do a full power off and restart its new normal.

    How can I get rid of this problem?

    Hello docvish,

    Welcome to the community,

    As the PC or laptop requires the restart of our smartphone require also restarts to remove slow, whenever you feel any unusual just give a battery pull reboot I have; e while the unit is on the battery wait a min. then reinsert it wait until it restarts. You can also give a soft reboot by pressing alt + Shift R (aA ^) + DELETE.

    Also avoid any applications running in the background, press on and hold Menu button for a few seconds, it will appear a screen showing running applications or that are still open., remember always to get out of the applications not only to return the key. Try if solves your problem, or alternatively you can visit any Center of Blackberry service to the issue.

    Good luck

    Click 'Like' If you want to thank someone.
    If problem resolves mark message (s) as a 'Solution', so that others can use.

  • If I'm on a phone call, the person on the other end can hear my call waiting beep?

    I just want to know how rude I can be seen if the caller on my line can hear my phone jump on the other side. Incoming call beeps are so distracting and I would like to know if my current call is able to hear the call notifications in the same way that I do. I hope not.

    The person at the other end of the line does not hear the beep.

  • Interruption of the WiFi connection.  Green light is the Airport Express. Settings Network said the cable for the Wi - Fi connection is not connected or the device at the other end does not respond.

    Interruption of the WiFi connection.  Green light is the Airport Express.  Settings Network said the cable for the Wi - Fi connection is not connected or the device at the other end does not respond.  Tried to reset Airport Express, but remained light amber or orange flashing.  I unplugged it and waited and plugged back into the light turned green.  Rebooted computer (Mac Pro). Parameters of said the same thing.  Managed to create a WiFi "network with the ethernet in the network settings section, and yet I am wireless.  I am online but not wired and WiFi settings still says not connected, and either the cable for the Wi - Fi is not plugged or the device at the other end does not respond. I don't understand this situation.  My original WiFi name disappeared.  How I am on the internet?

    What is the brand and model of the modem Internet you have the AirPort Express directly connected by Ethernet? What exact model number is your Express?

  • Domain! = Insert then in the other Table

    Hello
    I can't figure out how to create a trigger that inserts data based on cases an old.field! = new.field. If the field has been changed to
    a tbl_test table then insert this file into the other tbl_test_history of the table. It's a little different since I want to insert a record if an update
    has taken place. The update will still take place at tbl_test, but I want an insert will be held at tbl_test_history.
    CREATE OR REPLACE TRIGGER AU_INSERT_TEST_HISTORY 
      AFTER UPDATE
      ON TBL_TEST   FOR EACH ROW
    WHEN (
        OLD.Orange != NEW.Orange
     OR OLD.Apple != NEW.Apple
          )
    BEGIN
    INSERT INTO TBL_TEST_HISTORY
     (ORANGE,
      APPLE
      BANANA,
      GRAPE
    )
      select ORANGE,
             APPLE
             BANANA,
             GRAPE
    FROM TBL_TEST, TBL_TEST_HISTORY
      WHERE  TBL_TEST.PK_TEST_ID = TBL_TEST_HISTORY.PK_TEST_ID;
    END AU_INSERT_TEST_HISTORY;
    /
    I have a separate trigger that will insert records from tbl_test to tbl_test_history. This trigger compiles without error but when I
    create a record in tbl_test I have an error message. I don't know if the syntax is correct, can someone help me with this?

    My bad. I put the colon: in the when clause. They were not there in your code. I usually use an if condition, which is a little different.

    I added a NEW logic to also consider the comparison of NULL values.

    CREATE OR REPLACE TRIGGER AU_INSERT_TEST_HISTORY
      AFTER UPDATE  ON TBL_TEST
      FOR EACH ROW
    BEGIN
      if nvl(:old.ORANGE,'xxx') != nvl(:new.ORANGE,'yyy')
         OR nvl(:old.APPLE,'xxx') != nvl(:new.APPLE,'yyy')
      then
        INSERT INTO TBL_TEST_HISTORY
         (ORANGE, APPLE, BANANA, GRAPE)
        values (:new.ORANGE,
                 :new.APPLE,
                 :new.BANANA,
                 :new.GRAPE);
      end if;
    END AU_INSERT_TEST_HISTORY;
    / 
    

    In addition, you can consider making trigger a trigger AFTER INSERT or UPDATE.

    Then you would also put the values inserted early in your history table.

    Published by: Sven w. August 9, 2012 16:14

  • How to treat the points when they are just above the other?

    I was fiddling around with the trace function and create outlines of text. For some reason any sometimes I'll end with two points that overlap each other and no way to get rid of one or the other. How the hell can I clean this up? I know I can do something like simplify to reduce points on an object, but it goes beyond the necessary adjustment to remove one troubling point.

    Even when you zoom in as far as possible I can't to select one point on the other because they are in the same place.

    Also if you want to do this manually the negative of anchor point tool, which is part of the toolset of feather pen icon with the sign less will allow you to remove the top. Also, if you click on the anchor point with the direct Selection tool, and then press DELETE it should remove just an anchor.

    But Concatenate could do this as a difficulty.

    you will find it useful.

  • When on a Skype call, the other person can't see me or hear me

    I have a logitech USB port web cam connected screw. When you use Skype I hear and see the other person, but they do not see me or hear me. I work with an old Dell laptop.

    I'm not savvy in computer science. I guess I don't know how to set up sound for Skype Visual/sound

    Hi Ana,

    Check if the drivers for the webcam installed.

    Visit the link to check if the webcam is installed correctly.

    How can I check that my webcam works in the Office of Skype for Windows?

    If the webcam is not installed properly, you may need to download drivers for the webcam on the Dell site or contact them if you can't find the drivers.

    Dell support

    Answer if you need help with Windows, and we will be happy to help you.

  • How reduce the Win7 boot partition, then move the other partitions left in newly free space?

    Summary: How can I shrink/move partitions on my HDD 650 GB physical so that they reside in the first 500 GB of that drive?

    I have a newly purchased HP dm4-2070us laptop with Win 7 Home Premium (HP OEM) installed on the hard disk of 640 GB.  This hard drive is slow, so I would like to replace it with a 500 GB Seagate Momentus XT.

    In order to be able to clone all the partitions of the 640 GB drive for the smallest 500 GB replacement drive, I need to shrink the partition C: (main window), then move the partitions remaining 'left' ending up with all partitions in the first 500 GB of the disk so I can then copy this image to the new drive of 500 GB.

    I already have the software to clone the partitions of the 640 GB drive for the 500 GB drive.

    My concerns:

    (1) the administration tool Win7 disc printing should it allows me to shrink the C: boot partition, but I don't know if that can damage anything.

    (2) move the SYSTEM partition, or the partition RECOVERY left the impression that he could render the system unbootable.

    Here is a screencap of my current scores in the Win7 disk management tool:

    See this page

    http://h30434.www3.HP.com/T5/other-notebook-PC-questions/how-to-REPARTITION-HDD-of-HP-notebook-with-pre-loaded-Windows-7/m-p/742019

  • How to start a task when the other ends

    I want to run multiple scripts in the order (in Windows 7 Professional) and each have a tenure when the previous one ends. Is there a way to tell the Scheduler to do this? There are a variety of different types of (Korn Shell scripts running under Cygwin, R, BACK lot), and each of them produces results that are used in the following script. Different types of scripts, I don't think I can combine them into a single script.

    I do this every night, to develop a weather-based forecast for a hands-on experience. There are a lot of calculation and a time limited, and I do also simplified as possible, so I can't just schedule the scripts independently, separated far enough out so that they would never overlap. I couldn't get Cron to work in Cygwin, so I'm using the Windows Task Scheduler.  So far I can get all one script to run at any time I want, I just can't understand how to link the start one at the end of another.

    You can put several actions in any task to Task Scheduler.  You will use the trigger 'on an event"for what you need.

    The best advice on TS is Task Scheduler Overview - MSTechNet.

  • I installed creative cloud including cc in lightroom and photoshop cc, but get a ' 87 error: the parameter is incorrect "when I start one or the other.

    This error condition appears when you start these applications.  In addition, lightroom cc can't seem to handle the conversion of my lightroom catalog 5.

    Hi rich,

    Please see the links below:

    LoadLibrary failed with error 87: the parameter is incorrect (PSSC6-64, Win8.1x64, ATI driver)

    WIN8.1 and LoadLibrary failed with error 87: the p... - Logitech Forums

    Kind regards

    Sheena

  • When a program is on the other hand is cut

    I use a windows 8 ASUS and whenever I turn a program (or sites) it should put the rest of the programs, muted what has happened since I got my laptop and I was quite embarrassed by it. I tried to adjust my communications "doing nothing", but it is always mute a program after that either is present. I also checked my drivers and tried to uninstall and reinstall, but continues to be the same question.

    Apps are designed to work as applications on your mobile phone.  With the exception of readers of music like Pandora or Spottify apps cannot continue to play music if you're away from the app.

    If you want to play the audio in the background, using an application that is designed for him (like Spottify or the music app), or get him out of the Office (which works exactly as Windows has always on the desktop).

  • RDP vs PCOIP. When to use one over the other?

    I think we'll run into problems of latency coming on WAN. That being said, I have heard PCOIP performance is not good over the WAN?  Why is better RDP over a WAN link?

    The answer to that is a bit tricky...

    The quick answer is that PCoIP is a hitter more than RDP, due to improvements in PCoIP to improve multimedia performance (and unfortunately), but takes a little more bandwidth than an equivalent RDP connection.

    That being said, PCoIP remains most likely your best choice unless you have a real bandwidth restriction. In addition, some devices will NOT connect via PCoIP and will not allow a RDP connection (the client in order for the iPad comes to mind). However, there are exceptions, even to - Wyse allowing an iDevice to client that will connect to view using RDP if you want - but it's not free.

    I've set up several clients with external access using PCoIP and personally, I have not had any problems - PCoIP is good enough, adjusting it according to the available bandwidth, but you will not really know until you try.

    The good news is that it is very easy to change the settings of PCoIP/RDP - the console administrator display, you can specify the Protocol by default and even decide if the users can change it or not. Also the clients, you can allow to change between RDP and PCoIP if they experience performance problems.

    So my final answer is just give it a try and adjust if necessary.

Maybe you are looking for

  • drive external hard crash panic kernel freeze and reboot

    Hi, I write because I just had a problem with my external hard drive. I have connected to my macbook pro to my external drive (raid 2 disc 0, 3 to, usb 3.0, western Digital, it appears as if it were 1 disk 3.5 "). I used this drive yesterday and seve

  • Satellite 855D-S5120 - wouldn't boot efi file on the HARD drive

    I had no problem to boot from a usb port or a live cd in grub or gummiboot, but I was not able to do the same with the hard drive. The NVRAM settings are not persistent. I was able to set a uefi shell using the two Jean efibootmgr or significant, but

  • Satellite M60-166: care of the defective AC adapter - I need to replace it?

    I have a portable Satellite M60-166, which is powered by the PA1750-09 power adapter.The end that plugs into the laptop is a bit faulty as it reload only in certain positions.I can't, unfortunately, accompanied. Replaces the ENTIRE BLOCK the only pos

  • HP Envy 700-311: graphics card

    Quick Queistion, what graphics card should I buy that can fit in my pc and what is recommended I should use for this pc for games. I found some online, but I'm not sure if they fit into the pc and/or need any additional power ports, and another quest

  • HP Compaq s 2230: HP 2230 s BIOS password

    Hello I have a s 2230 HP Compaq My problem is that it has a BIOS password. because I replaced the hard drive I have now a notebook with nothing except a bios password so. LARGE. Please can someone help me n/p = FU312EA #UUZ