Studio : Chart Based on day/month/year

In Studio , There is a requirement for us to display chart based on day/month/year .
Since Date attribute is not displayed as a Dimension in the chart configuration list , I have divided  date attribute into  day/month/year attributes and based on that I generated a sample chart
But now I'm facing with a problem
Suppose there are records for only July and Sep then the chart shows up for July and Sep , It doesn't show up for august.
I agree that there are no records for august in my data domain that is the reason august is not displayed in the chart . But as per our requirement we should display august as well with zero count.
I'm curious to know if there is any way to do this .

The idea behind the calendar record type is it is a secondary, new record type you're introducing that compliments your "sales" record type.  The RECORDs you provided would be your "sales" record type, not your "calendar" record type.  To continue with your example, your "sales" records would look like what you provided:
=============== RECORD ==================
Id: 1
sales_amount : 1000
Month: Oct
RecordType: sales
date: 2012-10-01T00:00:00.000Z
day: 01
year: 2012
=============== RECORD ==================
Id: 5
sales_amount: 1000
Month: Dec
RecordType: sales
date: 2012-12-01T00:00:00.000Z
day: 01
year: 2012
==========================================
And your "calendar" record type would be loaded subsequently.  I usually provide one Endeca record for every day for this record type:
=============== RECORD ==================
Id: 1
Month: Oct
RecordType: calendar
date: 2012-10-01T00:00:00.000Z
day: 01
year: 2012
=============== RECORD ==================
Id: 2
Month: Oct
RecordType: calendar
date: 2012-10-02T00:00:00.000Z
day: 02
year: 2012
==========================================
(and so on, one for each day up to today...yawn)....
=============== RECORD ==================
Id: 790
Month: July
RecordType: calendar
date: 2013-07-31T00:00:00.000Z
day: 31
year: 2013
==========================================
Thus, when you write an EQL statement like:
RETURN foo AS SELECT
SUM(sales_amount) AS "TotSales"
GROUP BY Month
You will get a Month bucket for every month, where the "calendar" record type will be sure to offer a month where sales don't offer it...aka. fill in any "holes".
HTH,
Dan
http://branchbird.com

