Days of Month corresponding week numbers

Hi, I have a requirement to show day nos. (column 2_ )after Week column for example:
Week       Days of Month                Vendor.         Revenue
1             01 - 02                            Test              $ 2000.00
2             07 - 13                            Test 1           $ 2500.00
Week 1 for Jan 2011 is 2 days 1,2 Sat. - Sunday
Week 2 for Jan 2011 is 7 days 7-13 Sat - Sunday
I have the first column for week coming from BW now how I can calculate the second col days of Month. And I have to do this in webi.
Any help will be appreciated. Thank you. Ali

Have you tried in the second column this WebI function ?
=DayNumberOfWeek([Date])
I'm assumig you have a "date" dimension in the query where Week number comes from.
If that's the case you can do this also:
column1:
WeekNumber..
column2 :
=Min(   FormatDate ([date];"dd")   )+" - "+Max(  FormatDate ([date];"dd")   )
Edited by: PadawanGirl on Feb 4, 2011 8:03 PM

Similar Messages

  • Current date, first day of month, last day of month, current week, current

    Hi All,
    may be the question will sounds basic for your guys, I am connecting via MDX a cognos reportnet on a BW 3.0B..due to loads of limitations on filtering via MDX on 'business date/time functions' , I would need to create in the infoqueries that are my data sources, the following additionnal objects:
    - current date
    - first day of current month
    - last day of current month
    - current week
    - current year
    I do not want prefiltered infoqueiries but object with these single values so that from reportnet I can have something like: OCALDAY between 'first day of current month' and 'last day of curent month'
    Is there standard fonction for this under BW/BEX or if we need to developp functions has nayone some code examples.
    thanks a lot for your great input
    David

    Hi,
    In universe level if you want implement the requirede functions then you have to write custom sql and if you want to implement them in Reporting level then most of the functions are available to you. e.g. Quarter,Month, Year, Current Date....
    Cheers,
    Suresh A.

  • How do you print a monthly calendar showing week numbers?

    Is there a way to display and the print the week numbers in the monthly view in iCal. I can get the calendar to start on the first day of the wekk, Monday, but I can not find any way to show the week numbers in a column to the left of the Monday column.

    Roger is right.  You'll have to subscribe to a week numbering calendar in order to see week numbers.  I've done this and can confirm that they show when printed.

  • Calendar with week numbers of a current month

    Hi
    I want to print the week numbers for given month using java program. say example,
    January 2009
    WK | Mo Tu We Th Fr Sa Su
    1 | 1 2 3 4
    2 | 5 6 7 8 9 10 11
    3 | 12 13 14 15 16 17 18
    4 | 19 20 21 22 23 24 25
    5 | 26 27 28 29 30 31
    Please somebody can help me in this regard?
    Thanks,
    Sridhar

    I don't think you will have an issue printing out this list once you have figured what day a particular date falls on. Jan 1st 2009 falls on a Thursday. To find that out use the [GregorianCalendar |http://java.sun.com/javase/6/docs/api/java/util/GregorianCalendar.html] class. You can use the setTime method in this class to set a date, then use the get(Calendar.DAY_OF_WEEK) method to find out the day of the week.

  • Ios 5 Update New Features says that iCal now has a week view for iPhone but after updating last weekend, I don't see any week view--just List, Day and Month..How do I get the week view?

    ios 5 Update New Features says that calendar now has a week view but after updating my iPhone 4 last weekend, I don't see any week view for iCal--just List, Day and Month as in the past. Is the weekly view available for iCal and if so, how do I access it?

    Rotate your phone to landscape.

  • SimpleDateFormat: when day of month becomes day of week

    I have a weird situation where the SimpleDateFormat class seems to interpret the "dd" mark as day of week instead of day of month when I use a certain pattern. The following code demonstrates the problem:
    public class ByteTest {
        public static final String PATTERN = "mm HH dd MM F";
        // public static final String PATTERN = "dd MM yyyy";
        public static void main(String [] args) throws Exception {
            String str = "11 11 08 11 1";
            // String str = "24 11 2004";
            System.out.println(strToDate(str, PATTERN));
        public static Date strToDate(String date, String pattern) throws ParseException {
            SimpleDateFormat formatter = new SimpleDateFormat(pattern);
            formatter.setLenient(false);
            return formatter.parse(date);
    }The result (at least for me) is:
    Exception in thread "main" java.text.ParseException: Unparseable date: "11 11 08 11 1"
    at java.text.DateFormat.parse(DateFormat.java:335)
    at ByteTest.strToDate(ByteTest.java:20)
    at ByteTest.main(ByteTest.java:14)
    When I change "dd" from 08 to 07, I get this:
    Sat Nov 07 11:11:00 EET 1970
    ...and finally, when I change the pattern (done here by uncommenting the commented lines and commenting the ones above them), I get:
    Wed Nov 24 00:00:00 EET 2004
    So, as you can see, for some reason "dd" is interpreted as day of week number in the weirder pattern (which unfortunately we have to use in a pattern matching thing we are using). Any ideas?
    When I comment the line with setLenient(false), it also works fine, but unfortunately we need to use that flag because otherwise users could input weird values for the various fields.
    I tried adding Locale.UK to the parsing method, but that made no difference so clearly my locale (+02:00 GMT) is not at fault.
    I also considered if the day might be out of range since using this pattern we get year 1970, but clocks start counting from 1.1.1970 right? So that doesn't seem a likely cause either. :-/
    The markers for day of week in SimpleDateFormat are E and F; so I guess the question is, when does d become E or F...

    I'm not sure I quite understand what the problem is... the reason why you can't parse that date is that it's invalid, Sunday November 8 on 1970 goes to the second week of the month, so day-of-week-in-month is 2, not 1.. so the string you should pass is "11 11 08 11 2"

  • Month and Week Calendar view - does not show events that span days?

    In the weekly and monthly calendar views, if you have an event, such as a show or an appointment where you will be out of town for several days, the view will only show the appointment for the first day, and not for the entire event life. For example, in MS Outlook, if you schedule an event that begins on Date 1 and ends of Date 2, spanning several days, the calendar will show the date range as blocked off. Does the calendar in CRM do the same? If so, is this a setup parameter?
    Also, with the calendar, is there a way to have the small calendar in the left panel show the days with a scheduled event to be bold or somehow indicate that there is an event on that day?
    Edited by: nsidev on Aug 11, 2009 6:38 AM

    According to CRM Support
    CRM Support wrote:the ability to block off a multi-day appointment in the Weekly and Monthly Calendar Views is not currently available on our product. However, we have submitted this functionality to our engineers as an enhancement request. At this time we are unable to provide an estimated time of implementation while this request is being analyzed and processed.
    Simple things seem hard for the Siebel guys.
    Edited by: nsidev on Aug 14, 2009 7:11 AM
    Edited by: nsidev on Aug 14, 2009 7:12 AM

  • Weeks numbers (year view)

    Yosemite, Calendar:
    In the year view the week numbers are completely wrong? But in day, week and month are ok.
    How could I see the correct numbers in the year view, please?
    Regards

    there is unfortunately no year view available in ical at the moment.
    may i suggest you send your suggestions to apple: http://www.apple.com/feedback/ical.html

  • Week numbers script

    so i found this script to add week numbers, now i cant remove them on iCal
    --Copy below this line into Script Editor and click run --
    --Annual Week numbers
    --John Maisey
    --4/2/5
    --Modified for Leopard
    --3/3/8
    set numberOfWeeks to 52 -- change as needed
    set daysText to "MonTueWedThuFriSatSun"
    set aDate to (current date)
    set day of aDate to 1
    set month of aDate to January
    set aDay to weekday of aDate
    set weekNo to 1
    --Day of week as num. starting with 0
    set aDayText to (characters 1 thru 3 of (aDay as text)) as text
    set dayOff to ((offset of aDayText in daysText) - 1) / 3 as integer
    if dayOff is less than 5 then
    set StartDate to aDate - dayOff * days
    else
    set StartDate to aDate + (7 - dayOff) * days
    end if
    tell application "iCal"
    set newCal to make new calendar at end of calendars with properties {title:"Week No."}
    set myCal to (count of every calendar)
    end tell
    repeat with myCount from 1 to numberOfWeeks
    if (month of StartDate is December) and (day of StartDate is greater than 28) then set weekNo to 1
    if (month of StartDate is January) and (day of StartDate is less than 5) then set weekNo to 1
    set weekText to "Week No. " & weekNo
    tell application "iCal"
    tell calendar myCal
    make new event at end of events with properties {start date:StartDate, end date:StartDate + (7 * days), allday event:true, summary:weekText}
    end tell
    end tell
    set weekNo to weekNo + 1
    set StartDate to StartDate + 7 * days
    end repeat
    any ideas on how to remove them?

    Control-click the 'Week no' calendar and choose 'Delete'.

  • Date Formatting - Day and Month Switching Places

    I am starting to get really frustrated with this problem; at first it was just a nuisance, but now when I actually want and need to do something important with Numbers it has become a major headache.
    When I first select a formatting and enter a date it works fine. I enter, e.g., "1 Aug 2009" and Numbers formats it "1 August, 2009" as per my formatting selection. However, when I go to change the formatting to, e.g., "day of week, day month, year" my "1 August 2009" suddenly becomes "Thursday, 8 January, 2009" - it switches the day and month values around! This happens no matter which format I choose, and no matter what I do - whether I enter the day first or month first, American or European - it always switches them around when I go to change the format. It's infuriating!
    Does anyone have any suggestions? What am I to do?

    Welcome to Apple Discussions
    I believe the problem is that you have US formats for dates. Select the cells/columns that you want your date format to apply to then click the cell format inspector (the 42 in a box icon) & choose Custom… from the cell format drop-down. You will be presented with a box that allows you to make your own format. Click & hold on any of the little "lozenges" in the input bar & move them around. You may need to add a space to get the proper result.

  • Highlighting multiple days in Month View?

    Hello everyone & Happy Friday All !!!
    I'm new to this forum, and VERY new to using ical -
    Here's my question:
    In my old method of using a calendar to do my schedule on my old PC -
    I'd make a spreadsheet in MS Excel that would show me monthly views that I could highlight days,
    weeks or entire months..... It's crude in comparison to ical, yet it IS effective for my needs......
    I am used to highlighting either a single day or a string of days in my "month" view,
    so... for example - let's say that Monday thru Thursday of next week I am going to be "out of the office in London - UK" -
    I would simply highlight the four days of next week - and instead of leaving those cells "white"
    like every other day in the month - I'd change those four cell's colored "fill" option from white to
    bright yellow - (or any other color that signifies a specific action or function - like "green" for vacation days, or "blue" for a sick day or surgery, etc....
    This way - that at a glance (literally) - I can tell that I'm "out of the office" on those days next week that are colored other than "white"..... NOTE: the ENTIRE CELL - Not Just the Day Title is colored......
    (I wish I could insert a visual example of what I am trying to describe here...)
    Is there a way of doing this same kind of function in ical - so that I can have an "at a glance" or
    "heads up display" that I can see quickly and know I'm committed on those days next week - or
    any week or group of days for that matter?
    This would help me tremendously of there is a way of doing this...... Otherwise - I'll be STUCK
    in the 90's using my improvised Excel Spreadsheet Calendar.....
    Thanks in advance for your help
    kevin

    Welcome to the discussions, azstoneconsulting.
    In iCal colours are tied to specific calendars, so make a vacation calendar and a sick calendar (you forecast your sickness? Cool) and an out of office calendar and set the colours to whatever colour suits. Then when you are going to be in London select the out of office calendar and set it to last the four days. It will show as a coloured bar across those days in month view.
    AK

  • Changing the default event time to all-day in Month View?

    I updated to Mavericks today, and when I went to add an event to my Calendar, I discovered that all-day was not the default time.  In Mountain Lion, when going to add an event in Month View, it was automatically set to all-day, which is perfect because all of my events are all-day events.  Now, it's being set to 9:00 to 10:00, and I have to check the box to make it all-day.  I know that this isn't much work, but when I'm adding dozens of events it starts to get a little annoying.
    Calendar 7.0, OS X 10.9 (Mavericks).
    Any help would be greatly appreciated.

    npatelaz,
    I don't think that it is possible, even using Terminal. If you want to change your workflow, "all day" events can easily be created in the Day/Week view, but as you stated the Month view poses a problem.
    Calendar Help says:
    To make:
    An event that lasts all day:
    In Day or Week view, double-click in the “All-day” section at the top of the calendar.
    An existing event last all day:
    In Day, Week, or Month view, double-click the event, click the date, then select “All-day.”
    A multiday event:
    In Week view, drag from the start time to the end time. You can drag across multiple days.In Day or Month view, create an event. Then, enter the start and end dates and times.
    An all-day event into a multiday event:
    In Week view, drag the all-day event across multiple days.
    How to Change the Default Duration of New iCal Events - The Mac Observer was written over a year ago, but it may give you some other ideas.

  • ICalendar: How do I know what day, in month view, I am working on?

    The calendar in Mavericks is so frustrating compared to SL. How do I know what day, in month view, I am working on? There is no highlight or box or anything. Am I missing something? Also I suppose its not possible to just see 1 month anymore like it use to be instead of seeing 6 weeks. Thanks.  Sure wish Apple would let us keep our Macs the way WE like it with a classic setting everytime they add something that they think is better. Like those awesome grey icons all over the place instead of color.

    The day with the red line on top is today

  • Multiday event should span days in month view

    Hi all,
    I have an event that spans multiple days (begin is Dec 3 @ 12 AM, end is Dec 6 @ 12 AM), but it only appears in one day on iCal's month view. In week view, the event spans all three days.
    How can I ensure that an event that spans days +actually visually+ spans the days in month view?
    Thanks,
    Matthew

    Is there not any other way. I to have events that are not actually whole day events but that are spanning mulitple days.

  • Creating a fiscal date table that includes Day of Year and Week of Year column

    Hi,
    Our fiscal year runs between 1st October through to 30th September and I'm trying to create a date table that I can use to represent this in Powerpivot (I'm using Excel 2013). I had no probably creating columns for Fiscal month or fiscal year, however I am
    having issue breaking it down more than that, specifically I cannot work out how to calculate:
    - day of the year
    - week of the year (with week one starting on the first day of the year rather than the first Monday)
    I worked out how to do the day of the year until I had to try and account for leap years which broke the formula I had! Can anyone please recommend solutions, I cannot see anything online about this. Obviously I know that it is simple to do this for a normal
    calendar year but this approach doesn't work with a custom fiscal year.
    Whilst it is useful for several reasons, my main reason for wanting week is so that I can plot my Pivotcharts more smoothly (although I may have missed an easier way to do that).
    Thanks,
    James

    For my example I started with 1 column in Power Pivot called [Date]
    I created the following Columns
    [DayofMonth] =Day([Date])
    [MonthNumber] =Month([Date])
    [Fiscal Year] =IF([MonthNumber]< 10, Year([Date]), (Year([Date])+1))
    [Fiscal Day] =[Date] - DATE(([Fiscal Year] -1), 10,1) +1
    [Fiscal Week] =RoundUp([Fiscal Day] / 7, 0)
    Change [Date] to whatever your date column is and those DAX formulas will get you what you need

Maybe you are looking for

  • How to save a final cut X project file to a dvd for future editing

    How do I save a project to a dvd so that if I want that footage again sometime, I can open it in Final cut X and be able to work with it. Is this a smart way to keep projects, or should I continue filling up externals with saved projects? I am workin

  • Best way to sillo objects?

    I have to sillo jewelry, so it's very hard to use the Magic Wand since there are varying colors and brightness amongst all the silver/reflective surfaces. I have always used the Pen tool to make Paths but hate that hard edge it has. What is the ultim

  • The user "" could not be found.

    The user "[email protected]" could not be found. Select a user from the address book. thats the error i get in my webaccess. what did i do wrong. running eDirectory 8.8 with groupwise 7 off windows 2003.

  • Item Level Validation in Detail Block

    Hi Experts, I have to Block Master and Transaction Block, When I am trying to enter the same item code in my Detail block it is accepting, but want to valid one one record will be there in my Details Block, please help me and send me some usefull cod

  • Footprint of J2ME applications using an emulator

    Is there a way to find out the total footprint of a J2ME application? Thus it should calculate the actual maximum required amount of memory by a certain application.