How to create measures of County on columns of flag in FACT with a CONDITON

I have about 6 flag columns in my table of facts, and I would like to create measures in my report with County as aggregation on these flag columns in a group by on a condition.
I am able to do this very easily with SQL query but am really stuck with on how to achieve this in OBIEE.


Each of my measure should be to make a count aggreagation in the column of flag with a condition such as true/false flag.
For example:
Measure1 - Select (INV_ID) count of payments_f of the pavilion where 1 = 'TRUE' and Flag2 = 'FALSE' GROUP_BY (COLUMN1)
Date2 - Select (INV_ID) count of payments_f of the pavilion where 2 = 'TRUE' and Indicateur3 = 'FALSE' GROUP_BY (COLUMN1)
-----
-----
similar conditions for all columns of flag.

I tried to write the where condition in the tab content of the logical table, but unfortunately it only on the level of the table - which was not very helpful for me

I'm really grateful if someone can help me on how to do this.

Thanks in advance

You must create a new existing logical column in your logical table. Then you must set the physical mapping:
BOX WHEN FLAG1 = 'TRUE' AND FLAG2 = 'FALSE' THEN ENDS UP 1 0 OTHERWISE.
Defined sum aggregation rule.

Kind regards
Stijn

Tags: Business Intelligence

Similar Questions

  • How to create the presentation for the columns variable and use it in the story?

    Hi all

    Someone knows how to create variable presentation for a column (that is, I need to create it in edit section formula itself). And then, I should use it in the Narrative section to display the value of this column. Is this possible? Or do I need to use any other variable for this requirement? If Yes please let me know, how to create it? This is a very urgent requirement.

    Thanks in advance
    Stephanie

    Hello
    You can have any number of columns in the narrative view, he will accept... Just mention the numbers of the columns in the view body narrative...

    check if useful/correct...

    Thank you
    prassu

  • How to create the new catalog, categories and products within the ACC with the CCI

    Hi all

    I'm new to atg, I just want to create a new catalog, categories and products within the ACC with a BCC (publishing server) and then I have to browse through my jsp application.for added this requirement what configuration I need to do with VAC. Please help me on this ASAP.

    Kind regards
    Jyothi.MJ

    There is nothing you need to do for this.
    Go to ACC and create a catalog.

    In the JSP using droplets CategoryLookUp get the properties of the category and its products of the child to display.

    Peace
    Shaik

  • How to create the Table using the column Drag and Drop feature

    Hello:
    I'm new to Data Modeler tool Oracle SQL dev and would like to know if there is a way to create a new table by reusing existing columns or groups of columns. The idea is to maintain consistency and save time of table design. If the columns created previously can be reused and require, drag and drop column in the right pane, then only new columns must be created manually.

    Any thoughts on this will be appreciated.

    Thank you!

    Yes - just change the name of the model table in the script (t_name = "table_template") then save this new transformation for later use.

    I don't know how to apply only some of the tables. Seems like something you could do to a secondary view level?

    Perhaps someone else on the forum can advise how to change the script to work on a subview only instead of the whole model.

  • How to create the partition on a column in a table on a daily basis

    Hi all
    I wrote a query that does not, I have a column of varchar type, and I want to create the partition of the table on that column based daily interval. but ist is in error...

    my query is...

    create the table user_detail
    (username varchar2 (50))
    The user ID number,
    country varchar2 (25).
    accupation varchar2 (100),
    company varchar2 (100),
    joindate varchar2 (14))
    partition by range (joindate)
    INTERVAL (NUMTOYMINTERVAL (1, 'DAY'))
    (PARTITION newone VALUES LESS THAN (to_date (April 13, 19 ', 'aa-mm-dd')));


    error is:

    Error from the 1 in the command line:
    create the table user_detail
    (username varchar2 (50))
    The user ID number,
    country varchar2 (25).
    accupation varchar2 (100),
    company varchar2 (100),
    joindate varchar2 (14))
    partition by range (joindate)
    INTERVAL (NUMTOYMINTERVAL (1, 'DAY'))
    (PARTITION newone VALUES LESS THAN (to_date (April 13, 19 ', 'aa-mm-dd')))
    Error in the command line: 1 column: 0
    Error report:
    SQL error: ORA-14751: type of invalid data for the partitioning column of a partitioned table interval


    Can I create partition on the varchar data type?

    On ORA11gR1 it works:

    --virtual column
    CREATE TABLE TEST(joindate VARCHAR2(14), part_joindate AS (to_date(joindate,'dd.mm.yyyy'))) partition by range (part_joindate)
    INTERVAL(NUMTOYMINTERVAL(1, 'YEAR'))
    (PARTITION newone VALUES LESS THAN (to_date('2013-04-19', 'yyyy-mm-dd')))
    ;
    
    INSERT INTO TEST(joindate) VALUES('19.04.2013');
    SELECT * FROM TEST;
    
    DROP TABLE TEST;
    --aux column
    CREATE TABLE TEST(joindate VARCHAR2(14), part_joindate AS (to_date(joindate,'dd.mm.yyyy'))) partition by range (part_joindate)
    INTERVAL(NUMTOYMINTERVAL(1, 'YEAR'))
    (PARTITION newone VALUES LESS THAN (to_date('2013-04-19', 'yyyy-mm-dd')))
    ;
    
    INSERT INTO TEST(joindate) VALUES('19.04.2013');
    SELECT * FROM TEST;
    
    DROP TABLE TEST;
    

    Published by: spajdy on April 19, 2013 14:58

  • Actions - how to create measures to "commit the Transform (Enter)

    Hi all

    I'm trying to create an Action that is to get out of the chain of processing 1) free + 2) deselect everything with one button only. However, I can't Action to save an entry for the 'ESC' key or the 'ENTER' key or "Commit Transform (the Tick symbol at top right)".

    Basically I want an Action that only helps me get out of the Warp Mode & clear my selection with a single click. I don't want the action to save any particular transformation because I do that manually.

    Someone knows a way to record either the ESC/ENTER keyboard input?

    If you do not install the Adobe Scriptlistener plugin that allows you to save a few brush strokes tools in new versions of Photoshop actions, however these action won't work well on documents that are exactly the same size and resolution.

    Registration key of keyboard clicks wouldn't be useful without associated location information and even with location information, there are problems related to resolution and size zoom level. Beweent the document action was recorder and docyment, the action is played on and the location of the object to be transformed, in the currebt document, the action takes place.

    It was stressed several times, you can save a same transformation stored in a relative manner and it is interactive and you can insert a free transformation interactive step.  You can then make the transformation as accurate as you want on the document on which the action takes place.  Can he commit obsolete continue the action or you can undo the transformation of a stop the action.  With a stage of interactive processing, there is no problem with the zoom level or size for processing resolution don't is interactivity on the current document the document that the step was recorded is no longer relevant.

  • [ADF, JDev12.1.3] How to create a new record in a table filling one filed with the IP address of the client?

    Hallo,

    I create a stubborn workflow that begins with a create operation on the table where a new record should be added.

    The recording fields must be filled in by the user, but before committing, I have to fill a field of the reocord with the address IP of the PC of the user.

    Could you kindly advice me which are the possible recommended approaches to achieve this?

    Thank you

    Federico

    Hello

    See this post: Blog of Zeeshan Baig: how to get the IP address of the customer in ADF merge request

    You can use a createWithParams operation and to fill in this field.

    Reference: Andrejus Baranovskis Blog: CreateWithParams operation for Oracle ADF 11g BC

    Kind regards

    Ruben.

  • How to create an application to display the 3 windows of each with different time zones as the window?

    Hi, I need to create a windows application using c# that will create three windows that display areas and the current time, the title of the window?

    PS: I use an event handler to update the current time.

    Hello

    To improve assistance to this subject, you can ask your question in the MSDN Forums.

    http://social.msdn.Microsoft.com/forums/en/category/visualcsharp

  • How to create a page "administrator" for the management of web site with muse?

    Hi people from adobe, I am writing because I have a problem and hope you can help me!

    I created a website with muse, but now I have need a page "administrator" for download rapid photos in the Gallery of the site (like CMS) section, can I create with adobe muse or will I achieve a personal PHP page?

    PS I'm sorry for my terrible English and thank you for the help.

    Francesco M.

    You cannot create any dynamic stuff with just muse. You really need to use PHP (or other server languages) and one database.

    Mylenium

  • How to create a complete project on a USB key (for use with another PC)?

    Hello

    I would like to create a comprehensive project on a 128 GB USB key (for use on another PC) key?

    Do I have to use a HARD drive?

    Thank you

    Pol

    Windows 7.

    Pol

    What version of Premiere Elements on your Windows 7 (64 bit alleged)?

    Have you explored creating your project on computer 1, then Menu/files archiving project, and his choice of copy a project.

    Then you transfer the file copied this process to a USB Flash drive and then use the USB

    Lead them to computer 2.

    In computer 2, open the folder copied, right click in the copy of the project file in the copied folder, select open

    With, followed by Adobe Premiere Elements (version number).

    If you check in a project with Menu movie, then go over and look at the following

    http://atr935.blogspot.com/2014/07/pe12-archiving-projects-with-disc-menus.html

    For any question or need more information on all the above, do not hesitate to ask.

    Thank you.

    RTA

    .

  • How to create links in a project of Muse to an anchor with a button created in Adobe Edge?

    Hi everyone, I created a button with edge animate, but when I import in my project Adobe Muse I can't link to anchors in Muse.

    What is the code?

    Thank you.

    Edge entertainment in an iFrame, which is technically a different page than you have placed the ILO tone on. To get the button to link to an anchor on the homepage, you will need to create a literal link (/ #anchor page.html) as an action on board. Make sure that the target attribute is set to _parent.

    who should do the trick but it won't be a smooth roll as Muse normally between anchor points.

    David

  • Creating INDEX on a BLOB column in a separate tablespace

    Hello


    Our database contains 2 storage spaces :

    -Tablespace DATA : is reserved to hold the data.

    -Tablespace INDX: is reserved to hold the index.


    For some reason, that we must create the indexes on columns of type blob and the pending order are:

    SQL > CREATE INDEX my_index ON DOC_CONTENTS (doc_content) INDEXTYPE IS CTXSYS. CONTEXT;  / / doc_content a blob type.

    SQL> index created

    Now, all indexes are created in the tablespace for DATA that is not good, they should be created in the tablespace INDX (now is empty)

    For this reason, and after a search, I specified the tablespace INDX , which will contain the index, and the used command is:

    SQL > CREATE INDEX my_index ON DOC_CONTENTS (doc_content) INDEXTYPE IS CTXSYS. CONTEXT TABLESPACE INDX;

    *

    ERROR on line 1:

    ORA-29850: invalid option for creating domain index

    NB: also, when I try to use the same command with varchar column, it works.

    SQL > CREATE INDEX my_index ON DOC_CONTENTS (doc_name) TABLESPACE INDX;  / / doc_content a type VARCHAR2.

    SQL> index created


    Do you have an idea on how to create indexes on a blob column in a different tablespace?

    This question has nothing to do with the Oracle objects, but is related to Oracle Text, then perhaps that some moderator moves text objects.

    To specify a storage space for a ctxsys.context Oracle Text index domain index tables, you must create a storage preference, specify storage spaces in attributes of this preference, then use this preference in settings of creating index.  Please see the example below which shows first create domain index tables in the default users tablespace, then the creation of the field tables to be indexed in the example tablespace.

    Scott@orcl_11gR2 >-test environment:

    Scott@orcl_11gR2 > doc_contents CREATE TABLE

    2 (doc_content BLOB)

    3.

    Table created.

    Scott@orcl_11gR2 > INSERT INTO doc_contents VALUES

    2 (UTL_RAW. CAST_TO_RAW ("test data"))

    3.

    1 line of creation.

    Scott@orcl_11gR2 >-create domain index tables in default users tablespace:

    Scott@orcl_11gR2 > my_index CREATE INDEX

    2 doc_contents (doc_content)

    3 INDEXTYPE IS CTXSYS. FRAMEWORK

    4.

    The index is created.

    Scott@orcl_11gR2 > SELECT index_name, nom_tablespace

    2 FROM user_indexes

    3. WHERE index-name LIKE '% MY_INDEX % '.

    4.

    INDEX_NAME TABLESPACE_NAME

    ------------------------------ ------------------------------

    MY_INDEX

    DR.$ MY_INDEX$ X USERS

    2 selected lines.

    Scott@orcl_11gR2 > SELECT table_name, nom_tablespace

    2 FROM user_tables

    3 WHERE table_name LIKE '% MY_INDEX % '.

    4.

    TABLE_NAME, TABLESPACE_NAME

    ------------------------------ ------------------------------

    DR. MY_INDEX$ I HAVE USERS

    USERS R DR$ MY_INDEX$

    DR.$ MY_INDEX$ N

    DR.$ MY_INDEX$ K

    4 selected lines.

    Scott@orcl_11gR2 >-creating the tables index field in example of tablespace:

    Scott@orcl_11gR2 > my_index DROP INDEX

    2.

    The index is deleted.

    Scott@orcl_11gR2 > start

    2 ctx_ddl.create_preference ("mystore', 'BASIC_STORAGE'");

    3 ctx_ddl.set_attribute ("mystore', 'I_TABLE_CLAUSE',")

    4 "tablespace storage example (original 1 K) ');

    5 ctx_ddl.set_attribute ("mystore', 'K_TABLE_CLAUSE',")

    6 "tablespace storage example (original 1 K) ');

    7 ctx_ddl.set_attribute ("mystore', 'R_TABLE_CLAUSE',")

    8 ' lob tablespace storage example (original 1 K)

    9 (data) store as (storage off in row cache)');

    10 ctx_ddl.set_attribute ("mystore', 'N_TABLE_CLAUSE',")

    11 "tablespace storage example (original 1 K) ');

    12 ctx_ddl.set_attribute ("mystore', 'I_INDEX_CLAUSE',")

    13 ' example of tablespace storage (initial 1 K) compress 2 ');

    14 ctx_ddl.set_attribute ("mystore', 'P_TABLE_CLAUSE',")

    15 "tablespace storage example (original 1 K) ');

    16 ctx_ddl.set_attribute ("mystore', 'S_TABLE_CLAUSE',")

    17 "tablespace storage example (original 1 K) ');

    18 end;

    19.

    PL/SQL procedure successfully completed.

    Scott@orcl_11gR2 > my_index CREATE INDEX

    2 doc_contents (doc_content)

    3 INDEXTYPE IS CTXSYS. FRAMEWORK

    4 PARAMETERS ('STORAGE mystore')

    5.

    The index is created.

    Scott@orcl_11gR2 > SELECT index_name, nom_tablespace

    2 FROM user_indexes

    3. WHERE index-name LIKE '% MY_INDEX % '.

    4.

    INDEX_NAME TABLESPACE_NAME

    ------------------------------ ------------------------------

    MY_INDEX

    DR.$ MY_INDEX$ X FOR EXAMPLE

    2 selected lines.

    Scott@orcl_11gR2 > SELECT table_name, nom_tablespace

    2 FROM user_tables

    3 WHERE table_name LIKE '% MY_INDEX % '.

    4.

    TABLE_NAME, TABLESPACE_NAME

    ------------------------------ ------------------------------

    DR. MY_INDEX$ I EXAMPLE

    DR.$ MY_INDEX$ R EXAMPLE

    DR.$ MY_INDEX$ N

    DR.$ MY_INDEX$ K

    4 selected lines.

    Post edited by: BarbaraBoehmer (corrected for error due to the already existing preference)

  • How to create a startup win xp boot cd

    I have an amd 400-1200 mhz with 512 MB mem and a 15 gig hd.  Also a cdrom and dvd player, also a 3 1/2 diskettes.  I have windows xp home with serv pk 1 & 2 ed..  Run all diagnostic tests, but it does not start my hd or the Dominican Republic to cd.  I tried the Dr. disck did to install and they let me in the back and cannot start from the cd win xp disk.  How to create a bootable cd?  I have a second machine with win xp & sp3 with a cd - rw dr.

    Hi regcaim,

    Follow the steps in the article.

    How to create a boot disk for an NTFS or FAT partition in Windows XP

    http://support.Microsoft.com/kb/305595

    How to get the installation discs for Windows XP for installation of boot floppies

    http://support.Microsoft.com/kb/310994

    For reference: How to create a Bootable CD-ROM

  • How to create a vector path in real form?

    Hello friends,

    I am new to Illustrator and need your help or advice.

    I have to design a label for glass bottles that have a pre-specified label place. The bottle has something like a border in which I want to put the label.

    Can you please advice me how to create a path of access/label that will be compatible with the place / label of the bottle?

    I enclose pictures of bottles as well.

    product_1120.jpg

    product_1123.jpg

    Thank you in advance!

    Error - Put a piece of paper on the bottle and trace the shape.  Scan your tracing in and use it as a template to create a form of symmetrical label.  Print and cut out the shape and test it on the bottle. Repeat until you are satisfied with the result.

  • How to create a blur with CS6 effect?

    Hello, the blur effect on the CS5.5 version has been proposed. CS6 it no longer.

    How to create an exit or entry of blur on a video with CS6?

    Thank you

    Hello!

    Thank you! It's perfect!

    Good bye

Maybe you are looking for