Display ISO week number instead of date on x axis in Bar Chart

Hi,
I've created a simple SSRS report based on bar chart that shows several milestones. Everything works fine for me except I’m not able to convert the date into ISO week number format.
I played around with different approaches. I was able to convert the date into an ISO week Format directly on the SQL Server. That
wasn't a problem.
But unfortunately I’m not able to display the week number on the horizontal axis in my Bar Chart. I tried both fields: TaskFinishDate and TaskFinishDateMS...
I would like to show the ISO week number instead of the date within the Bar Chart on the horizontal axis.
Any ideas/hints/help is really appreciated!
Thanks,
Mike

Hi Mike,
Per my understanding that you want to get the week number of the year based on the field "TaskFinishDate" which is datetime type and display the week number in the x-axis instead of the field "TaskFinishDate", right?
I have check the snapshot you have provided and it seems you have change the format of the datetime field in the x-axis like "dd.MM.YYYY", If you can't make the week number to display correctly in the x-axis, the issue can be caused by you haven't
change the format to Number in the category.
Details information below for you reference:
I assume you have use expression in the Label like below to convert the datatime TaskFinishDate in to ISO week number like below:
=DatePart(DateInterval.WeekOfYear,Fields!TaskFinishDate.Value)
or
=DatePart("ww",Fields!TaskFinishDate.Value)
Right click the X-axis and select the "Horizontal Axis Properties", then click the Number to change the format to "Number" as below:
Preview you will get the weeknumber display in the x-axis correctly.
If you still have any problem, please feel to ask.
Regards,
Vicky Liu
If you have any feedback on our support, please click
here.
Vicky Liu
TechNet Community Support

