Month doesn't appear in the axis for last 12 months

Hi !
I have created a graph which gives records for the last twelve months, my formula is:
if {Commande.DATE} >= dateadd('m',-12,currentdate) and {Commande.DATE} <=currentdate then {Commande.DATE}
At this point everything's fine ,
I have to create another formula to have Month name
from today which mean ,the order should be like this on my graph axis, 1st last month is febuary and last 12 months from today is March
March - April - May - June - July - August - September - October - November -December - January Febuary
here is that formula which I have called Month Sort order:
If month({@last12months})=01then
"Janv" else
if month({@last12months})=02 then
"Fév" else
If month({@last12months})=03then
"Mars" else
if month({@last12months})=04 then
"Avril" else
If month({@last12months})=05then
"Mai" else
if month({@last12months})=06 then
"Juin" else
If month({@last12months})=07then
"Juil" else
if month({@last12months})=08 then
"Août" else
If month({@last12months})=09then
"Sept" else
if month({@last12months})=10 then
"Oct" else
If month({@last12months})=11then
"Nov" else
if month({@last12months})=12 then
"Déc" else ""
in the Graph/Chart expert ,in the resulting dialog box I have set  the following options:
On Change of: i have set the formula Month Sort order which will bring me the  month name  and for the order I have set in the Original order .
It works fine I retrieve records for last 12 months but on  my axis ,the name for
the last 12 months doesn't appear  in this case ( March) it is blank ,I have the records for March but not the month name March in my axis  it show april  to febuary  but not March
Thank you for helping me

Thank you for your reply , but this doesn't solved my problem  ,
I'm using a data from SQL2005 which is a stored procedure ,they have created a datefield named "DATE" and group the data the 1st of each month in this SQL stored procedure ,the only day for each month that I have in this data is the first of each month for each record found ,so I've changed the formula for this, to get records the 1st of each month for the last 12 months :
the new Formula for is:
if >= DateAdd("m",-12,CurrentDate) - day(CurrentDate)+1 and
<=DateAdd("m",-1,CurrentDate) - day(CurrentDate)+1 then
this condition formula bring me _Null datefield_ ,and this is why I see a null label axis at the bottom,do you have an idea how I can eliminate the null datefield , I need to have only the last 12 months data on this graph but I need all data for the past 3 years for 2 other grah on this same report
Thank you very much ,

