Can we do Union between 2 fields in OBIEE formula column?

Hello gurus,

Can we do the union between 2 fields and calculate a column that in the criteria of the obiee report?

Vieira says:
Hey David,

I m using the same method to evaulte year and MOnthname

Year: YEAR (CURRENT_DATE)

Name of the month: MONTHNAME (TIMESTAMPADD (SQL_TSI_MONTH-1, CURRENT_DATE))

but I want both values in unique colmun...
Because I have to create a report that runs to the year and last month both at the same time.
so once I have it calculate such doin union between YEAR and MONTHNAME column, I'll use the PivotTable to create this report...
So basically I want a column that has the CURRENT YEAR, LAST MONTHNAME as list of values. and that's the reason why I want the union in the formula in the column...

Let me know if you need more information...

OK, got it.

So follow these steps:

(1) in your first report, put your attribute columns and measure your column a dummy column.

(2) place a filter on the column "equal to / in".

MONTH = MONTH (table.date) (TIMESTAMPADD (SQL_TSI_MONTH-1, CURRENT_DATE))

(3) in the fx of the dummy column, delete content and enter 'Previous month' and name the 'Date Range' column (or whatever you want).

This will generate a report where the measure is for the previous month.

(4) in your second report, put the same attribute columns and measure your column a dummy column.

(5) place a filter on the column "equal to / in".

Year (table.date) = YEAR (CURRENT_DATE)

(6) in the fx of the dummy column, delete the content and enter "current Year-to-Date" and name the 'Date Range' column (or what you want).

This will generate a report where the measure is for the current year.

(7) combine queries into a UNION.

The synthesis report will have the values "previous month" and "current year-to-date" in the same column you want.

(8) in your PivotTable, put the attribute columns in the Section of lines, as in measures Section and the 'Date Range' column in the columns Section.

That should do it.

Tags: Business Intelligence