Similar Messages

  • How to format a date to display the ISO week number in BI Publisher ?

    Hi there,
    I need to format a date to display the ISO week number in BI Publisher.
    I've tried the following <?format-date:NEED_BY_DATE;'WW'?>, but it returns a week number (1-53) where week 1 starts on the first day of the year and continues to the seventh day of the year, which is not what I want.
    I want the ISO week number (1-52 or 1-53), the one implemented by the 'IW' format mask of the Oracle PL/SQL TO_CHAR() function for example.
    I've tried using 'IW' format mask, but it is not recognised by BI Publisher.
    Also, as I'm working on an RTF template, I've tried 'IW' as MS Word date format, but it is not recognised by MS Word :-((
    Any help would be much appreciated,
    Regards - Hugues

    Hi,
    Thank you for the post.
    The thing is I don't have access to the query, unless I modify a standard E-Businees Suite view (one of those used to generate the PO document in Purchasing).
    Regards - Hugues

  • Enhancement request: ISO week number

    M language includes a function that returns the week number from a date: Date.WeekOfYear
    However, it is much less flexible than the Excel 2010 Worksheet function WEEKNUM, which accepts a "return type" parameter. It can be used to return a ISO 8601 compliant week number. Ex: WEEKNUM(date,21).
    It would be interesting to align the M function Date.WeekOfYear to the Excel WEEKNUM.
    For those confronted to the challenge of building with Power Query a time dimension that includes an ISO week number, the following M code implements the formula found
    in this blog. If you already have a column "Date", you can use the following code to add ISO year and week number columns:
    InsertISOYear = Table.AddColumn(previousstepname, "ISOYear", each Date.Year(Date.AddDays([Date],3-Date.DayOfWeek([Date],1))), type number),
    InsertRefDate = Table.AddColumn(InsertISOYear , "RefDate", each #date([ISOYear],1,3)),
    InsertISOWeek = Table.AddColumn(InsertRefDate , "ISOWeek", each Number.IntegerDivide(Duration.Days( [Date]-[RefDate])+Date.DayOfWeek([RefDate],0)+6,7), type number ),
    InsertWeekInt = Table.AddColumn(InsertISOWeek , "WeekInt", each [ISOYear] * 100 + [ISOWeek], type number),
    InsertCalendarWeek = Table.AddColumn(InsertWeekInt , "WeekInCalendar", each Number.ToText([ISOYear]) & Number.ToText([ISOWeek],"-W00")),
    RemovedColumns = Table.RemoveColumns(InsertCalendarWeek ,{"RefDate"})

    I ran into the same issue, but had problems copying your solution. However, I think there is a quite simple alternative by using the Date.AddDays function. So instead of using e.g. Table.WeekOfYear([Date]) use Table.WeekOfYear(Date.AddDays([Date],-1)).
    That substracts one day from the date and gives the Monday-Sunday weeknumber.

  • How to get ISO week number?

    hi,
    I need to interact with a server that expects to be passed the ISO week number. The Calendar class doesn't seem to support this though (although the documentation claims that it is ISO 8601 compliant).
    For instance the web page here gives today (Jan 10th 2005) as being in Week 2
    http://personal.ecu.edu/mccartyr/isowdcal.html
    but this code snippet returns "Week 3"
    import java.util.*;
    public class WeekOfYear {
         public static void main(String[]arg) {
              Calendar c = Calendar.getInstance();
              System.out.println("Week "+c.get(Calendar.WEEK_OF_YEAR));
    }does anyone know a correct way of getting the ISO 8601 Week number without reimplenting a lot of delicate code?
    thanks,
    asjf
    ps. of course for now, and the rest of 2005, i'm going to hard code subtracting 1 as a gratuitous hack :o)

    hi,
    thanks - i did check the docs :)
    the problem is that Calendar's idea of what the first week in the year is differs from the ISO standard
    the problem is that the ISO standard defines the first week of the year as that containing the first Thursday (ie some days may become part of the previous year's weeks)
    and Calendar defines it as the docs state - so to change the value returned would mean you having to change the "FirstDayOfWeek" or the "MinimalDaysInFirstWeek" - which (without checking recently) I think the ISO standard also defines so you can't safely change these
    I might raise a RFE against Calendar about this in a week or two since it seems quite important?
    thanks,
    asjf

  • How to display only Day value instead of DATE in Bex Report

    Hi Experts,
    We have a Month to date Report, in this report we need to display only day value instead of DATE value,
    Like
    if Date is 14.05.2010 we need to show only  14
    Regards,
    Chandra

    Hi ,
    Thanks for Quick Response
    we does have the option to create the char(calday or ...) value variable replacement with char (calday or ...) info object, we can  replace with Report r variable value only not with info object.
    i hope we can replace the with info object only with formula variable with replacement.
    My BEx Report is Designed like
    Columns
    0Calday
    Rows
    Plant
    Keyfigures
    Actual
    Plan
    Report output Looks like month to date
    0CALDAY            01.06.2010   02.06.2010  03.06.2010
    P1  ACTUAL            10                     8                    4
    P1  PLAN                 15                     6                    2
    P2  ACTUAL              5                   10                     7
    P2  PLAN                  4                      8                    3
    Report should be
    0CALDAY            1    2     3
    P1  ACTUAL      10     8      4
    P1  PLAN           15     6     2
    P2  ACTUAL        5    10    7
    P2  PLAN            4      8     3
    please let me know how can i achive this
    Regards
    Chandra

  • How to calculate week number from system date

    Hi experts,
    how to calculate week number from system date  ?
    thanks.
    SK

    hi,
    The above FM can be used for BADI or customer exit, if it is design level then you can use formula as well, under formula date functions you can use DATE_TO_WEEK.
    regards,
    Arvind.

  • Imessage only displays the phone number instead of the name after the last update. any idea how to fix it?

    imessage only displays the phone number instead of the name after the last update. any idea how to fix it? All messages had the names displaying correctly before the last update.

    From the menu bar, select
     ▹ System Preferences... ▹ Language & Region
    From the Region menu in the window, select one of the preset regions. If one is already selected, choose a different one, then change it back. Close the preference pane and test.

  • How can I show a 0% range in the data value label on a bar chart thanks?

    How can I show a 0% range in the data value label on a bar chart thanks?

    I'm not sure what the question is. 
    I know that if you have a bar chart and one of the categories (X-axis) has bar (Y value) equal to 0%, no bar is plotted for that category. Even the addition of a stroke (line) around the bars doesn't make one appear for 0%.  The only automatic way I know of to make it look like there is data in that category is to add the value labels to the bars. Inspector/Chart/Series, select one of the bars on the chart, click on "value labels". Another method that is a workaround is to fudge the number a little in your table so that instead of 0% it is a very small %.  This will get you a thin line on the chart.
    But if your question is about the value labels (the numbers that display on or in the bars) and you are not getting one for a bar that is supposed to be 0%, it probably means your table doesn't actually have a 0% in the corresponding cell. A blank cell in the table will not get a value label.

  • Some incoming calls and messages display the phone number instead of name

    I recently upgraded from a Blackberry to an iPhone 4s. When I receive a call or SMS on the 4s it often displays only the phone number instead of the name at the top of the screen even though I the correct name and phone number are entered the correct fields in the iPhone address book. I assume there was some kind of conflict when I imported the names from the blackberry (or from my Google contacts list - I can't remember which now). Have any of you experienced this problem? How did you get it resolved?

    Umm,
    I cannot replicate this.
    If I deliberately send to my iPhone Number and reply to that (My iPhone is set to use the iPhone Number) after I have moved Messages behind another app the Notification show my Name and not the number.
    I am using iCloud to sync the Contacts apps.
    8:25 pm      Monday; April 20, 2015
    ​  iMac 2.5Ghz i5 2011 (Mavericks 10.9)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad

  • Displaying graphical representation of data in hash tables as bar chart?

    I want to be able to display results in my hash table as a bar chart i don't know how to do it could someone help me I've looked through tutorials couldn't find any information that actually helped.
    In my program it doesnt allow matching the capital and small letters
    so for instance if I already have Mike it allows for me to input mike in again so there are 2 Mikes.
    I also want to do a simple user interface the tutorial for it is not simple to understand could any one tell me how to create a simple user interface like putting a button into a place wher i want it to be.
    im not asking anyone to do it for me i just want people to show me how to do it
    thank you
    Edited by: Tek_Hedef on Dec 1, 2007 4:30 AM

    Thanks for the ideas pal but I did have a go at it but my bit of code is making it crash but i removed it now so here's what I have so far
    import java.io.*;
    import java.util.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.event.*;
    class StudentDetails extends JFrame implements ActionListener
         private JTextField StudentNameTxt, StudentMarkTxt;
        private JButton DeleteStudentDetailsBtn, DisplayAllStudentsBtn, SearchStudentBtn, FailedStudentsBtn, PassedStudentsBtn, DistinctionStudentsBtn, AddStudentDetailsBtn, ExitBtn;
        private JPanel DisplayStudentDetailsPnl;
        private JLabel StudentNameLbl, StudentMarkLbl;
        private JTextArea DisplayResultsTxt;
        private Hashtable StudentDetailsTbl;
        private String StudentName, StudentMark;
        public static void main(String[] args)
            StudentDetails frame = new StudentDetails();
             frame.setSize(600,600);
            frame.createGUI();
            frame.setVisible(true);
        public void display(JPanel DisplayStudentDetailsPnl)
            Graphics paper = DisplayStudentDetailsPnl.getGraphics();
            paper.setColor(Color.white);
            paper.fillRect(0, 0, 500, 500);
            paper.setColor(new Color((int)(Math.random()*255),(int)(Math.random()*255),(int)(Math.random()*255) ));
        private void createGUI()
            setDefaultCloseOperation(EXIT_ON_CLOSE);
            Container window = getContentPane();
            window.setLayout(new FlowLayout());
            StudentDetailsTbl = new Hashtable();
            StudentNameLbl = new JLabel("Student Name");
            window.add(StudentNameLbl);
            StudentNameTxt = new JTextField(15);
            window.add(StudentNameTxt);
            StudentMarkLbl = new JLabel("Student Mark");
            window.add(StudentMarkLbl);
            StudentMarkTxt = new JTextField(3);
            window.add(StudentMarkTxt);
            AddStudentDetailsBtn = new JButton("Add Student and Mark");
            window.add(AddStudentDetailsBtn);
            AddStudentDetailsBtn.addActionListener(this);
            DeleteStudentDetailsBtn = new JButton("Delete Student");
            window.add(DeleteStudentDetailsBtn);
            DeleteStudentDetailsBtn.addActionListener(this);
            DisplayAllStudentsBtn = new JButton("Display all Students and Marks");
            window.add(DisplayAllStudentsBtn);
            DisplayAllStudentsBtn.addActionListener(this);
            SearchStudentBtn = new JButton("Search Student");
            window.add(SearchStudentBtn);
            SearchStudentBtn.addActionListener(this);
            FailedStudentsBtn = new JButton("Students which Failed");
            window.add(FailedStudentsBtn);
            FailedStudentsBtn.addActionListener(this);
            PassedStudentsBtn = new JButton("Students which Passed");
            window.add(PassedStudentsBtn);
            PassedStudentsBtn.addActionListener(this);
            DistinctionStudentsBtn = new JButton("Students with Distinction");
            window.add(DistinctionStudentsBtn);
            DistinctionStudentsBtn.addActionListener(this);
            ExitBtn = new JButton("Exit");
            window.add(ExitBtn);
            ExitBtn.addActionListener(this);
            DisplayResultsTxt = new JTextArea();
            DisplayResultsTxt.setPreferredSize(new Dimension(200, 200));
            DisplayResultsTxt.setBackground(Color.white);
            window.add(DisplayResultsTxt);
            DisplayResultsTxt.enable(false);
        public void actionPerformed (ActionEvent e)
             if (e.getSource()== AddStudentDetailsBtn)
                  StudentName = StudentNameTxt.getText();
                   StudentMark = StudentMarkTxt.getText();
                  DisplayResultsTxt.setText("");
                  StudentDetailsTbl.put(StudentName, StudentMark);
                Enumeration enumStudentName = StudentDetailsTbl.keys();
                Enumeration enumStudentMark = StudentDetailsTbl.elements();
                String[] keys = (String[]) StudentDetailsTbl.keySet().toArray(new String[0]);       
                Arrays.sort(keys); 
                    for (String key : keys)
                         DisplayResultsTxt.append(key + " : " + StudentDetailsTbl.get(key)+ "\n");
                    StudentNameTxt.setText("");
                    StudentMarkTxt.setText("");
             if (e.getSource() == DeleteStudentDetailsBtn )
             if (StudentDetailsTbl.containsKey(StudentNameTxt.getText().trim()))
                  DisplayResultsTxt.setText("");     
                  String txt = StudentNameTxt.getText();
                Enumeration enumStudentName = StudentDetailsTbl.keys()  ;                   
                    String currentelement = (String)enumStudentName.nextElement();
                     StudentDetailsTbl.remove(txt);
                     DisplayResultsTxt.append(txt + " has been deleted");  
            if (e.getSource() == SearchStudentBtn)
            if (StudentDetailsTbl.containsKey(StudentNameTxt.getText().trim()))
                 String txt = StudentNameTxt.getText();
                 String result;
                 DisplayResultsTxt.setText("");
                 Enumeration enumStudentName = StudentDetailsTbl.keys();
                Enumeration enumStudentMark = StudentDetailsTbl.elements();
                   while (enumStudentName.hasMoreElements())
                        String currentelement = (String)enumStudentName.nextElement();
                    result = (StudentDetailsTbl.get(currentelement).toString());
                        if (txt.equals(currentelement))
                             DisplayResultsTxt.append(currentelement + " " + result);
                        else JOptionPane.showMessageDialog(null, "Student Name could not be identified");
            if (e.getSource() == DisplayAllStudentsBtn)
                  DisplayResultsTxt.setText("");
                 Enumeration enumStudentName = StudentDetailsTbl.keys();
                Enumeration enumStudentMark = StudentDetailsTbl.elements();
                while (enumStudentName.hasMoreElements())
                DisplayResultsTxt.append(enumStudentName.nextElement()+ " " + enumStudentMark.nextElement()+ "\n");
            if (e.getSource() == PassedStudentsBtn)
                 DisplayResultsTxt.setText("");
                 Enumeration enumStudentName = StudentDetailsTbl.keys();
                Enumeration enumStudentMark = StudentDetailsTbl.elements();
                while (enumStudentName.hasMoreElements())
                     int Mark = Integer.parseInt((String)enumStudentMark.nextElement());
                     String Name = (String)enumStudentName.nextElement();
                     if (Mark >=40)
                          DisplayResultsTxt.append(Name + " " + Mark + "\n");
            if (e.getSource() == FailedStudentsBtn)
                 DisplayResultsTxt.setText("");
                 Enumeration enumStudentName = StudentDetailsTbl.keys();
                Enumeration enumStudentMark = StudentDetailsTbl.elements();
                while (enumStudentName.hasMoreElements())
                     int Mark = Integer.parseInt((String)enumStudentMark.nextElement());
                     String Name = (String)enumStudentName.nextElement();
                     if (Mark <40)
                          DisplayResultsTxt.append(Name + " " + Mark + "\n");
            if (e.getSource() == DistinctionStudentsBtn)
                 DisplayResultsTxt.setText("");
                 Enumeration enumStudentName = StudentDetailsTbl.keys();
                Enumeration enumStudentMark = StudentDetailsTbl.elements();
                while (enumStudentName.hasMoreElements())
                     int Mark = Integer.parseInt((String)enumStudentMark.nextElement());
                     String Name = (String)enumStudentName.nextElement();
                     if (Mark >=75)
                          DisplayResultsTxt.append(Name + " " + Mark + "\n");
    }

  • Date Axis Line/bar Chart not working properly when rendering through SDK

    Hi all,
    When i render a existing Crystal report 2011 through java SDK code(Eclipse) bar chart is working fine, But the Date Axis line chart is not displaying properly. the properties are getting changed.. Any clue how to handle this? Do we have particular jar for Chart?
    Thanks in Advance!
    Regards,
    Mirthu

    Hi Mirthu
    I moved your post to the SAP Crystal Reports, version for Eclipse SCN Space. Unfortunately, all I know about Java is that it's in the cup in front of me . But I will get someone to have a look that should be able to help you ASAP.
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada

  • Suppress zero values for data labels in a stacked bar chart.

    I've seen this question asked before, but I can't seem to find anyone who knows how to do this.  I've made a stacked bar chart from a crosstab result, and I don't want to show labels that have a zero value.  This seems like others would have this same issue as it can really clutter up a chart.  The link below shows my chart.  I am trying to remove the labels that say "On-PW 0"
    http://i1199.photobucket.com/albums/aa472/gno722/question%20examples/crystalquestion.jpg

    the steps below will work on a regular chart..not sure about stacked...
    1) in Preview mode of the report click on a Y axis value and go to Data Y Axis Options
    2) go to Scale and set  a Minimum Value of .001
    3) check the Don't Draw Out Of Scale Values
    cheers,
    jamie

  • How to get the week start date from ISO week number

    Hi,
    I have a table with the following stucture
    Year    error    Week1     week2   week3 ......week53
    2012       error1     2           4         2             1
    2012       error2    3          0        1                 1I was hoping to get something like select year, error, week1||'Week start date which is a monday of that week' , week2||'Week start date,again monday',....week53 from table
    Any suggestions please?
    Thanks,
    Sun

    Hi, Sun,
    To see when week N started, add 7 * (N - 1) days to the beginning of the year. (By definition, the beginning of the ISO year is the start of week 1 of the ISO year.)
    To see when week 22 of the current year started:
    SELECT  TRUNC (SYSDATE, 'IYYY') + (7 * (22 - 1))
    FROM    dual
    I hope this answers your question.
    If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for all the tables involved, and the results you want from that data.
    Explain, using specific examples, how you get those results from that data.
    Always say what version of Oracle you're using.
    See the forum FAQ {message:id=9360002}

  • Restricted Key figure - Displaying as normal number instead of currency

    Hello,
    I'm creating a restricted key figure using 0AMOUNT which of course is currency, however in the cube that I'm using 0AMOUNT is used for both Dollars and Quantities.  The problem is 1) it is always displaying a $ symbol in front of the key figure and 2) it seems when I try to create a calculated key figure and try to add the 0AMOUNT to another 0QUANTITY infoObject I get an error (I'm presumming because I'm trying to add a number to a currency infoObject).
    So my question(s) are 1) Can I format my new restricted key figure to always display as Quantity even though it's a currency info object
    and 2) Can I do a calculated key figure adding a Currency InfoObject to a Quantity infoObject?
    Thank you very much!
    -Patrick

    1) For your first question, u don't to have the currency dollar displayed for the restricted 0amount instead you want the unit of quanity.?if you want to do this,you could make use of Excel's format options i.e go to
    format-->.Style->Select the stdBexInput item and make the appropriate settings.
    2) You can use NODIM() function to add two different keyfigures.

  • Text Messages displaying contact phone number instead of name

    How can I change the config so that incomming txt messages will  disply the contact name instead of their number.  For some reason, when I receive a call, the display will indicate the contacts name (this is good), however, with txt messages, it displays their number (would rather have the name).
    So if Jane Doe calles me I can clearly see it's Jane Doe calling
    When the same Jane Doe txt's me, the display reads their phone number

    I had a problem similar to this on other phones, and it had to do with how the number was parsed. When you go into your contacts, is the number the exact same number as the number you receive SMS from? Friends and Family with this issue had it because they either didn't have the area code in front of the contacts number or for some reason, required a 1.
    edit:
    Also, go into your SMS history and long press on the number. It should pop up a wondow to save to existing contact.

