Show date list

Hi I am trying to show a date list in column. I have got a count of jobs opened, however all of the jobs are grouped into one count. I need a count of the 1st then the 2nd etc.
EG I am getting..
Opened Closed Movement
3 0 -3
I need
Date Opened Closed Movement
01/Sep/2006 1 1 1
02/Sep/2006 2 1 -1
03/sep/2006 5 5 5
etc...
Can anyone help?

Hi Dave
You first of all have to start out with deciding how many result sets you need and which function, CASE or DECODE, you want to use. In your case let's say we have decided on four buckets.
The first part of the answer is to produce a calculation that determines the number of days. In your case you need to either build a calculation or use an existing database item. So let's call the result of this DAYS.
Now look at this:
IF DAYS LESS THAN OR EQUAL TO 7 THEN 'a) 1 - 7 days'
ELSE IF DAYS LESS THAN OR EQUAL TO 15 THEN 'b) 8 - 15 days'
ELSE IF DAYS LESS THAN OR EQUAL TO 21 THEN 'c) 16 - 22 days'
ELSE ELSE 'd) More than 22'
Converting this to a CASE you get:
CASE WHEN DAYS <= 7 THEN 'a) 1 - 7 days'
WHEN DAYS <= 15 THEN 'b) 8 - 15 days'
WHEN DAYS <= 22 THEN 'c) 16 - 22 days'
ELSE 'd) More than 22 Days' END
Converting to a DECODE is more difficult but not impossible due to the fact that DECODE only works with equality. However, with the use of the LEAST function we can do the same thing:
DECODE(LEAST(DAYS,7),DAYS,'a) 1 - 7 days',LEAST(DAYS,15),DAYS,'b) 8 - 15 days',LEAST(DAYS,22),DAYS,'c) 16 - 22 Days',d) More than 22 Days')
Best wishes
Michael

