How to count the records for each region day and conditional

Hello

I need to create a report where I list activities for a month and the number of specific Type for each days activities. something like below

Number of days in the month where Type = 'A' Count where Type = B
January 1, 2009 2 3
January 2, 2009 7 6
January 3, 2009 8 7
----

-----
January 31, 2009 4 6

I tried with the creation of conditional region for each row of table for every day, but it does not work. I use below for conditional region-

<? xdofx:If substr (to_date ('20': substr (Planned, 9, 2) |)) » -'|| substr (Planned, 1, 2). » -'|| (substr (Planned, 4, 2), 'MM-DD-YYYY'), 4, 2) = 01? > <? Planned? > <? end if? >
But it is not functional and do not know how to count records in the table for each date as well.

Can anyone help in it as soon as possible. I'm quite new to BI.

Thnks

You can mark it as resolved... :D

Kind regards
Colectionaru

Tags: Business Intelligence

Similar Questions

  • For all the records for each record double, I need to get a single column with null or 0.

    Hi all

    I have a requirement where I need to get all the records, for each record in double, I need to get a single column with null or 0.

    create table a1

    (

    Identification number,

    VARCHAR2 (100), the point

    part varchar2 (100));

    Insert into a1

    values (1, 'ABC', 'A1');

    Insert into a1

    values (2, 'DEF', 'A2');

    TABLE A

    PART ITEM ID

    1 ABC A1

    1 ABC A1

    1 ABC A1

    DEF 2 A2

    DEF 2 A2

    3 DEF A2

    O/P

    PART ITEM ID

    1 ABC A1

    1        ABC             0

    1        ABC             0

    DEF 2 A2

    2       DEF              0

    3       DEF              0

    Thanks in advance.

    Thanks for your help FrankKalush...

    This one will work.

    WITH got_r_num AS

    (

    SELECT NVL (a1.id, a1.id) as id

    NVL (a1.item, a1.item) AS element

    NVL (a1.part, a1.part) IN the framework

    a1.id AS a_id

    ROW_NUMBER () OVER (PARTITION BY a1.id

    ORDER BY NULL

    ) AS r_num

    BY the a1

    )

    SELECT id

    element

    CASE

    WHEN a_id IS NOT NULL

    AND r_num = 1

    THEN part

    ELSE ' 0'

    END in the framework

    OF got_r_num

    ;

  • How to get all the records for each group - double

    Hi all

    I have developed customized reports, I have a three for each group, the first group is for PO number and the second is for line number Po and the third is for activity ID.


    Today the third group is based on the activity ID.

    Some time the activity id is unique and other data are different. If at this time its settlement only one record.

    For example

    Date of activity Id

    1 25 - Jan

    1 26 - Jan



    Its single record display.

    Can someone tell me how to avoid this separate for each group.

    Thanks and greetings
    Srikkanth.M

    As another user said, delete syntax regroup.
    Why do you bring here?

  • How to measure the time for each mapping?

    I use oracle11g with OWB.

    I have several mapping and each dimension tables to update the mapping.

    I want to measure how long it takes to complete each mapping. What is the best way to find the total time for each mapping.

    One way is, we can have POST MAPPING and PROCESS of MAPPING PRE. I can trigger the stored procedure to enter the start time and the end time of each match. On this basis, I can calculate the total time for each mapping. But I have 50 mapping. Now, I need to write 50 different stored procedure and open the POST-PROCESSING of the MAPPING and PROCESS OF MAPPING of the PRE for each mapping. It is complex.

    Is there another way, we enter the total for each mapping of execution? Y at - it that no data in OWF_ MGR dictionary can help on this?

    I would be grateful if someone can help me on this.

    He will remain forever unless you purge it explicitly.

    See you soon
    Katia

  • How to select the values for each check box in a group of records

    Hello

    I have a requirement in form 10g. In this form there are 10 records are display each record has a checkbox is there if I click on the check box save number one and number three and make some changes in the text field (field adjustment is the number data type) and then finally, I want to see the total a total amount called field.

    In this, my question is how to select specific to a group of records records? and finally these selected records are inserted in a table.
    Because I am not able to read these records at a time.
    Is there any table to define a record group to fetch each of them individually for example Rec [1] Rec [2]... like this if yes please suggest me the steps how to do this.

    Thanks in advance
    Prasanna

    Published by: user10315107 on December 17, 2008 23:44

    OK, so you want to shoe the total amount in the form itself (I guess that somewhere under the dashboard lines?).

    You can do this easily using formulat elements:

    1 create a new item in your block where the field amount is places, set "section of the database" on the 'No', 'calculation mode' to the 'formula' and the 'formula' himself to something like:

    CASE WHEN :BLOCK.CHECKBOXITEM=CHECKVALUE THEN :BLOCK.AMOUNT+:BLOCK.ADJUSTMENT ELSE 0 END;
    

    This formula returns 0 if the checkboxitem is not checked, otherwise the sum of amount and adjustment (of course you can adjust the names of elements and the value for 'Checked')
    2. place the element in the layout, if you wish.
    3. set the property "Query all Records" to "true" for your block elements, this is necessary for the calculation to work
    3 create a control block to keep summary article in a, "Single Document" set to 'True '.
    4. place a new element in this control block, set 'Calcuation mode' to 'Summary', 'Summary block' to your block elements, 'Summary point' in newly created formula section in the block elements
    and function of synthesis for the "sum".
    5. place the element in the layout

    She's.

  • In BI Publisher how to know the details for each role

    Hello everyone

    How will I know what is the specificity of each role

    What user role should I choose for users to open the editor of BI and just to view the reports.

    What is the difference between

    Consumer of BI

    Author of BI

    The APP Tester

    AdminChannelUSer

    and the rest

    I tried to look it up, but I can't find more information

    Thank you

    It is consumer of BI...

    Role of the BI consumer has under permissions added by default.

    oracle.bi.publisher.runReportOnline - open (execute) reports grants permission and display the document generated in the report viewer.

    Oracle.BI.Publisher.Schedule report - authorisation of subsidies to create or change jobs and also manage and browse jobs.

    oracle.bi.publisher.accessReportOutput - authorization of grants to browse and manage the output and labor history.

    oracle.bi.publisher.accessExcelReportAnalyzer - authorization of grants to download the Analyzer for Excel and to download data from a report to Excel using the Analyzer for Excel.

    oracle.bi.publisher.accessOnlineReportAnalyzer - authorization of grants to launch monitor and manipulate the data.

  • How to set the time for each slide in the slide show?

    Length of blade, pan and zoom, melted chained, etc. is adjustable for each slide or have all the same?

    If they can be individualized, what I don't see.

    Use Lightroom CC 2015.

    Thank you

    Leo Sopicki

    These features are not in the Lightroom Slideshow module. You will need to use another third party software to create these types of slideshows.

  • How to enter the caption for each photo in a slideshow?

    In design mode, my slideshow is visible only one photo. How page through the other photos so that I can put the correct caption on each?

    Hello

    To see more pictures, you can simply click on the Widget to select. Then click on the white arrow in the blue circle that appears at the top right of the Widget (which opens the properties of the Widget).

    Now in the properties/options of the Widget, check the "Prev" and "Next" options (if they are not already checked) in the parts section.

    Now on the Widget, you should get Previos and following arrows available. You can use these arros to navigate through the Image, and after uncheck the same options before you post if you want to not only these arrows are available to users.

    Please take a look at the screenshot that can help:

    Kind regards

    Sachin

  • How to send the SQL for SQL Server statement and return data without using database connectivity Kit?

    Hi, I tried to figure out how to extract data from my SQL Server databases and reading messages and to do some tests with examples, I can get data connection type in my SQL server, but so far nothing helps.  Is it possible to get data from a SQL Server database without using the database connectivity Toolkit?  and if so, how?  are there whitepapers and/or examples of this?  So far, I can't find something that works.  Thank you.

    Jesse - what is your reason for not using the database connectivity Toolkit? It is by far the best way to recover the data.

  • How to limit the bandwidth for each different devices connected to my router

    Hello

    Thanks in advance!

    Can you help me to limit bandwidth on perticular devices, I use NETGEAR (WNR1000v2 - N150 wireless router) and the version of the firmware of the V1.1.2.58, like almost 4 devices are connected to this router, I want to limit the speed of bandwidth to each device.

    I have not found the Qos in my Netgear.

    It might help if you provided in details with screenshots.

    Thank you

    Samira

    Not possible with this model of router

  • How to get the record for the top 3 of aggregate column

    Hello
    I have a simple query that returns all students in class with the total points. now, I want to choose the best 3 interns that maximum score. simple top three position. How can I use function rank here? or any other way to do
    select  st.sti_roll_no  ,st.sti_name , sum(rd.rd_obt_marks) as  mycol  from rd_result_detail rd , rm_result_master rm, sti_student_info st 
    where rm.rm_result_id = rd.rd_result_id
    and st.sti_roll_no= rd.rd_student_id
    --and  rd.rd_student_id = 'MBP10293' 
    and rm.rm_semester = 3
    and rm_session = 2009
    and rm_batch= 3
    and rm.rm_exam_type ='FINAL TERM'
    and rm.rm_class_id = 'MBA'
    group by st.sti_name, st.sti_roll_no
    order by st.sti_roll_no;
     

    not sure try now

    with t as
    
    (select  st.sti_roll_no  ,st.sti_name , sum(rd.rd_obt_marks) as  mycol  from rd_result_detail rd , rm_result_master rm, sti_student_info st
    where rm.rm_result_id = rd.rd_result_id
    and st.sti_roll_no= rd.rd_student_id
    --and  rd.rd_student_id = 'MBP10293'
    and rm.rm_semester = 3
    and rm_session = 2009
    and rm_batch= 3
    and rm.rm_exam_type ='FINAL TERM'
    and rm.rm_class_id = 'MBA'
    group by st.sti_name, st.sti_roll_no
    order by st.sti_roll_no)
    
    select e.* from (select sti_roll_no  ,sti_name,mycol,dense_rank()over(order by mycol desc) rnk
    from t) e where rnk<=3
    
  • How to get the nfc for work with a7 and samsung galaxy s4

    I can't NFC to work on the new A7 with my Samsung Galaxy s4 - someone has these 2 devices and NFC works fine?  Or did you have to complete a fix to make it work?

    I discovered that the latest android update 4.3 with the samsung galaxy s4 has created problems with nfc communications - a lot of programs that use the nfc no longer works with this new update.  I was told by samsung today that there is a known issue and they are working on it.

  • How to count the number of nodes under each parent in any given xml

    How to count the number of nodes under each parent in any given xml. for example the xml below was
    books has 3 childern, library [1] has 4, [2] library has 6 and bookshop [3] has 2. is it possible to get the number of tags in a childnode duplicate IE library [1]
    Book1 Tagus repeated twice... vice versa. do we need to make plsql lie we can achieve through sql

    < book >
    < library >
    ABC < book1 > < / book1 >
    BCA < book2 > < / book2 >
    ACR < book1 > < / book1 >
    Lac < Book4 > < / Book4 >
    < / book >
    < library >
    ABC < book1 > < / book1 >
    BCA < book2 > < / book2 >
    ACR < book3 > < / book3 >
    ACR < book3 > < / book3 >
    tray of < bookn_1 > < / bookn_1 >
    adjusted cost base < bookn > < / bookn >
    < / book >
    < library >
    ABC < book1 > < / book1 >
    BCA < book2 > < / book2 >
    < / book >
    < / books >


    I tried this... query.

    Select
    XMLQUERY ('count($doc/Books/Bookstore[1]/descendant::*)' in the way of xmltype ("< books >
    < library >
    ABC < book1 > < / book1 >
    ACR < book1 > < / book1 >
    Lac < Book4 > < / Book4 >
    < / book >
    < library >
    ABC < book1 > < / book1 >
    BCA < book2 > < / book2 >
    < / book >
    (< / books > ')
    as 'doc' of happy return) .getNumberVal () as node_count
    of the double

    Select
    XMLQUERY ('count($doc/Books/descendant::*)' in the way of xmltype ("< books >
    < library >
    ABC < book1 > < / book1 >
    ACR < book1 > < / book1 >
    Lac < Book4 > < / Book4 >
    < / book >
    < library >
    ABC < book1 > < / book1 >
    BCA < book2 > < / book2 >
    < / book >
    (< / books > ')
    as 'doc' of happy return) .getNumberVal () as node_count
    of the double

    How can I get the counts for each parent in a single query

    Published by: user7955917 on August 24, 2012 07:26

    Generic function how you want the query to be.

    If the structure is known in advance, as in your example a 'books' and then a 'library' root element, it's as simple as:

    SQL> select x1.parent_id, x2.child_name, count(*)
      2  from tmp_xml t
      3     , xmltable(
      4         '/books/bookstore'
      5         passing t.object_value
      6         columns parent_id   for ordinality
      7               , child_list  xmltype path '*'
      8       ) x1
      9     , xmltable(
     10         '/*'
     11         passing x1.child_list
     12         columns child_name varchar2(30) path 'name()'
     13       ) x2
     14  group by x1.parent_id, x2.child_name
     15  order by x1.parent_id, x2.child_name
     16  ;
    
     PARENT_ID CHILD_NAME                       COUNT(*)
    ---------- ------------------------------ ----------
             1 book1                                   2
             1 book2                                   1
             1 book4                                   1
             2 bookn                                   1
             2 bookn_1                                 1
             2 book1                                   1
             2 book2                                   1
             2 book3                                   2
             3 book1                                   1
             3 book2                                   1
    
    10 rows selected
     
    

    If you want a generic solution that works without knowledge of the structure, you will need a recursive approach, and most importantly, you should know which nodes in distinct, I suppose that the leafs?

    Also, please help if you can provide the link of reference on the function name() years what are the other expression, that I can use after the path

    You can start reading the documentation: http://docs.oracle.com/cd/E11882_01/appdev.112/e23094/xdb_xquery.htm#CBAGCBGJ

    The clause PATH expects a XQuery expression however before 11.2, we can put only simple XPath expressions.

  • I need a query that selects the amount of records for each day of a table.

    I need a query that selects the amount of records for each day of a table.
    For example, the result would be:

    1 14 date
    Date 2-3

    etc.

    Any ideas?

    Sort:

    SELECT count ([IDCommentaire]), convert (varchar, dateAdded, 112)

    OF COMMENTSgroup by convert (varchar, dateAdded, 112)

  • My Inbox to view the sender for each message and now it does not work... How do I get it back to where it was?

    My Inbox to view the sender for each message and now it does not work... How do I get it back to where it was?

    Right-click on the header at the top of the list of messages and select from the list of options.

Maybe you are looking for

  • cannot click on parts of the websites such a (yes/no buttons, search fields

    For example, when I change my default firefox search engine, he asked me if I wanted to help them by sending anonymous information on the performance and there where 2 buttons to click 1 Yes and no, I put my cursor on the Yes button and left clicked

  • timed transmission of serial data

    I need to send transmissions series continuously at different periods and between transmissions, I also need to search for received data. For the moment, I had things works affecting first to the top of my serial port Comms and then that feeds 3 sepa

  • T2i can not format the card

    I used this card several times. I copied the files on my computer properly. When I put the card in the camera to format and turn on the camera, it says "No card in the camera" all my other cards work fine. I can still read the map with my card reader

  • Cain't send request and not able to send gifts back in Cafe World on Facebook

    When I click on the name of the person to send them a gift button send (icon) continue without stopping. Neighbors ever get their gift and I cain't get parts I need to finish my goals in Cafe World.

  • How to get a DVD player to play jpg files (pictures) engraved on DVD

    I have 2800 weird pictures (JPGs) coming to a little more than 4 GB. I have them numbered Filename (10001) and following, such as recommended on another thread on this site. Using of Windows on a new DVD burner laptop computer that is running Windows