Maybe you are looking for

  • Can I restore a single photo/photo folder from Time Machine/Time Capsule

    Hi So I'm usuing Time Machine to back up my MacBook to Airport Time Capsule. If I somehow lost a couple of photos and its taken a few months to realise, can I retrieve just these photos/photo folder or do I need to restore my whole photo library goin

  • Error while converting BPMN to BPEL in Business Process Architect

    Hey, I am using Business Process Architect 11gR1 where I have modeled my process. Now that I have to move this model to BPM, I am using the option SOA -> share blueprint with IT in BPA. A dialog appears that asks to validate the model. I confim with

  • Creating a new swatch palette

    I can't find this in the Help or Manual, so can anyone help me with this please? In Photoshop CS5, how can I create a new custom swatch palette for a project I'm working on?  I'd like to create a blank palette that I can add my own named swatches to,

  • Document number problem in add-on form

    hi all, i have developed one purchase indent form. system  document number(numbering series) some time not refresh same number assign in another document also. any idea about this issue? thanks & regards B.narain

  • Mac will not boot from hard drive or install disc

    Hello All In dire need of advise...my intel Mac will not boot, even tried booting to the Snow Leopard install disc and all I'm getting is the white screen, apple logo and the wheel. Just before this happened there was a buzzing sound like the fan was