Week Number in Quarter
Moderators: chulett, rschirm, roy
Week Number in Quarter
HI All
Please tell how to get week number for each quarter?
Each quarter have 12 weeks.
1 quarter 1-12 week in no.
2 quarter 1-12 week in no ..etc
Thanks a ton in Adv
Please tell how to get week number for each quarter?
Each quarter have 12 weeks.
1 quarter 1-12 week in no.
2 quarter 1-12 week in no ..etc
Thanks a ton in Adv
The easiest solution is to do a lookup against your company's calendar dimension table.
Beyond that, you'll have to define exactly what a week means to your business and create transformation rules as required:
For example:
What day starts your week?
Does week one always include 7 days?
Does the first full week of the quarter constitute week one?
Is the first day of the quarter always in week one?
etc.
etc.
Mike
Beyond that, you'll have to define exactly what a week means to your business and create transformation rules as required:
For example:
What day starts your week?
Does week one always include 7 days?
Does the first full week of the quarter constitute week one?
Is the first day of the quarter always in week one?
etc.
etc.
Mike
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Where are you going to put weeks 49 through 53? You need to think more carefully about your business rules. How is week #1 in any year defined? Is it necessary that every week has 7 days? (It should be, if you're planning to summarize/aggregate by week.)
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
There are usually 13 weeks in a quarter, but it still depends on how you define "week". I can not stress how important it is to get this (business rule) right.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact: