Values - reports and graphs that are separated by a colon

A checkbox element data is stored in a column, separated by semicolons.
When users try to use the function Builder to draw is a group not as we had hoped.

For example, the column contains the following lines:
A
A: B
C
C

We want the sum of the distinct values. For example
A = 2
B = 2
C = 3

Instead, we get:
A = 1
A: B = 1
C = 2

How can achieve us?
Nan

Hello

Checkbox selections (and multiselect list Selections as well) are, as you say, stored as strings separated by a colon. It is great for data storage, but as you saw, it is not particularly good for display to the user selections. You would need to "explode" the strings in real values. How to do this depend on the output you need.

For example, take the string 'A' for example, if you need only to know the amount that each represent, you could do in your SQL statement:

SELECT ..
 CASE WHEN ':' || XXXX || ':' LIKE '%:A:%' THEN 2 ELSE 0 END +
 CASE WHEN ':' || XXXX || ':' LIKE '%:B:%' THEN 2 ELSE 0 END +
 CASE WHEN ':' || XXXX || ':' LIKE '%:C:%' THEN 3 ELSE 0 END ABC_SUM
FROM ...

(where XXXX is the column that contains the string)

But, if you see A, B and C in the report itself, you might be better off if the string into three columns:

SELECT ..
 CASE WHEN ':' || XXXX || ':' LIKE '%:A:%' THEN 'A' ELSE NULL END ITEM_A,
 CASE WHEN ':' || XXXX || ':' LIKE '%:B:%' THEN 'B' ELSE NULL END ITEM_B,
 CASE WHEN ':' || XXXX || ':' LIKE '%:C:%' THEN 'C' ELSE NULL END ITEM_C,
 CASE WHEN ':' || XXXX || ':' LIKE '%:A:%' THEN 2 ELSE 0 END +
 CASE WHEN ':' || XXXX || ':' LIKE '%:B:%' THEN 2 ELSE 0 END +
 CASE WHEN ':' || XXXX || ':' LIKE '%:C:%' THEN 3 ELSE 0 END ABC_SUM
FROM ...

If, however, values relate to records in other tables (for example, the user has selected the EMPNO - which is stored in the string - values but you want to display the actual names used), then you'd probably have to join your original SQL to the second table to display values and/or allow the user to filter by value. But it would be more complicated and can mean that you end up with more than one row for each type of master record.

Andy

Tags: Database

Similar Questions

  • How to change the number of values in the hour that are restricted.

    Hello

    May I know how to change the number of values in the hour that are restricted.

    In fact, we have improved of obiee in obiee 11g 10g. Data base is the same for Both.In 10 g the prompt value is limited to show only 35 records per page. As we passed it shows only 35 Records in 11g also. How can I change this limit to 11g.

    Please suggest me! Its urgent!

    Thanks and greetings

    Navnitha

    Hello

    In the advance tab we have the XML of the upgraded report, copy it into a Notepad and try to find the line beginning as below

    In 10g, we have something like below, simply remove the choicesPerPage = '35' from 11 g OBIEE XML report

    Thank you

    RAM

  • How to correct text and images that are somehow outside the area of cardboard?

    This is the second document that my layout has mysteriously been presented outside the editing table. I saved this document yesterday and everything was fine. Today, there is a connection of several pages text box link, but on 4 pages my text and images have disappeared from the actual page and the table surrounding mount, but it shows the link text box later in the grey area. The last time I had to delete and re-create the pages, but don't have the time. I tried selecting all and using the arrow key to move everything, but he mistakes "this value would cause one or more objects to leave the editing table. I also tried selecting all and downward revision to 10% to bring it to the page or the editing table, but the same error. Any other suggestions? Screenshot below.

    It's a really long shot, but it would be interesting to .idml export and opening that. (see delete minor corruption by exporting)

    And Daniel is right - there is something is wrong with this file and it seriousl get better.

  • Delete all groups and layers that are turned off, even if they are locked

    Hello

    I need help with a script that will do the following:

    Delete all groups (including the layers inside) and layers so they are not visible - with the following requirements

    a. even if the group or layer is locked

    (b) even if the layers within the group are locked

    c. same layers within the group are visible, although the parent group is off

    Then... the required logic would be

    Is it group or layer turns off? Yes, then delete all independently of any other thing, OTHERWISE move on to the next layer/group

    Basically, I have a lot of groups and layers here and I want to analyze the layers to leave just the layers that are visible in the final document. Visible merge or flatten the will does not work as I want to keep visible and visible layers. Layers remove hidden does not work. And file/scripts/deleting empty layers does not work because the layers are not empty. They are simply not necessary.

    In collaboration with CS6.

    Thank you

    The other is round, but this should unlock all layers, after that delete hidden layers should work.

    // unlock all layers;
    // based on code to link layer masks by paul riggott;
    // 2014, use it at your own risk;
    #target "photoshop-70.032"
    app.bringToFront();
    if(app.documents.length != 0) {
      unlockLayers();
      };
    ////// unlock layers //////
    function unlockLayers(){
      var ref = new ActionReference();
      ref.putEnumerated( charIDToTypeID('Dcmn'), charIDToTypeID('Ordn'), charIDToTypeID('Trgt') );
      var count = executeActionGet(ref).getInteger(charIDToTypeID('NmbL')) +1;
      var Names=[];
      try{
      activeDocument.backgroundLayer;
      var i = 0; }catch(e){ var i = 1; };
      for(i;i		   
  • Open the instant report with vm that are on and off appear.

    All is it possible to create?

    Thank you.

    last column contempt did not appear to see.

  • How to stop rounding R2 value numbers and graph equation?

    After inputing the values in a table, and make a scatterplot graph-, I click on 'series' adds a linear trendline and check the boxes for 'show R²' and 'equation '. The two appear on my chart, but they always seem to be rounded. My equation is always "y = x" and my ratio is always 1. Even if my partner will get the same results in Excel and get an equation like ' y = 0.9888 x + 0.00044. Is there a way to fix this? I'm doing something wrong?

    Thank you!

    Here is an example I did.  Perhaps you could share your screenshot of dan for the chart:

  • Recover folders and content that are gone

    All of a sudden the subfolders in my Inbox for one of my accounts have disappeared, even though I see them again (and their content) when I accessed this account through outlook and webmail provider. I want to see (and their contenets) in the left panel of thunderbird, once again.

    Right-click on the account in the left pane and choose Subscribe. The records are written?

  • How do I find my old Microsoft Account for my photos and videos that are very important to me?

    My Microsoft account has been * address email is removed from the privacy *. I tried to sign into this account to have access to my photos, videos and important information. My computer screen showed "this account does not exist" I think that my account has been deleted because I haven't used since more than a year. However, I can connect to my facebook and other social networks using this email accounts. All I ask you help on how to reactivate my old e-mail account because I have important data. Please help me!

    Windows Live ID support:
    http://Windows.Microsoft.com/en-us/Windows-Live/ID-support

  • my screen is too far left and I cannot use the contacts and things that are along there, what can I do?

    That's about all I can tell you, I click on channel ' lt points up and down on the left of my page commandes.sur is not centered, and there is a black bar on the side rilght.

    Arlene

    Using a laptop or desktop?

    Try to turn your monitor off and disconnect the power to it and then turn it back on. He do on all or only some programs that you use?

  • How to get him Active Directory users and computers that are running on 64-bit Windows 7

    I have windows 7 ultimate 64 bit installation.  I need to download to get him Active Directory users and computers users and computers to manage the windows 2003 server environment.  Used to use AdminToolpack2003, but that does not work on my version of Windows 7.

    Hi Trickymonk,

    You can download it from the link: for Windows 7 Remote Server Administration Tools: http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=7d2f6ad7-656b-4313-a005-4e344e43997d

    For a similar question, see the link: http://social.technet.microsoft.com/Forums/en-US/w7itproappcompat/thread/a0b24e31-0290-415b-8448-c367bde3e2c9/

    Thank you, and in what concerns:
    Swathi B - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Concatenate the date and time that are stored in two different date columns

    Hello

    I have to select date two columns from two different tables a date and another over time.

    I want to concatenate these two columns and format the result form dd/mm/yyyy hh24

    But I get error invalid number

    For example

    create table as datetime

    (select to_date (' 21/01/2014 ',' dd/mm/yyyy') as dt, to_date('08:00','hh24:mi') like double MC

    )

    Select to_char(dt||) TM, "dd/mm/yyyy hh24") of datetime

    I use oracle 10 g

    Help, please.

    Hello

    Roger wrote:

    ... If you need to take the party date to a date column and the time of anonther part, then you must first convert them to a string, concatenate them and convert them to date.

    You don't need to do this.  What you have described is a way to do it, but this isn't the only way.

    If d1 and d2 are the two DATEs, you can get year, month and day of d1 combined with hours, minutes, and seconds from d2 liike this:

    TRUNC (d1) and (d2 - TRUNC (d2))

    Nesting TO_DATE and TO_CHAR in Oracle, is almost never the best way to do anything.  Oracle provides many functions (for example, TRUNC) to manipulate dates, but also of DATE arithmetic.

  • I went from very old version; new version has a screen (from, subject, to and icons that are redundant at the top). How to eliminate?

    There is a space above the pane below the folders which is gray and includes to, and subject to the information as well as several icons and message. All this is already displayed elsewhere above this new view. Is it possible to eliminate this view and give more space to the email? Thank you.

    .......

  • I want to print a complete list of the folders and files that are on C:, but do NOT want to use < PrntScrn >. Is there another way? (Windows XP home edition)

    Print out c: folders and files.

    Such a command would be:

    dir d:/press s > %userprofile%\Desktop\directory.txt

    who will place the file on your desktop.

    But you'll probably find Directory Karen printer is easier and more convenient to use.

  • When I reboot after installation of service pack 2, the message comes out and says that updates are not configured correctly, returning from changes

    When I reboot after installation of service pack 2 on a computer laptop with Windows Vista Home Premium 32-bit Dell XPS M1530, the message comes out and says that updates are not configured correctly, returning from changes. Do not turn off your computer. I installed update readiness tool, but it does still every time. I tried to disable the antivirus software prior to installation.

    Hello
     
     
     
    1. how you try to install Service Pack 2?
    2. are you able to boot to the desktop?
     
     
    Method:
    Step 1: If you are able to start the computer in normal mode, then try a clean boot.

    To help resolve the error and other messages, you can start Windows Vista or Windows 7 by using a minimal set of drivers and startup programs. This type of boot is known as a "clean boot". A clean boot helps eliminate software conflicts.

    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7

    http://support.Microsoft.com/kb/929135
    Please note: after troubleshooting, start the computer in normal mode.

     
    Step 2: Try to install Service Pack 2 manually.
     
    How to obtain the latest Windows Vista service pack

     
     
    If you are unable to start the computer, then you can follow this link to start the computer in safe mode.
    Start your computer in safe mode
    http://Windows.Microsoft.com/en-us/Windows-Vista/start-your-computer-in-safe-mode
     
     
     
     
    If you are unable to install Service pack 2, you can consult this article.
    Error: Failed to setup of the Windows updates. Restoration of the changes. Do not turn off your computer when you try to install Windows updates
    http://support.Microsoft.com/kb/949358
    Please note: method 2 refers about upgrade on site.  Perform a repair installation/place will not damage files and applications that are currently installed on your computer.   However, I suggest you to back up all important data on the computer before you perform the upgrade on the spot.
     
     
     
     
     
     
     
  • Insert the figures and graphs?

    Hi, I'm pretty new to InDesign and use it to create a scientific document. I have a lot of tables, figures and graphs that should be inserted from various sources - documents PowerPoint, Excel and Word and JPEG. Whenever I have put a picture into my document, any text in the figure becomes blurry and unreadable. How can I fix these images so that they are clear in the document?

    High quality will not work unless your images ARE high quality. Products of Microsoft support almost none of the professional standards of the industry of graphic art files, and they often export files to JPEG of the screen resolution, even if they 'think' graphics internally as online art independent of resolution. Printing of the document is a more reliable indicator of the image quality that the viewing on screen, since Indesign likes to show a "Quick Preview" to keep the screen redraws faster.

    If the images print beautifully of your Microsoft product but look ugly print from Indesign, try saving the graph printing in the Microsoft program to an Acrobat PDF file and place it in Indesign, which can maintain the line drawings. And a more reliable method (but more intensive work) would be to create your graphics in a professional package like Illustrator or Photoshop (you can copy data from Excel based on graphic Illustrator, for example, which can be cryptic, but are quite powerful), in which case you can probably save in a high quality format that can be placed directly in Indesign.

Maybe you are looking for

  • What to do with my IPHONE?

    Hi all.. did anyone here know what is the problem with the phone when you turn ON the apple LOGO appears and all of a sudden it goes off, but there is always a LOW light on the iphone? I have it bring on the repair shop?

  • Satellite A350 - FN keys not working do not after Windows 7 installation

    Sorry for my bad English, I'm Portugal forum and I did not have very good English. 1 I have installed Windows 7 on my pc, installed the 7 drivers and FN had to give. However, I had another problem and had to format the pc again, now just reinstall an

  • Cannot use the default monitor

    I have a Mac Pro 2009, 2.66 Ghz quad-core with 32 GB of RAM. I installed a graphics card from Nvidia GTX 960 with 4 GB of RAM after you download the latest drivers from the site Web of Nvidia and them preferring rather than the default drivers El Cap

  • Administrator account does not load

    HelloI had problems with IE 8 and wanted to uninstall/reinstall, but admin password did not work with the pop-up window when logged in as a normal user.  I went to the admin profile users but not able to connect and received the following message. Se

  • spelling Pop up official language not available, how do I change setting to English

    Spell chech pop-up language States is not available, I type in English, how can I check and change to English