Similar Messages

  • Getting the data for last month of every year

    Hi,
           How to declare the date if we want to pull the data from the December of every year.
    For example if the query is run in march 2015 and they want the historical data it should pull only the data from dec 2014.
    In the same way if they ran the query in future jun 2016 and if they want to historical data it should pull only data from dec 2015.
    It should not coded manually. Please help me with date format that need to used.
    BALUSUSRIHARSHA

    Please follow basic Netiquette and post the DDL we need to answer this. Follow industry and ANSI/ISO standards in your data. You should follow ISO-11179 rules for naming data elements. You should follow ISO-8601 rules for displaying temporal data. We need
    to know the data types, keys and constraints on the table. Avoid dialect in favor of ANSI/ISO Standard SQL. And you need to read and download the PDF for: 
    https://www.simple-talk.com/books/sql-books/119-sql-code-smells/
    A table has to have a key to be table.  Here is my guess at a repair job: 
    CREATE TABLE Test_Data
    (pu_id INTEGER NOT NULL
      REFERENCES PU(pu_id),
     pu_date DATE DEFAULT CURRENT_TIMESTAMP NOT NULL,
     PRIMARY KEY (pu_id, pu_date),
     x_count INTEGER,
     y_count INTEGER);
    Identifiers are not numeric in a good schema. What math do you do with them? They are also the key in the table that models the entity they identify. Where is the PU table (and what is a PU anyway)? 
    INSERT INTO Test_Data
    VALUES
    (28, '2014-01-01', 10, 20), -- crap! No key in this mess!! 
    (28, '2015-01-01', 30, 20), -- 
    (28, '2014-12-12', 10, 20), 
    (28, '2015-02-02', 10, 20);
    A PIVOT is not a query and not even part of SQL. It is how Microsoft programmers who do not know RDBMS or have a report writer violate the tiered architecture of SQL. We also do not use XML mixed in SQL. It is a bitch to maintain, has poor performance and again
    violates the tiered architecture principle. 
    A query is not sorted because it is a table. A file in COBOL can be sorted and that seems to be what you really want to write. 
    Old COBOL love the Sybase CONVERT() string function to avoid SQL temporal data. 
    We never use SELECT * in production code; Google it. Not only are you generating code, you are generation bad code. 
    Since SQL is a database language, we prefer to do look ups and not calculations. They can be optimized while temporal math messes up optimization. A useful idiom is a report period calendar that everyone uses so there is no way to get disagreements in the DML.
    The report period table gives a name to a range of dates that is common to the entire enterprise. 
    CREATE TABLE Month_Periods
    (month_name CHAR(10) NOT NULL PRIMARY KEY
       CHECK (month_name LIKE <pattern>),
     month_start_date DATE NOT NULL,
     month_end_date DATE NOT NULL,
      CONSTRAINT date_ordering
        CHECK (month_start_date <= month_end_date),
    etc);
    These report periods can overlap or have gaps. I like the MySQL convention of using double zeroes for months and years, That is 'yyyy-mm-00' for a month within a year and 'yyyy-00-00' for the whole year. The advantages are that it will sort with the ISO-8601
    data format required by Standard SQL and it is language independent. The pattern for validation is '[12][0-9][0-9][0-9]-00-00' and '[12][0-9][0-9][0-9]-[01][0-9]-00'
    This will port and waste time calling string function row by row. 
    --CELKO-- Books in Celko Series for Morgan-Kaufmann Publishing: Analytics and OLAP in SQL / Data and Databases: Concepts in Practice Data / Measurements and Standards in SQL SQL for Smarties / SQL Programming Style / SQL Puzzles and Answers / Thinking
    in Sets / Trees and Hierarchies in SQL

  • HT1725 I bought an App last month, doesn't work. consulted the manufacture they sent me to iTunes for refund, reported the problem to iTunes, they sending me back to Manufacturer.

    I bought an App last month, doesn't work. consulted the manufacture they sent me to iTunes for refund, reported the problem to iTunes, they sending me back to Manufacturer. Can someone please assist me on this, I need my refund for this non functional App. BSSoft and iTunes Stores do something here, when I go back to report it again, I get an error message stating "...this problem has been reported or too old to report..."

    Debit card? Are you sure?
    USA iTunes Store does not appear to accept debit cards - http://www.apple.com/legal/itunes/us/terms.html  "The iTunes Store, Mac App Store, App Store, and iBookstore services (“Services”) accept these forms of payment: credit cards issued by U.S. banks, payments through your PayPal account, iTunes Cards, iTunes Store Gift Certificates, Content Codes, and Allowance Account balances."

  • The icon of faceTime doesn't appear in the dock just space for it

    The icon of faceTime doesn't appear in the dock just space for it and i can turn on the faceTime when I click to the space

    If the above doesn't work, try a reset.
    1. Hold the Sleep and Home button down (together)
    2. For about 10 seconds
    3. Until you see the Apple logo (very important)
    4. Ignore the red slider

  • When i select an event for move to trash, it doesn't appear in the trash to be emptied. where is it?

    I have iMovie 10.0.4. When I select an event for 'move to trash' it doesn't appear in the trash to be emptied there. Where is it?

    Thanks for the reply, have checked and that seems to be the problem, I have plugged in my ipad and the missing app has appeared.

  • After I reset my Ipod (deleted all data and settings) windows 7 doesn't recognize by ipod touch, and it doesn't appear in the itunes library or in the device menu, but it does charge. How can I get my computer to recognize it again?

    After I reset my Ipod (deleted all data and settings) windows 7 doesn't recognize by ipod touch, and it doesn't appear in the itunes library or in the device menu, but it does charge. How can I get my computer to recognize it again?

    Refer to this article:
    iOS: Device not recognized in iTunes for Windows
    http://support.apple.com/kb/TS1538

  • HT1382 i got an iPad and all my app's, music,  and movies are on it, but when i try to download some apps to mi iPhone, they doesn't appear on the purchased tab, how could i move them back to itunes so i can access thru iCloud?

    i got an iPad and all my app's, music,  and movies are on it, but when i try to download some apps to mi iPhone, they doesn't appear on the purchased tab, how could i move them back to itunes so i can access thru iCloud? i have an 2nd generetion ipad and an iphone 5, thanks for you answers!

    (I think the daughter got he better end of the deal!)   I believe if you change the password and user id one of the devices it will stop that from occurring. But I'm not the one to tell you how to do it; someone like "Illaass" (Illaass seems to know how to correct / fix almost anything!) will know how if you don't. Just look for the "cat" icon.

  • I just updated to Firefox 4 and my Roboform toolbar disappeared. Following the instructions on your site and Roboform's site did not help. It doesn't appear in the Customize Toolbar window nor in the Extensions list. How can I get it back?

    I followed the instructions on your site and Roboform's site, but Roboform doesn't appear in the Customize Toolbar window nor does it appear in the Extensions list. How can I get the Roboform Toolbar back?

    Here's an interesting bit: iTunes will let me restore my iPod touch from backup: it's still running iOS 4.3.3. I figured as much... there's backups showing in the Preferences -> Devices list for both devices (and even my old, long gone iPod touch 2G), but my iPhone (on iOS5) isn't giving me any such option. I remember I had to downgrade before to get the backup restored (something went haywire in the setup assistant, and I couldn't restore a backup from iTunes there)... If it was possible to go to iOS 5.0 rather than 5.0.1 I would just do the same thing again, but iOS 5.0.1 isn't an option. I attached a screenshot. Hopefully Apple can get this nonsense sorted out; I think iOS 5 might be the root of this, somehow.

  • After upgrading to IOS 5, the edit button doesn't appear in the CONTACTS

    After upgrading to IOS 5, the edit button doesn't appear in the CONTACTS. Any idea, why?

    If you have a gmail, yahoo, or even icloud etc. account go into settings>mail, contacts and make sure you're not syncing through yahoo for example.. Turn that off, if that still doesn't work delete the yahoo account and simply set up the account again..will add the + &amp; edit functions again..

  • When I send emails, my friends told me my name doesn't appear in the "from" column. How do I solve this problem?

    when I send emails, my friends told me my name doesn't appear in the "from" column. How do I solve this problem?

    Badunit, thanks for your reply. I just went into Mail/Preferences/Accounts, "full name" field is filled correctly with my name. This happens to only certain recipients, and not every emails. Sometimes my name shows and sometime it doesn't show. And this only started to occur recently.

  • The download button as described on the HELP page doesn't appear on the page with my downloadable list of songs. How do you down load a purchase? I have made 3 purchases of the same song and can not down load it and the HELP instructions don't help.

    The download button as described on the HELP page doesn't appear on the page listing my purchase.
    The HELP instructions list that such a button must be clicked to down load an item.
    I have made 3 purchases of the same song in an attempt to download it.
    Only one of those purchases appears on the page that list purchases available to down load.
    I wrote out a copy of the HELP page instructions (the page can't be printed) so I could accurately follow it as I tried to do the down load.
    Is there some secret to downloading a purchase or causing the down load button to appear?

    Hello L Swarz,
    Thank you for the details of the issue you are experiencing when downloading your purchased song to your iPod nano.
    I am not sure if you have tried these specific steps, but I recommend downloading the purchased song to iTunes on your computer using the steps in the following article:
    iTunes 11 for Windows: Download previous purchases from the iTunes Store
    http://support.apple.com/kb/PH12491
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

  • The list doesn't appear in the input field

    Hi All
    The list doesn't appear in the input field when I make input or press the BACKSPACE key.
    Notes:
    I made this modifications:
    1. In connection properties I set High speed connections (LAN)
    2. In local data settings I set the historial to ON
    we had SAPGUI 620 in workstations and now we have installed SAPGUI 710
    Thanks for your time and help
    Message was edited by:
            Genner Sanchez

    Hello Genner,
    see note 399180:
    o  FIELD NAME LENGTH
       The history is only written for field names with a maximum length
       of 40 characters. In earlier SAP GUI versions, this length was
       restricted to 30 characters. The history file must be deleted to
       achieve extended support.
    o  FIELD LENGTH
       If the length of the input field is 60 or more characters,
       history is not written either. "Input field length" refers to the
       dictionary length of the field, not to the "visible length" on
       the screen. (The restriction of the input data to 60 characters
       results from the fact that text editors were often built as lists
       of text fields with a length of 60 in the past. In those editors,
       this history was quite annoying.  On customer request, this was
    Regards, Martin

  • IPhone 4 doesn't appear in the portable device list of windows 7

    Hi there,
    My iPhone used to appear in the portable device list in windows 7, so I was able to open iPhone in Explorer and copy the photos from the camera roll.
    In iTunes, when asked to update it, a problem occurred when installing QuickTime. I had to unistall iTunes+QuickTime and download the last version from Apple website. Installing was performed Ok but since then the iPhone doesn't appear in the portable device list anymore.
    I tried to restart the service, to re-install it, but nothing.
    Is there any other way to copy the photos from the camera roll?
    Anyone please could give me any help?
    Thanks in advance.

    No dice. See my comment above; I already turned that on before posting.
    To get your device to appear in iTunes and to automatically sync with iTunes, simply disable backup to iCloud on your iOS device. Voila! Your iOS device will appear in iTunes and auto-sync the selected content. For example, I'm now subscribing to a ton of podcasts that I used to manually download one-by-one b/c the tethered syncing process was just too painful. Now that my iPhone 4S appears as an always-connected device in iTunes, the latest versions of my podcasts shall auotmatically appear on the iPhone when I awake in the morning before my long commute to work.

  • My iPhone doesn't appear in the finder

    When I connect my iphone to my computer it doesn't appear in the sidebar. How to solve this problem?
    thanks by advance for your answers!!

    It shouldn't appear in the finder sidebar, only the iTunes one (and iPhoto too).

  • Line-In doesn't appear in the mixer (Audig

    The Line-In is dead, and I suppose it's because this source doesn't appear in the mixer.
    Because of this, I'm cannot enable the soucre. And then I get no soud.
    If I choose "SB Audigy 2 AZS Audio" as default for recording, I'm missing the option to choose Line-In in standard Windows mixer. (The slider isn't there.)If I choose "C-Media Wava Device" as default for recording, I can choose Line-In in standard Windows mixer, but I don't get any signal.
    I have installed the last drivers.
    Hope you can help me!

    OK, sound some better.
    Can you run the Creative diagnostic tool without errors?
    If you do not find next programs mentioned, you have to install them
    (Creative CD bundled with cadr).
    Have you AudioHQ on System Control Panel.
    - Is speakers set to be muted when using headphones. Uncheck this.
    - options : is SB Audigy xxxxx selectedt as sound device?
    Control Panel:Sounds & Multimedia
    - Audio : is Sound Play Back devic selected to be SB Audigy xxxx
    - is all behind Volume (button) set not muted
    Check if mic and midi settings are like you want.
    - is all behind Advanced (button) set like it shoul be
    Hardware : Creative audigy xxx - properties : Creative xxxx (WDM)
    - is use this audio device selected
    - is do not map through this device selected
    Creative Surround Mixer
    Speaker settings
    - set same settings as above (and select syncronization with control panel)
    - unselect digital output only
    Rec settings (red portion with slider)
    - select AnalogMixer as source
    - check if record without monitoring is not checked
    - disable unneeded inputs (mic, aux, ...) - wave, volume, linein should be ON
    - set input and recording levels
    EAX -panel
    - switch off all effects if you do not need them
    This come into mind now ... hope it helps ...
    .jtpMessage Edited by jutapa on 04-07-2005 02:47 AM

Maybe you are looking for

  • HOST command not working in forms 10g

    Hi, I have migrated forms 6i to forms 10g, and having a requirement to open sqlplus prompt using a form menu. I have used the below command: - "host('sqlplus '||user_name||'/'||pass||'@'||sid, no_screen);" But I am not able to get the sqlplus window,

  • I've installed Firefox on a new computer, but my bookmarks from previous computer are not listed in the Bookmarks menu. Suggestions?

    When I sign in to my homepage -same homepage as on previous computer / igoogle firefox browser- there are no listings in my Bookmarks menu. I assumed the bookmarks would automatically appear once I signed in. Did I assume incorrectly? If so, is there

  • System creation error

    Hi,           I am using EP 7.1,NW04S. I am trying to create a system .For that here I followed the navigation like System administrationSystem confi syatem Landscape NewSystem(from templates)selected SAP system using dedicated application serve

  • Account info is updated but when I try to buy music I can't

    When I try to buy music off iTunes it says I have to verify my account info. So I do it's legit and then I press done it says I need to talk to iTunes support

  • Xserve RAID - Two Fibre Ports

    I just wanted to clarify the purpose of the two fibre ports on the Xserve and Xserve RAID. Does using one port allow you to access both sides of the Xserve RAID or is it one port for each side? Thanks.