How do I show all Groups including Groups with Zero Sums

Post Author: mchallinor
CA Forum: Formula
This is such a basic question I'm annoyed that I can't work out the answer myself!The report is very basic:"Total Sales"Grouped on Weeks of the Year. Data Report Range 01-01-2006 to 31-12-2006.The Group Summary Totals appear for all weeks where there is at least 1 sale within that Week.  But if there are NO sales for a week this does not appear as a Group Summary Total. Eg:Total Sales ReportWEEK 1Group Sum Total =      £3,004WEEK 2  Group Sum Total =      £9,000WEEK 3Group Sum Total =     £1,030WEEK 5Group Sum Total =      £900Report Grand Total =  £13,934There were no sales during WEEK 4 so no Group Sum appears. I need the report to look like the following:Total Sales Report  WEEK 1
Group Sum Total =      £3,004
WEEK 2 
Group Sum Total =      £9,000
WEEK 3
Group Sum Total =     £1,030WEEK 4
Group Sum Total =     £0
WEEK 5
Group Sum Total =      £900Report Grand Total =  £13,934How do I get the Group Sum to show for all groups even if the group sum is zero.Look forward to any suggestions.

Post Author: bettername
CA Forum: Formula
Agreed - about the best way to overcome this is to have a 'dates' table in your db which has a simple structure of one column named 'date', filled from some date in the past to xxx years in the future, incrementing by a day at a time.  Ask your DB guys to add this in - it's a simple task (SQL code underneath)
If you then use this as your 'starting point' table (and link your sales data to it on the date), and group by dates.date (or use it in your formula for grouping), you'll get the 'empty' groups.
SQL CODE TO CREATE A SIMPLE DATES TABLE (-5 years from today to +5 years from today):
create table crystal_dates (mydate datetime)
declare @start datetimedeclare @end datetimedeclare @now datetimeset @start = dateadd(yy,-5,CONVERT(DATETIME,FLOOR(CONVERT(FLOAT, getdate()))))set @end = dateadd(yy,5,@start)set @now = @start
while @now <=@endbegininsert into crystal_dates values (@now)set @now = dateadd(dd,1,@now)end