Similar Questions

  • How do the areas of adjustment between the fields and lines in the apex?

    (Request Express 4.2.5.00.08)


    Hello world

    I am beginner in the apex...  When I created the form page, I found different spaces between the fields and lines... But I can't adjust it...?


    Help me please


    PIC

    http://i.imgur.com/ZSFlmCi.PNG


    Demo https://apex.oracle.com/pls/apex/f?p=50581:3:4430339212420:

    PEAK http://i.imgur.com/T14TE3n.png

    Hello

    Solve this problem...

    In the section "Attributes of the HTML Form element" for item writing: style = "" margin: 0px 1px 0px; ""

    Thanks Amr

  • No gap between the fields (vertical)

    OOD daily;

    As I am new way to this, the last few questions may have looked like simple...

    Some sort, I designed a form using LiveCycle Designer and I'm going to one of the questions are lining up the fields, so there is no gap. I think (but maybe not) to all the options and I still have to find the format I want. So the question is;

    How works a lineup (vertical) so there is no gap between the fields?

    Thank you all;

    Concerning

    Chomp

    It depends on if you already have the objects on the form.

    If you have, you can "lasso" objects and select the page layout tool to align the objects horizontally (left or right). However, I know a way to align objects vertically with no gaps. You can use the arrow keys and your visually acuity to align objects with no vertical gap or you can use property sheet for page layout object to define the coordinates X and Y of each object.

    If you're simply asked the form, you can use Edit > Multiple copy on the toolbar. Place the first object on the form, highlight or select the object and go to Edition > copy Multiple to replicate the object vertically (vertical spacing set to 'touch').

    Steve

  • space between the fields in a page

    Hello

    I have about 5 fields to a custom page, one under the other. But I can't understand how to create the space between these fields vertically?

    Any suggestions are appreciated.

    Thank you

    create a new element and set its type as spacer

    hope this helps

    Prasanna-

  • I can't synchronize notes between my apple devices

    Hi guys,.

    I can't synchronize notes between my apple devices.

    I have the same account iCloud for iMac, MacBook, iPad and iPhone.

    Since a month ago, they stopped sync.

    I try to reset the iPhone and iPad, I tried to disconnect the devices of the iCloud, but when I turn it back on their

    everything is in the same way, the notes on my iMac is not other devices.

    If I make a new note, they sync between iPad, iPhone and MacBook, but not with my iMac

    I'm really very confusing in this area and do not know what to do

    Help, please

    Thank you

    FP

    First of all, that the notes in the iCloud category will synchronize with iCloud. If you have any comments on my Mac, or synchronized with another network service, that they don't synchronize.

    If note that synchronization are not, please open the iCloud pane in system preferences. Make sure that you are connected to iCloud with the good Apple ID and the Notes selected. Uncheck and check again.

    If notes still don't sync, ask for additional instructions.

  • How can I share network between the computer laptop windows 7 into a window of 8 tab?

    How can I share network between the computer laptop windows 7 into a window of 8 tab?

    Hi HollyMcColl,

    Thanks for posting your query in the Microsoft Community Forums.

    I understand from the description of the issue you are trying to share the computer network between Windows 7 and Windows 8. I will certainly help you in this regard.

    I appreciate if you could help me with more information.

    -Using Windows 8 Surface RT?

    Note: You can create a Windows RT PC home group, but you can join one.

    I suggest you to consult the help articles and check if it helps.

    A Wi - Fi & networking

    http://Windows.Microsoft.com/en-in/Windows-8/HomeGroup#1TC=T1

    Share files on a home network or your Surface

    http://www.Microsoft.com/surface/en-us/support/storage-files-and-folders/share-files-on-a-home-network?LC=1033

    Share files and folders on a network or shared PC

    http://Windows.Microsoft.com/en-us/Windows-8/share-files-folders

    Get back to us if you need further assistance on Windows 8. We will be happy to help you.

  • On the forms send us and receive in return, data in the form of fields will be not print.  We can view the data, but the fields to print Virgin.  How can I fix it?

    On the forms send us and receive in return, data in the form of fields will be not print.  We can view the data, but the fields to print Virgin.  How can I fix it?

    OK, it's different. These text boxes are (at least engineering point of view) not considered form data, they are annotations (or markup). On your print dialogue box, you will see a group of "Comments & Form". Make sure that the first control is set to "Document and annotations:

    After this change, you should see the markup of your impressions.

  • I have 3 domains. A field is a constant date mm/dd/yy. The second field is a digital number (1-120) and can be changed. The third field calculates two fields 1 and 2 in the summation and shown in mm/dd/yy. How do I calculate that in the script?

    How do I calculate that in the script? I have 3 domains. A field is a constant date mm/dd/yy. The second field is a digital number (1-120) and can be changed. The third field calculates two fields 1 and 2 in the summation and shown in mm/dd/yy.

    You searched for ' add days?

    You must write a custom for this JavaScript calculation because you cannot add a number any date. Also the date strings are not just a number, even if we can convert a given date in a number for that date that represents the time form a date date (Epoch). Witn this value, we can achieve them all kinds of date calculations and collect a little information about the date. JavaScirpt uses midnight on January 1, 1970 UTC for starting point or the date of the time. Its value is zero, and every millisecond increases the value of 1. When a date string is converted to the date object JavaScirpt we have access to many properties of the date and can use several methods to extract information or adjust the date object.

    Field 1 is in the format "Date" with a format of "mm/dd/yy".

    Field 2 is in «Number» format with 0 decimal.

    Zone 3 is in the format 'None '. The custom calculation script applies to the formatting.

    The custom for JavaScript calculation area 3:

    var cField1 = this.getField("Field_1").valueAsString;

    var cField2 = this.getField("Field_2").valueAsString;

    Event.Value = "";

    If (cField1! = "" & cField2!) = "") {}

    Console.println (cField1 + "" + cField2);

    calculate that if we as no null data;

    var cDateFormat = "mm/dd/yy";

    convert start date date object.

    Kai var = util.scand (cDateFormat, cField1);

    get the date of the month;

    David var = oDate.getDate ();

    Add field 2 number of days;

    David = Number (nDate) + Number (cField2);

    of being updated for the new date.

    oDate.setDate (nDate);

    Set the field to update formatting;

    Event.Value = util.printd (cDateFormat, letter);

    } / / end of data not null;

  • I can't use the 'sharpness', the field is marked in gray instead of the stronger color when it is possible to use. If someone of you know why and how to fix it?

    I can't use the 'sharpness', the field is marked in gray instead of the stronger color when it is possible to use. If someone of you know why and how to fix it?

    Hi Eva,

    Could you please for the preferences of Photoshop, then tab Perfomance.

    In here please see, if the option "Use Graphics Processor" must be verified.

    These filters are largely dependent on the graphics card.

    Respect,

    Tanuj

  • Can we do vMotion between two datacenter if VM is poweredoff

    Dear team,

    Can we do vMotion between two data center (esxi5, x)

    Can we do SVMotion between two data center (esxi5, x)

    Note: it is not a physical data center, it is a virtual data center

    can we do vMotion between clusters (esxi5.x)

    can we do SVMotion between clusters (esxi5.x)

    concerning

    Mr. VMware

    Can we do vMotion between two data center (esxi5, x)

    Yes.

    Can we do SVMotion between two data center (esxi5, x)

    Yes.

    can we do vMotion between clusters (esxi5.x)

    Yes.

    can we do SVMotion between clusters (esxi5.x)

    Yes.

  • can we do vMotion between two data center

    Dear team,

    Can we do vMotion between two data center (esxi5, x)

    Can we do SVMotion between two data center (esxi5, x)

    Note: it is not a physical data center, it is a virtual data center

    can we do vMotion between clusters (esxi5.x)

    can we do SVMotion between clusters (esxi5.x)

    concerning

    Mr. VMware

    Can we do vMotion between two data center (esxi5, x)

    NO, you can't.

    Can we do SVMotion between two data center (esxi5, x)

    Yes, as long as data warehouses are shared.

    can we do vMotion between clusters (esxi5.x)

    Yes, as they perform the same CPU families.

    can we do SVMotion between clusters (esxi5.x)

    Yes, as long as data warehouses are shared.

  • How can I automatically populate the date field after only one "digitally signs" a .pdf form? Help, please! Thank you!

    How can I automatically populate the date field after only one "digitally signs" a .pdf form? Here's a sample:

    _ Digital Signature___ (signs), Date (Auto-remplit)

    Under field properties of the signature on the signature tab, you can use a custom script, like this:

    this.getField("Date").value = util.printd ("mm/dd/yyyy", new Date());

    You know, however, that a digital signature always displays the date and time, it has been applied?

  • can I add a multiple text fields in a label?

    Can I add a multiple text fields in a label?

    If you use the FormsCentral Designer, you can add less than with the tag additional text fields and give them all the labels.

    About the future of the forms with Acrobat, you always have the possibility of creation of the presentation of the form in InDesign, Word, etc., by generating a PDF file and adding the fields. This is how it was done since the forms were introduced with Acrobat 3. If you have 11 Acrobat is installed, you can continue to use the application designer FormsCentral.

  • Do not click on in the VM and can not move files between hosts and virtual

    Do not click on in the VM and can not move files between hosts and virtual

    Home - Windows XP x 64 Edition

    Virtual - Windows 2003 Web Edition

    -vmware.log

    ...

    sept 23 14:10:17.875: mks | Setting size 40 pile of thread to 1048576.
    sept 23 14:10:17.875: mks | Adjusting size of 41 of the stack of the thread to 1048576.
    sept 23 14:10:17.890: mks | USBGW: Writing referee op: 13 len:36
    sept 23 14:10:21.718: vcpu-0 | Unified TOOLS loop capacity requested by 'box to tools-MDN; now sending via the TECO
    sept 23 14:10:21.718: vcpu-0 | GuestRpc: Channel 7, toolbox-MDN app reviews.
    sept 23 14:10:21.718: vmx | DnDRegisterRpc: Rpc of DND already set to 1
    sept 23 14:10:21.718: vmx | CopyPasteRegisterRpc: already the value 1
    sept 23 14:10:21.890: vcpu-0 | VMXVmdb_LoadRawConfig: Loading of raw configuration
    sept 23 14:10:22.000: vmx | DnDRegisterRpc: Rpc of DND already set to 1
    sept 23 14:10:22.000: vmx | CopyPasteRegisterRpc: already the value 1
    sept 23 14:10:23.750: mks | USBGW: Writing referee op: 13 len:36
    sept 23 14:10:30.703: mks | Setting size 40 pile of thread to 1048576.
    sept 23 14:10:30.718: mks | Adjusting size of 41 of the stack of the thread to 1048576.

    ...

    Any ideas?

    Thank you

    If your license key allows, update your VMware Workstation version 7.1.4

    Otherwise, at least upgrade your VMware Workstation to version 7.0.1

    In the menu bar, help-> Check for Updates on the Web.

  • How to find the Union between the column in the table

    Hello

    I have the followin table and I want to find the union between the lines as below,
    create table test5 (tidset varchar2(200));
    
    insert into test5 values('1;2;3;4;5;6;7;8;9;10;11;12;13;15;16;17;18;19;20');
    insert into test5 values('1;2;3;4;5;6;7;8;9;10;11;12;13;14;15;16;17;18;19;20');
    insert into test5 values('1;2;3;4;6;7;8;9;11;12;13;15;16;19;20');
    insert into test5 values('1;4;6;10;6;11;12;13;14;15;16;17;18;19;20');
    I need the result to be as below.
    1;4;6;11;12;13;15;16;19;20
    any help please,.

    Published by: user11309581 on November 17, 2011 21:32

    Always mention what version of oracle you are using.

    The following query will give you the desired result oracle version 11g release 2.

    Connected to Oracle Database 11g Release 11.2.0.2.0 
    
    SQL>
    SQL> with test5 as
      2  (
      3  select '1;2;3;4;5;6;7;8;9;10;11;12;13;15;16;17;18;19;20' tidset from dual union all
      4  select '1;2;3;4;5;6;7;8;9;10;11;12;13;14;15;16;17;18;19;20' from dual union all
      5  select '1;2;3;4;6;7;8;9;11;12;13;15;16;19;20' from dual union all
      6  select '1;4;6;10;6;11;12;13;14;15;16;17;18;19;20' from dual
    -- "END OF SAMPLE DATA"
      7  ), all_items as
      8  (
      9    SELECT regexp_substr(t.tidset, '[^;]+', 1, column_value) item
     10          ,t.tidset
     11      FROM test5 t
     12          ,TABLE(CAST(MULTISET
     13                      (SELECT LEVEL
     14                         FROM dual
     15                       CONNECT BY LEVEL <=
     16                                  length(regexp_replace(t.tidset, '[^;]')) + 1) AS
     17                      sys.odcinumberlist))
     18  ),item_counts as
     19  (
     20    SELECT DISTINCT a.item
     21                   ,COUNT(DISTINCT a.tidset) over() total_tidset
     22                   ,COUNT(a.item) over(PARTITION BY a.item) item_occurance_count
     23      FROM (SELECT DISTINCT item
     24                           ,tidset
     25              FROM all_items) a
     26  )
     27  SELECT listagg(item, ';') within GROUP(ORDER BY to_number(item)) common_items
     28    FROM item_counts
     29   WHERE total_tidset = item_occurance_count
     30  ;
    
    COMMON_ITEMS
    --------------------------------------------------------------------------------
    1;4;6;11;12;13;15;16;19;20
    
    SQL> 
    

    OR if you have any version of oracle less than 11g release 2 then replace below mentioned line

    SELECT listagg(item, ';') within GROUP(ORDER BY to_number(item)) common_items
    

    with this one

    select xmlagg(xmlelement(c,item||';').extract('//text()') order by (to_number(item))) common_items
    

    It is because the listagg function used in above query is not supported in versions of oracle 11.2 below.

    I hope this helps.

    -Gregory

    Published by: Mohamed Diarra on November 18, 2011 01:05
    Extra line to be changed for the oracle version lower than 11.2

Maybe you are looking for