Similar Messages

  • Get amount of megabytes for the message transfer per day, month, year

    Dear experts,
    can you please tell me the name of the report which can be used to get the amount of megabytes for the message transfer per day, month, year etc.? I can't find it in our system.
    Best regards,
    David

    Hi,
    Check this blog: /people/gourav.khare2/blog/2007/12/12/interesting-abap-tables-in-xi-150-part-i
    SXMSPFRAWH: this table contains runtime performance data for successful message and sender and receiver information is stored as address id that derive information from SXMSPFADDRESS, from this table you can find out volume and latency also.
    Regards,
    Gourav

  • Setting 'Day Month Year'.

    The system pref. is set to 'Day-Month-Year' but iCal shows
    'Month-Day-Year' how can this be changed

    Welcome to the discussions, Edward. Have you quit and restarted iCal since setting the system pref?
    AK

  • How can I change , in my Calander month/day/year to day/month/year

    My Calendar shows the date in the form of the U.S. in Mozilla Firefox and the repeat in Windows Live Mail shows it the way I need it i.e. day/month/year. How can I change this ?

    Please change dates in Calender to read day/month/year

  • I need FM calc. days/months/years between 2 dates but computes the work day

    I need FM calc. days/months/years between 2 dates but computes the work day.
    someone knows ?

    Hi,
    The FM is 'FIMA_DAYS_AND_MONTHS_AND_YEARS'
    Check the following example:
    DATA: EDAYS   LIKE VTBBEWE-ATAGE,
          EMONTHS LIKE VTBBEWE-ATAGE,
          EYEARS  LIKE VTBBEWE-ATAGE.
    PARAMETERS: FROMDATE LIKE VTBBEWE-DBERVON,
                TODATE   LIKE VTBBEWE-DBERBIS DEFAULT SY-DATUM.
    call function 'FIMA_DAYS_AND_MONTHS_AND_YEARS'
      exporting
        i_date_from          = FROMDATE
        i_date_to            = TODATE
      I_FLG_SEPARATE       = ' '
      IMPORTING
        E_DAYS               = EDAYS
        E_MONTHS             = EMONTHS
        E_YEARS              = EYEARS.
    WRITE:/ 'Difference in Days   ', EDAYS.
    WRITE:/ 'Difference in Months ', EMONTHS.
    WRITE:/ 'Difference in Years  ', EYEARS.
    INITIALIZATION.
    FROMDATE = SY-DATUM - 60.
    Regards,
    Bhaskar

  • How do i parse a date binding into day month year

    <c:set var="test" scope="page" value="${bindings.StartDate1}" />
    how do i pars off individual day month and year values so i can load them
    into text boxes?

    use calendar insteed of date...
    the difference is easy to find out:
    long diffInMillis = calendar1.getTimeInMillis() - calendar2.getTimeInMillis()
    hope this helps..
    visit >> http://www.menzsoft.ch <<
    rgds
    chris

  • Epoch seconds to Day, Month, Year

    I have a date in terms of epoch seconds (stored as a long) and I want to write a fcn which can conver those second in the year, month and day that it corresponds to. Any ideas?
    public void epoch(long epoch) {
    String year,month, day;
    <insert code here>
    System .out.println("year: " + year + " month: " + month + " day:" + day);
    }

    http://java.sun.com/j2se/1.5.0/docs/api/java/util/Date.html#Date(long)
    http://java.sun.com/docs/books/tutorial/i18n/format/simpleDateFormat.html

  • How to get days , months , years between two dates with groovy

    I've a table that contains Start Date and End Date and I want to get the difference between then in this format 2 days , 1 moth , 1year
    Can I make this with Groovy
    I've added a transient attribute to a view object and make its value      return (EndDate) - (StartDate); but this returns the difference of days like 200 day
    I want it in this format 2 days , 1 moth , 1year

    AFAIK - You cannot do it in groovy.
    You can achieve the same using the transient variable approach.
    Create a VORowImpl Class for VO, and in the getter method of the transient variable - do the necessary logic and return the string as required in your use-case.
    Thanks,
    Navaneeth

  • HT1668 I am seeing "all" my emails including those that I deleted days, months, years ago in the "spotlight search" screen of my iPad and iPhone. All account trash folders are emptied. How to remove?

    Hello.. I'm seeing all my emails from all my accounts located in the "spotlight search" feature of my iPad and iPhone4. What's most troubling is, there are emails that have previously been deleted. I have confirmed over and over that all trash folders for accounts are emptied as well as all other folders.. I empty the trash very regularly. When I select an email from the list in the spotlight screen, it will take me to an in box for that email where it may or may not exist.. Often it opens another persons email all together.. The bottom line is that I can not delete these emails and it's very nerve racking... Any help is greatly appreciated. Than you..

    Thank Goodness for Time Machine.  I was able to restore from a recent back up.
    However as a follow up I now have a glitch in that Icloud email will only restore from oldest to newest.  My Icloud.com account is fine. All my email are in chronological order from newest to oldest. 
    With the help of support from this site I was able to confirm that the problem is not resolved by disabling mail and then enabling again or even from deleting the Icloud Email Account and then reloading.  It is exactly the same.
    The only way I can get yesterday's email on my devices is to load 5000 emails starting back in 2010.
    I think I caused a glitch when I was restoring from Time Machine.  It was late at night and it was taking a long time so I went to bed thinking it would just continue on.  Well i should have taken my computer out of Sleep Mode because my Imac must have powered down somehow causing the glitch. 
    Although you would think that I would also have a corrupted email account on Icloud.com
    who knows....... the reason why i tend to live with problems rather than correct them because i hate it when stuff like this happens when you do................

  • Sort pictures into subfolders by day, month, year

    How would I be able to sort a bunch of pictures into folders by the image's exif data?  Like, if a picture was taken on 10/20/2008 it would be inside of the folder "20" and that would be inside the folder "20" and that would be inside of the folder "2008"

    Found an application called DateTree that does exactly what I want.

  • Can I change the day/date format from US (month day year) to UK (date month year)?

    When I view databases through Firefox, the date/day format is set at month, day, year (US style), whereas I need day, month, year, I work in the UK and the "wrong" format is VERY confusing and could lead to errors/mistakes. IE has that format but I don't want to revert to using that.

    Gingerbread Man, thank you VERY much!! I followed your instructions and it works perfectly. I am a happy person :-))

  • Adding Day, Month, Date,Year, Time to Menu BAR

    My Menu bar now shows "Thu 9:14 PM". I want to change it to Day, Month, Year, and Time. I presume this is done by Apple>System Preferences>Language & Text>Formats>Customize, but I can't get any further, and the words "Type text and drag element to create a custm format" doesn't help. Type where? Drag from where? Drag to where?

    Drag an element from the list below into eg the Short box and add text eg : instead of /. But I don't think this will give you what you want - go instead to Date & Time Preferences/Clock, and select Show the Date. But it won't give you the year.

  • New library did not give me folders divided by day, month and year.  My previous one did.  How do I make this happen?

    Hi All
    Just changed external hard drives and am setting up a new library to pull all the new locations together.  How do I get the library to be subdivided by day, month, year?  It came up just ordered by date but not subdivided.  Seemed simpe but I have been at it for hours with no success.
    Thanks,
    Henry from Vermont

    Rob
    Thanks so much for the quick response.
    History:
    started in LR4 in PC
    Moved to Mac and OSX with LR5 (Mac Pro Book retina with solid state drive
    so fast)
    I had my PC original photos on an external PC drive that was filling up and
    only could be red by mac but not written.
    Just bought a 1tb drive and formated it for Mac
    Moved through finder all photos and LR catalogs from PC 640gig drive to new
    mac formated 1tb and then imported them which did not take a long time and
    did not bring originals into the mac.  This was a new catalogue.  I still
    have the old one and the files on the PC external drive.
    LR finds and displays these originals (a mix of raw and jpegs with a few
    tifs.  A 14 year collection, perhaps 18,000 images) but the list is not
    subdivided in any way, just one large group of photos in date taken
    sequence.  The old catalogue was subdivided by day, month, year.  I may
    have created duplicates but have not checked.  I had a backup copy of some
    lost photos which imported.
    My goal is to have all photos broken out by date.  I must retain edited
    results and would like to maintain meta data.
    Is this enough info?  What else would you like?
    Thanks,
    Henry

  • Day/Month appearing as Day of Year/Month

    When I look at dates displayed for Time Machine (right hand date bar) I notice they display as Wednesday, 132 May 2010 then Wednesday, 139 May 2010 etc. Is there a way to get back to the actual day/month/year format I specify for an Australian machine? I have noticed similar date displays within Software Update and iSync.

    Thanks, the Region under Language and Text>Formats was listed as Custom. I changed it to Australia and this had rectified the problem when I Restarted and checked Time Machine.
    Cheers Gavin

  • FM to get previous fiscal month/year and calendar month/year for a date.

    Hi All,
    I am having a requirement to extract some data based on either the previous fiscal month/year or the previous calendar month/year. There is no company code input to find the fiscal/calendar month/year.
    At selection screen, user can select either fiscal or calendar selection.
    Based on the selection, the data will be extracted.
    For the system date, we need to calculate previous fiscal month/year or previous calendar month/year and populate the calculated data back to the selection-screen.
    Can you one of you please suggest an FM to find previous fiscal month/year and previous calendar month/year.
    Thanks in Advance,
    Regards
    Gowthami

    Hi Gowthami,
    You can use following function module to calculate previous / next day or month or year.
       call function '/SAPHT/DRM_CALC_DATE'
          exporting
            date      = sy-datum
            days      =
            months    =
            sign      = '-'
            years     =
          importing
            calc_date = .
    Here, you can give '-' to sign, if you want previous day / month / year.
    Here, you can give '+' to sign, if you want next day / month / year.
    And depending upon your requirement, you can pass suitable value to days / month / year.
    e.g. To calcualte last month,
       call function '/SAPHT/DRM_CALC_DATE'
          exporting
            date      = sy-datum
            days      =
            months    = 1
            sign      = '-'
            years     =
          importing
            calc_date = wv_prev_month.
    so it will give '23-01-2008' . Then convert it in the required format as per your requirement using string function concatenate.
    Hope this help you.
    Regards,
    Anil