Similar Messages

  • To show data( List of valueObjects   ,each vo contains List)using jsp tags

    I have set List in request attribute.
    List has value Object Class Objects.
    each value object contains get/set methods which get and set List of Strings and other get/set return and set Strings like:
    List getvaluesList()
    setValuesList(List list)
    String getLabel()
    setLabel(String st)
    My problem is how to show them in jsp using tags.
    ofcourse there will be drop down boxes in jsp with select options .

    Hi,
    According to your post, my understanding is that you wanted to display all the items that the logged-in users had created under each of the list in the site.
    I don’t think it’s a good idea to display all the items that the logged-in users had created under each of the list in the site in a visual web part.
    As we all known, different list has different fields, it will be different to display different list fields in a visual web part.
    If you still want to use the visual web part, I recommend you use the common fields that all the lists contained, suach as the Title, Createdy by, etc.
    Then query all the lists in the site by the created by field to compare with the current user.
    As a workaround, I recommend you use a page to display all the items that the logged-in users had created in the site.
    You can create a custom view based on current user for the lists, then add the lists web part in a page with the custom view.
    Now the page would only show the current users items.
    http://go.limeleap.com/community/bid/297846/Custom-List-View-Based-on-Current-User-Using-SharePoint-Designer
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/5e347dea-475e-4b95-8905-0f6e11bab7bf/sharepoint-list-filtering-by-current-user-or-group?forum=sharepointgeneralprevious
    What’s more, you can also use the target audience to achieve it.
    http://lixuan0125.wordpress.com/2012/06/18/audience-targeting-sharepoint-2010/
    Thanks,
    Jason
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Jason Guo
    TechNet Community Support

  • Explain me briefly about evaluation order.As per my knowledge it show data type order.but I have different data type in same diemension ex:account- acc_001 is smart list data type.account-ac_002 is percentage.So fot this i will accont dim in evaluation or

    Explain me briefly about evaluation order.As per my knowledge it show data type order.but I have different data type in same dimension ex:account->acc_001 is smart list data type.account-ac_002 is percentage.So fot this i will accont dim in evaluation order.What going can any one explaining brifly ?

    2786712 wrote:
    thanks John for reply.If you dont mine can you explain clearly with example and screenshot.
    @John: You got a task
    Here you go: Hyperion Planning and More...

  • Showing a date listing from recordset, how to fill in dates not listed?

    I have been several different directions on this, but this may work.
    I am trying to list a date range like Nov 1 through Nov 8, ie Nov1, Nov2, Nov3, etc and under each date show a recordset COUNT for that date and if there is no record matching that date, show 0 .
    I have this sql
    mysql_select_db($database_connbubba, $connbubba);
    $query_rs_count = "SELECT yard_sales.yardsale_date,DATE_FORMAT(yard_sales.yardsale_date, '%b %d') AS theDate,COUNT(*) FROM yard_sales WHERE yard_sales.yardsale_date>=CURDATE() GROUP BY yard_sales.yardsale_date";
    $query_limit_rs_count = sprintf("%s LIMIT %d, %d", $query_rs_count, $startRow_rs_count, $maxRows_rs_count);
    $rs_count = mysql_query($query_limit_rs_count, $connbubba) or die(mysql_error());
    $row_rs_count = mysql_fetch_assoc($rs_count);
    user posts their yard sale information into the db and column yardsale_date is date YYYY-MM-DD
    so with this setup, i have a table with 2 rows (rs_count.theDate and rs_count.COUNT) and the table repeats horizontally.
    so the result is
         Nov2                  Nov6                   Nov8
    1 Yard Sale          2 Yard Sale         1 Yard Sale
    How can i get
         Nov2                 Nov3                   Nov4                 Nov5                   Nov6                      Nov7                  Nov8
    1 Yard Sale         0 Yard Sale         0 Yard Sale       0 Yard Sale         2 Yard Sale          0 Yard Sale        1 Yard Sale
    thanks for your help,
    jim balthrop

    You can't show data that does not exist, so you first need to create another calendar table that includes all possible dates. You can then outer join that table to your main table. Pull the dates from the calendar table and count the number of sales in your main table. Group by calendar table dates.

  • How do I include/show data from a child table in a Modal Window?

    How do I show data from a child table in a Modal Window?
    I have an application where each customer might have multiple addresses and phone numbers which are stored in child tables.  When I show the customer in a record on a screen I can place a Modal Window button on the screen which can be pushed at runtime
    to display detail information for the particular customer parent table which works great. However, I would also like to display the data from the address and phone number child tables. Is there a way to do that?  Or can I just launch a hole separate screen
    which would automatically display the needed data for the particular customer? If yes, how? 
    Thank you for any help.

    I am not even sure how to describe my situation in such a way that this forum incident would be of benefit to other people as I think it is fairly unconventional. 
    The “add contactaddress” link does not show up on the right.  
    The contactaddress table is a child of the contact table. 
    The contact table is a child of the contactlink table.
    And the contactlink table is a child of the person table.
    I have it set up this way because the contact in the contact table may be a contact to multiple persons in the person table and I do not want to re-enter the contact info every time the contact is used. 
    In the list detail screen of the person table I can see the contactlink child collection so that I can see the name of the person in the contact table at runtime. However, the contactaddress collection is not related to the person table so it does not show
    up on the right hand side of the design screen as an “add contactaddress”; nor is there “add contact” link.
    What I would like to happen during runtime is that it is not necessary to switch screens from the person list detail screen to a contact list detail screen to see the addresses and phone numbers for the contact.
     Is my setup unnecessarily convoluted? Is there a better way? Please see the two snapshots below.
    Perhaps there is a way to call up a Detail screen from the List Detail at runtime? 
    Anyway, if you are still reading, thank you very much for your help.   
    jjjjj

  • Assets Master Data List

    Hi All,
    I have created all the assets and need to extract the report of master data list which show descripation 1, descripation2, serial number, capitalized etc appear as per below screen shot. Please advise how i extract this type of report.
    Description          COMPUTER
                         UD367- LCD, 14.1 XG, VESA, SMSNG
    Asset main no. text  COMPUTER
    Acct determination   ITHW       IT Assets Hardware
    Serial number
    Inventory number
    Quantity             5                   EA    each
    Last inventory on
    Inventory note
    Capitalized on       12.03.2009              Deactivation on
    First acquisition on 12.03.2009              Plnd. retirement on
    Acquisition year     2008 012
    Thanks & Regards,
    Pankaj

    Hi,
    Please check the below thread.
    [capitalization asset report.;
    And follow the procedure as i was explained to her.
    Thanks,
    Srinu

  • How to show data in table on the basis of click on a row of another table

    Hi All,
    I want to show two tables. In first table the main objects show in turn there is another collection in that main object for which i want to show data in separate table.
    e.g.,
    ObjectA
      have the collection of ObjectBs
    when i select ObjectA in main table then all the collection Objects of ObjectBs shows in separate table. Plz help me how to handle this case ??

    hi,
    You can create two value nodes for storing these collections. The first one would be singleton node as it is the main list. Under that create the second node with singleton = false.
    e.g.
    ---NodeA
        --attrA1
        --attrA2
        --NodeB(singleton = false)
                --attrB1
                --attrB2
    Now populate collection of object A in NodeA and after adding element in NodeA populate respective elements in NodeB.
    IPrivate<View>View.INodeANode nodeA = wdContext.NodeAnode();
    for (Iterator  it = collectionA.iterator(); it.hasNext(); )
         ObjectA objA= it.next();
         IPrivate<View>View.INodeAElement nodeAElem= nodeA.createNodeAElement();
         wdCopyservice.copy Corresponding(objA,nodeAElem);
         nodeA.addElement(nodeAElem);
         Collection collectioB =objA.getCollectionB();
         for (Iterator  it1 = collectionB.iterator(); it1.hasNext(); )
             ObjectB objB= it1.next();
            IPrivate<View>View.INodeBNode nodeB = nodeAElem.nodeBnode();
            IPrivate<View>View.INodeAElement nodeBElem= nodeB.createNodeBElement();
            wdCopyservice.copy Corresponding(objB,nodeBElem);
            nodeB.addElement(nodeBElem);
    Bind NodeA to the first table and NodeB to second one.
    After that when you select record in first table automatically its corresponding records will be populated in second table.
    Hope this helps!
    Monalisa

  • Is this a data list photo gallery?

    http://www.heathrowe.com/other/fc2/main.html (click to the gallery page)
    Someone posted this in the show your Catylst project thread. Is this done with the Data list method? It's late, and I am beat, but I can't seem to get rollover functionality in my thumbnails. Except to fade it out from whatever opacity it starts at.
    Is there a way to change the start point of a page, or can you just control the transitions of things as they apear differently from you start page to the final end point on the finish page/state? Does that make sense or am I too exauhsted to make sense anymore? Guess I'll see in the AM when I get up and re-read this looking to see if anyone responded.

    i don't know if you still need the answers, but if you do, i hope this helps.
    i'm not sure if the gallery in this example is a data list (if you're talking about the thumbs..), but i did the same thing just putting up the buttons and aligning them and giving them some attributes on rollover etc. it's an even easier way than doing a data list for something simple like that.
    to change the start point of a page you need to do one "blank page" before your first homepage (or a duplicate) and then in the transition between them asign the items on your homepage different transitions.. on that "zero" page you can also move some items out of the box and give them a move transition to the homepage etc.
    hope it helped!
    best,
    Jelena

  • Show different lists depending on subtype

    Hi,
    In transaction PA30 it is possible to show a list. Normally you define the list screen number in the customizing for infotypes, so just 1 different screen is possible. Now I want to know if it is possible to use  2 different screens for the list display. I need to redefine the screen number within the program flow depending on the subtype. I can't find an user-exit for this. Has anyone a solution??
    kind regards Maarten

    Hi Maarten,
            I think U can do this by definig a new feature based on the subtype and call the alternate screen  for the respective variable key.
    How to do:
    step 1 : Create a feature with the variable keys defined based on the subtype.
    step 2:U can use the table T588M to call different alternate screens for the respective variable key(Output from feature). 
    U can ask ur functional consultant to do this kind of work.The data in the table T588M is maintained by the functional people.

  • Question on "No Selection" Item for a dropdown data list?

    I'm trying to set a dropdown data list on an input form to have a default value. It appears that the first item in the list (which will show as the default) is always interpreted as a null value? Is there a way to display a default value that won't be interpreted as null? Does NullValueFlag affect this behavior and if so, how? In the example below, I want 'United States' to be the default value and not be interpreted as null.
    From the Online help - 'Using Complex UI Components'
    "The selectOneChoice component supports a null value, that is, if the user has not selected an item, the label of the item is shown as blank, and the value of the component defaults to an empty string. Instead of using blank or an empty string, you can specify a string to represent the null value. By default, the new string appears at the top of the list of values that is defined in step 3"
    <list id="View1country" IterBinding="View1Iterator"
    ListOperMode="0" StaticList="true" NullValueFlag="1">
    <AttrNames>
    <Item Value="country"/>
    </AttrNames>
    <ValueList>
    <Item Value="United States"/>
    <Item Value="Canada"/>
    </ValueList>
    </list>

    Hi,
    No, there's no point in handling exceptions that can't possibly occur, and the UPDATE statement you posted can't possibly raise a NO_DATA_FOUND exception.

  • Edit TableCell in TableView right after it has been added to the data list

    Hi all
    I'm trying to make my table view editable by keyboard. So far I can edit the currently selected cell with a press of 'E'. That works without any problems:
    table.edit(selectedRow, tableColumns.get(0));Now I want to add functionality for adding a new row with the press of 'N'. So when pressing 'N' I add a new Object to my data list and try to get into editing mode the same way I do it when pressing 'E', but it won't work.
    My first try was like this:
    data.add(new Task("", "0"));
    table.edit(data.size() - 1, tableColumns.get(0));The new row gets created but I won't get the edit text field. That's why I tried to focus and select the newly created cell. The focus and selection work, but I won't get an edit field.
    int lastRow = data.size() - 1;
    data.add(new Task("", "0"));
    table.getFocusModel().focus(lastRow);
    table.getSelectionModel().select(lastRow, tableColumns.get(0));
    table.edit(lastRow, tableColumns.get(0));It may have something to do with the fact that the new row just got inserted... I don't know :/
    I'd appreciate some hints on this :)
    Thx

    Does the video no longer show up under the Photos tab? You should be able to edit it there. You can't edit within albums.

  • How to Show data in grouping with check boxes.

    Hi Experts,
    I am new to ADF and want to resolve one issue for my urgent project requirement.
    My Problem is :
    In Employee, Department relationship i need to show data in a grouping of departments like for Marketing department all the related employees should come in a single column.
    eg .
    Dept Name Emp Name
    Marketing Akshay Nitin Ritu
    Sales Neeraj Vikas Venu
    * All these department names and employees should come with check boxes and if i select one department all the employees should be checked.
    Please Please suggest any solution asap.
    Many Thanks in Advance.
    Regards,
    Nitin
    Edited by: user10980736 on Feb 7, 2011 8:32 AM

    hi,
    You can create two value nodes for storing these collections. The first one would be singleton node as it is the main list. Under that create the second node with singleton = false.
    e.g.
    ---NodeA
        --attrA1
        --attrA2
        --NodeB(singleton = false)
                --attrB1
                --attrB2
    Now populate collection of object A in NodeA and after adding element in NodeA populate respective elements in NodeB.
    IPrivate<View>View.INodeANode nodeA = wdContext.NodeAnode();
    for (Iterator  it = collectionA.iterator(); it.hasNext(); )
         ObjectA objA= it.next();
         IPrivate<View>View.INodeAElement nodeAElem= nodeA.createNodeAElement();
         wdCopyservice.copy Corresponding(objA,nodeAElem);
         nodeA.addElement(nodeAElem);
         Collection collectioB =objA.getCollectionB();
         for (Iterator  it1 = collectionB.iterator(); it1.hasNext(); )
             ObjectB objB= it1.next();
            IPrivate<View>View.INodeBNode nodeB = nodeAElem.nodeBnode();
            IPrivate<View>View.INodeAElement nodeBElem= nodeB.createNodeBElement();
            wdCopyservice.copy Corresponding(objB,nodeBElem);
            nodeB.addElement(nodeBElem);
    Bind NodeA to the first table and NodeB to second one.
    After that when you select record in first table automatically its corresponding records will be populated in second table.
    Hope this helps!
    Monalisa

  • BCS Business Data List data HTML Formatting data

    I have a Business Data List webpart in Sharepoint Online (2013) which pulls data from a BCS List. This data contains HTML which is not rendering as HTML but the HTML text.
    I've modified the data to HTML format the data, no joy (example: &lt; img src="/)
    I've modified the data to spit out the native html, no joy (example: <img src="/)
    I've modified the XSLT of the webpart using the Data View Properties (when editing the webpart in Sharepoint) to output the text from the list as below, which didn't work:
    <xsl:value-of select="@ArticleBody" disable-output-escaping="yes" ddwrt:nbsp-preserve="yes"/>
    and also this hasn't worked:
    <xsl:value-of select="@ArticleBody" disable-output-escaping="yes"/>
    I'm now at a loss as to how I can get the data to show with the html text being rendered as actual HTML on page

    found, the issue - there was a section further down the XSLT file that needed the disable-output-escaping adding to (below is the original section) - once updated it worked like a charm - thanks
    <xsl:template name="_LFtoBRloop">
        <xsl:param name="input" />
        <xsl:variable name="beforeText" select="substring-before($input, '&#xA;')" />
        <xsl:choose>
          <xsl:when test="string-length($beforeText) = 0 and substring($input, 1, 1) != '&#xA;'">
            <xsl:value-of select="$input" />
          </xsl:when>
          <xsl:otherwise>
            <xsl:value-of select="$beforeText" />
            <br />
            <xsl:call-template name="_LFtoBRloop">
              <xsl:with-param name="input" select="substring($input, string-length($beforeText)+2)" />
            </xsl:call-template>
          </xsl:otherwise>
        </xsl:choose>
      </xsl:template>

  • Business Data List Web Part

    Hi all,
    I am using the Business Data List Web Part to show and search data from external database as following link
    http://msdn.microsoft.com/en-us/library/office/ms493107(v=office.12).aspx
    But the Business Data List Web Part doesn't allow me to choose one or multiple items as other SP lists. I mean it doesn't have the CheckBox column. How could I have it?
    Thanks

    Hi,
    According to your description, Business Data List Web Part which data from external database doesn't have the check box column.
    I have done a test in my SharePoint 2013, and I met the same issue with you. Although I defined the edit action for the external content types, I still couldn’t edit a record from business data list web part.
    I would suggest you to use External List. In this case you will be able to Add/Edit/View item if your External Content Type has all operations.
    Here is a blog about how to Create an External List, you can use as a reference:
    http://community.bamboosolutions.com/blogs/sharepoint-2013/archive/2013/01/07/how-to-create-external-list-including-database-from-sharepoint-designer-2013.aspx
    beside, here is a similar post, you can use as a reference:
    https://social.technet.microsoft.com/forums/sharepoint/en-US/1a958e61-2c73-472c-83c7-443466aefcf8/edit-item-in-business-datra-list-webpart
    Best Regards,
    Lisa Chen
    Lisa Chen
    TechNet Community Support

  • Filing date of judgement is different from date listed on credit report.

    So first, let me say that my judgement is due to fall off in April of next year.  If it weren't for reading so many success stories and having many of my own (including an early deletion of the last paid collection account on Experian just yesterday) I might be willing to leave well enough alone. The problem is, the paid judgement is the last bad item on my report.  I just called the circuit court where my judgement was filed because the dates seemed off. I have copies of the money orders that I sent to pay the judgement and all of them were AFTER the judgement file date listed on my credit reports.  According to the clerk, my judgement was actually filed on January 12, 2009 not April 16, 2009. My question is, aren't civil judgements supposed to fall of 7 years from the filing date or is this the case of the 7 years 180 days I've heard about?  Did my payments somehow reage the judgement? If the date is indeed wrong, what is my next course of action? If the judgement rightfully is due to fall of January of 2016 I am within the 6 month range for requesting good will early deletion from at least two of the CRA's, correct?   I'd really like to buy a house next year at the best rate possible and my Fico scores are EX 709, TU 719, and EQ 721. I’m hoping this removal will help me get the best rate possible.  Thanks in advance for any insights/ opinions given.  

    Thanks for the docketing info! I'll start the ball rolling on that Monday. Regardless, if I can get the dates changed or no,t it's good to know that I have a possiblity of getting early exclusion on judgements as well. From what I read on this forum you can get a judgement vacated if he was improperly served. You can request the service info from the court where the Judgement  was placed. I, like Rebuilding, didn't show up for my court date because I assumed that being in contact and negotaiting payment was all I needed to do and judgement would be thrown out the window. Yeah I know, stupid.  Wow, if my judgement  falling off netted me 66 points I would keel over. It's my last baddie and the only bad thing on all three reports so my fingers are crossed.  Experian is an interesting one. In my case, they seem to hang on to anything and everything. The other CA's dropped most of my stuff a few months early without me even having to request it.  The only thing I had left was the judgement and one collection on Experian.  I called them mid june to ask for early deletion of the collection( 2 months ealy) because I heard they would remove it 3 months early. They turned me down, but I was very polite and thanked them  for their  time when they told me to call back April 1. I called them July 1 and after being transfered once my collection was removd. The phone call took less than 5 minutes.  It was due to fall of August 16 of this year.  The number I called was 1-800-360-7580. Note this account was not my oldest account and it was shown as being in collections so I wasn't in danger of having my Aaofa taking a hit.  Oh, one last thing. I don't think it's odd that one report had collections info that another doesn't. They not only differ in how long they keep stuff( my point about Experian having a collection nobody else had) I also think it depends on who the collector reports the info to I'll update if I get my judgement updated and EE. Otherwise Kaylavaand I will have our judgement removal day party April 16th of next year!

Maybe you are looking for

  • DFS Folder Target to Samba Share not working

    Hello folks, I'm on Server 2012 R2. I'm using a DFS Namespace that is configured as standalone server (i.e. not a domain-based namespace). The Namespace is the IP address of the server. I have also tried this with the hostname of the server and I get

  • How to create a segement in we31 for an Idoc

    Hi, How to create a segment in we31 for an IDOC . I tried its showing an error Name range violation: Name not permitted in customer system

  • Does the 8760w support SATA 6 Gbps?

    It seems the chipset supports SATA 6 Gbps but HP seems to indiciate that only SATA 3 Gbps drives are supported. Which is it? Thanks, rgames

  • Thumbnails and Previews have a green tinge

    The thumbnails and previews in my library have suddenly developed a green tinge. I have tried Update Previews, Generate Thumbnails, and Generate Previews with no success. I have also used Repair database and Rebuild database, again with no positive r

  • QUOTED STRINGS SQLPLUS

    Hi, Maybe someone can help me out. For some reason when I copy and paste a query into sqlplus the single quotes now become periods. Could someone please tell me which parameter in sqlplus I need to change and what that command is? ex select text from