Similar Messages

  • IPhone not showing all replies to group messages

    In the last month my iPhone 5 has stopped showing all replies to group messages.
    For example a friend shall send a group message to another friend and I, I shall either  not see this message but see another friends reply in a text message that appears to be between the two of us. Or see the group message as an individual conversation between two people with no replies from other parties.
    I am currently running iOS 7.1.1
    Can anyone help me?

    did you ever fix this issue?? Same thing happening to me as well.

  • I set in prefferances plug-ins. Show all filter gallery groups and names, but they are still light gray and not selectable

    I set in preferences plug-ins. Show all filter gallery groups and names, but they are still light gray and not selectable

    They are being shown.  When Photoshop gray out items it means in the documents current state  that item is not supported,  Get the document into a state that the grayed out filters can be used.  Some filters mat not support some modes like CMYK. 32bit color, Lab etc. They seem to be listed but nor currently applicable. Note whem no document is open all are grayed out the when a simple clipboard image is open all are available.

  • How can I show all missing content in iTunes library?

    How can I show all missing content (ie. show the exclamation mark against each track)? I can restore the missing content but need to know what is missing without running each track.

    One way to identify the broken links in your library is to create this set of playlists:
    Lost & Found playlists
    Create a playlist called Found, select everything in Music and drag it into the Found playlist. Create a smart playlist called Lost matching All the rules Playlist is Music and Playlist is not Found. Your lost tracks will be in this playlist.
    Or use iTunes Folder Watch and enable its option to check for dead tracks on startup.
    tt2

  • How get firefox show ALL tabs?

    How get firefox show ALL tabs, like other browsers, without scrolling and without addons(TabMix and other)?

    There are in performing such a task. Changing advanced in the location may cause harm to stability. Do exactly as i say...
    Type- '''about:config''' -in the address bar and then press enter.
    Click I'll be careful, I promise!
    In the filter box type '''browser.allTabs.previews'''
    Double click on the value to set the value to '''true''' instead of false.
    Then close the tab and see the final result

  • How can I show all of my keywords in iPhoto.  there seems to be a limit on the number that can be used.

    How can I show all of the keywords used in iPhoto.  There seems to be alimit on how many can be displayed.

    When I click the "Edit Keywords" button, I get a list of all keywords. I just added several hundred random keywords, and they are all visible, when I scroll the list in "Edit Keywords" view.
    Have you the scroll bars hidden? You can enable the scroll bars in the System Preferences > General tab:   enable "Show Scroll bars - always".

  • Ust purchase an iphone 4s and need to know how could i transfer all files including (contacts, pictures, music, notes and ect.... from sd card or any external card to iphone 4s, please advise thx

    ust purchase an iphone 4s and need to know how could i transfer all files including (contacts, pictures, music, notes and ect.... from sd card or any external card to iphone 4s, please advise thx.

    You need to put all of your info on your computer and then sync it to iphone.

  • How do I show all reminders in a list, even those 1 year out?

    How do I show all reminders in a list, even those 1 year out?

    Hello Denes,
    Thankyou for replying to my question.
    I went to your impressive website and viewed your examples.
    They deffinetly appear to suit my needs, but alas my SQL skills are not at a level where I can easily convert your example to my needs.
    I have tried to convert the example, but as yet I am not getting the correct data results.
    thankyou again
    frank

  • Trying to hide/show all series in legend with click on 'deselect' option.

    Hi Friends,
    I am trying to hide/show all series in legend with click on 'deselect' option. Please see the code below, let me what change i need to do:
    $(function () {
    $('#container').highcharts({
    chart: {
    type: 'line',
    marginRight: 130,
    marginBottom: 25
    title: {
    text: 'Monthly Average Temperature',
    x: -20 //center
    subtitle: {
    text: 'Source: WorldClimate.com',
    x: -20
    xAxis: {
    categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun',
    'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
    yAxis: {
    title: {
    text: 'Temperature (°C)'
    plotLines: [{
    value: 0,
    width: 1,
    color: '#808080'
    tooltip: {
    valueSuffix: '°C'
    legend: {
    layout: 'vertical',
    align: 'right',
    verticalAlign: 'top',
    x: -10,
    y: 100,
    borderWidth: 0
                   plotOptions: {
    series: {
    events: {
    legendItemClick: function(event) {
    //var visibility = this.visible ? 'visible' : 'hidden';
    // (!confirm('The series is currently '+
    //visibility +'. Do you want to change that?')) {
    // alert ('other legend');
                                                                     if (this.name == 'Deselect')
    alert('hi');
    series.hide();
    //return false;
    series: [{
    name: 'Tokyo',
    data: [7.0, 6.9, 9.5, 14.5, 18.2, 21.5, 25.2, 26.5, 23.3, 18.3, 13.9, 9.6]
    name: 'New York',
    data: [-0.2, 0.8, 5.7, 11.3, 17.0, 22.0, 24.8, 24.1, 20.1, 14.1, 8.6, 2.5]
    name: 'Berlin',
    data: [-0.9, 0.6, 3.5, 8.4, 13.5, 17.0, 18.6, 17.9, 14.3, 9.0, 3.9, 1.0]
    name: 'London',
    data: [3.9, 4.2, 5.7, 8.5, 11.9, 15.2, 17.0, 16.6, 14.2, 10.3, 6.6, 4.8]
    name: 'Deselect',
    data: []
    Edited by: oracle_student_777 on Mar 27, 2013 10:05 PM
    Edited by: oracle_student_777 on Mar 28, 2013 4:08 AM
    Edited by: oracle_student_777 on Mar 28, 2013 8:59 PM
    Edited by: oracle_student_777 on Mar 28, 2013 11:15 PM

    More generally, Show All will only show when the Organizer isn't showing all your photos.  For example, if you click on a tag to show just the photos with that tag, the Show All button will show up.
    Alas, what I said above isn't completely true.   There are a number of situations where this rule doesn't hold:
    - When you've restricted the photos shown to a date range using Find > Set Date Range.
    - When you've restricted which media types to show using View > Media Types.
    - When you type text quickly into the search box and hit enter (on a large catalog).

  • Just set up lightroom 5 and imported images with sequence number but wanted image number.  How do I renumber all images in lightroom with an image number?

    How do I renumber all images in lightroom with an image number?

    Try line-height: 19px; and display: block; (as shown) on the following css seletor :
    ul.MenuBarHorizontal a {
         font-family: Lucida Sans Unicode, Lucida Grande, sans-serif;
         color: #CC6;
         text-decoration: none;
         padding-top: 10px;
         padding-right: 12px;
         padding-bottom: 10px;
         padding-left: 12px;
         line-height: 19px;
         display: block;
    Normally setting a height on a container which you have no control over is not a good idea. The text can be enlarged and that will throw everything off. The best way is to set no heights at all but use padding and make sure your background image is flexible enough to accommodate the text enlargement.
    ul.MenuBarHorizontal a {
          padding: 12px 12px;
         display: block;

  • How can I show I'm avaiable online with Face Time

    How can I show I'm avaiable online with Face Time

    I believe you can only view one time zone at a time.
    Assuming you have checked Calendar > Preferences > Advanced > Turn on time zone support, you can change which time zone you are viewing right now in the upper right of the Calendar window, just to the left of the search bar.

  • HT4743 I just purchased an iTunes TV show and it successfully downloaded. It is now saying that I do not have the proper version of QuickTime on this version of iTunes (10.6.3). How can a show I purchased be incompatible with the latest version of iTunes?

    I just purchased an iTunes TV show and it successfully downloaded. It is now saying that I do not have the proper version of QuickTime on this version of iTunes (10.6.3).
    How can a show I purchased be incompatible with the latest version of iTunes?
    I want a refund, but I can't even figure out how to request one through support. Super frustrated and long time Apple customer.

    After a day of trying, both iTunes and my Apple TV are telling me that the episodes of Scooby Doo I purchased are incompatible due to QuickTime. I still don't understand how I purchased something from iTunes that doesn't work with iTunes.
    the exact error I receive when I try to play an episode is the following:
    "This movie requires QuickTime, which is not supported by this version of iTunes."
    Any advice would be great!

  • How to hide/show dashboards for user/groups

    Hi,
    Please help on how to hide/show dashboard menu/sub menu to users/groups based on their profile settings.
    thanks in advance.
    regards,
    kumar.

    Hi Jinu,
    1) Do some or all of those subreports span multiple pages?
    2) Do each of the Subreports start on a new page?
    If yes, for both, then here's what you need to do:
    1) Create a formula (@True) with this code:
    shared booleanvar SetStatus:= True
    2) Create another formula (@False) with this code:
    shared booleanvar SetStatus:= False
    Drag and drop the @True formula on the details sections for which you want the Page Footer to be suppressed.
    Similarly, drop the @False formula on the details sections for which you want the Page Footer to show up.
    Then, go to the Section Expert > Select Page Footer c > Click the formula button beside Suppress and use this code:
    shared booleanvar SetStatus;
    -Abhilash

  • Generate report to show all users and groups in Shared Services in EPM 11x

    Hi,
    Is there any way to generate a report (like a migration report or job status report) which can be generated through workspace/shared services 11.1.1.3 so that my admin can look at all the users and groups created. Something that I can view and probably print out? Any suggestions?
    ~Adeeba

    Yes, I knew this one. This basically shows me the users and groups assigned specific provision access. Is there any way to view a report that shows which users and groups have access to dimensions of an individual planning application?
    ~Adeeba

  • How do you show all open windows in all applications?

    Previous to Lion, I used to be able to go to a hot corner and all of the open windows in all applications would appear neatly side by side. Now I get stacks of windows grouped by application. How can I go back to the old way where every window was visible? This is helpful in Photoshop when I need to see all of the images I am working on and all of the images on my website in Safari.

    You don't have a hot-corner for that anymore.
    You use a gesture for that now. You can either 4-finger swipe down, or place the tips of your fingers in the center of your track pad.  Your fingers should be bunched up and touching each other.  To show all windows, expand your fingers, as if you were showing someone "5" on your fingers.

  • How can I show all the results returned by a sql query?

    Hi guys,
    I need your help.
    Let's say I have one table: TableA. Fields of TableA are aleg, anon, apes. The following sentence can return, in general, several rows: select anon from TableA where aleg = somevalue. I'd like to show the result of column anon but no luck. If I try to show the results in a TextArea and the origin is an sql query only shows the first row value. I tried Show as: show as text (based in PLSQL) and coding an anonymous plsql block as
    DECLARE
    v_anon TableA.anon%TYPE;
    CURSOR v_cur IS
         select anon from TableA where aleg = somevalue;
    BEGIN
    OPEN v_cur;
    LOOP
    FETCH v_cur INTO v_anon;
    EXIT WHEN v_cur%NOTFOUND;
    :FIELD_IN_FORM := v_anon;
    END LOOP;
    CLOSE v_cur;
    END;
    but in this case it's not shown any result.
    So the first question is what kind of field should I use to show the result. And the second one is what can I do to being able to show all the results returned by the query (provided that is more than one single row).
    regards

    Hi Denes,
    Just starting with apex. I think I know how to show the results in a report region. I've simplified the posted question.
    A more detailed question would be: Suppose you have a region where you have put several text areas to accommodate the result of a multi-column query (lets say for TableA) that only returns one row, each column value returned put in a different text area. Also you want to show the values of other fields in TableB that depends on some value just retrieved from TableA and that you want all values retrieved (from TableA and the linked TableB) to be show in the same region. Is that possible? If yes, how?
    Thank you in advance

Maybe you are looking for

  • Can you edit a person from one photo and add them to another photo?

    Can you edit a person out of one photo and add them to another photo?  Like if you need the head shot from one photo to replace closed eyes in the other photo?  Thanks.

  • Show/Hide tabs in top level navigation of a role based on assigned services

    Hi, I have an interesting requirement. I have created an overview page in abap web dynpro which has links to various services. Based on the r3 roles assigned to the user, we need to show/hide the services in the overview page and top level navigation

  • Wireless KB Connection

    I have a Mac Mini and wireless keyboard that have been terrific for about three years. My KB just stopped responding and I can't log on to diagnose the issue. When I turn the KB on, the green LED on the base of the KB lights up green then begins a pa

  • You cannot open rows in the document  [RDN1.LineStatus][line: 0]

    Hi Expert, I am getting a Error while Adding Sales Return You cannot open rows in the document  [RDN1.LineStatus][line: 0] Can Any One have Elaborate this Issue. Thanks Mritunjay

  • Where are Windows 7 x64 drivers for the 444635u?

    I've looked around, all I can find are Vista/XP drivers.. I know there's lenovo's main support page, but there's also the consumer-support page.. Which one am I supposed to use?? Can someone link me to the latest drivers for Win7 x64 for the 444635u