Maybe you are looking for

  • Sharing Music between User Accounts

    Hello, I've been trying to share a single itunes music folder between two accounts on the same computer. I've read dozens of threads on this topic in these forums, and still can't seem to get this to work. Right now, I'm going back to basics and simp

  • I would like to add a new Canon camera profile to the RAW interface

    Hi,  I would like to add a new Canon camera profile to the RAW interface. I have recently installed the new camera profile 'Studio Portrait' which i download from here: http://www.canon.co.jp/imaging/picturestyle/file/studio-portrait.html When I open

  • How do I know if my iPod is a G5?

    This is a very basic and actually silly question but how do I know if my iPod is a 5th generation? I bought it back in February 2006 from the apple store. It has video capabilities but when I tried using the headphone plug to connect with my TV set i

  • PreparedStatements and MySQL Connector/J

    Hi All, I was wondering what is the exact SQL statement that is passed to MySQL server when we use PreparedStatements. I was trying using MySQL Connector/J, type4 driver. I tried with a simple servlet     public void doGet(HttpServletRequest request,

  • How to change order header data before SAVE in CRM 2007

    Hi, I want to modify service order header value before saving it, to achieve this : 1) Implemented BADI ORDER_SAVE 2) in the method CHECK_BEFORE_SAVE, read order details by using FM CRM_ORDER_READ and done all validations. 3) Now i want modify one fi