Does anyone know how to add custom semester numbers/term numbers and week numbers to a date table?
I have no problem creating comprehensive date tables but I'm really struggling adding in custom terms and weeks etc.
In my normal date table, week numbers etc are no problem but I'm having an issue making them reoccur by term.
I've watched/read heaps of info on this but I can't seem to apply it to my model.
Anyone's help would be much appreciated.
@PowerBIonical what is the logic to create these column? Can you provide some details?
Proud to be a Datanaut! Appreciate your Kudos Feel free to email me with any of your BI needs.
This particular example is to produce a transport related report.
I need to track passenger numbers, arrival/departure times, trip durations etc.
The only issue is schools tend to run via weeks in a term e.g. Term 2 - Week 3/Term 4 - Week 8 etc
So I need to be able to track the data across weeks in a term, Terms in a year and Semesters per year.
Term 1 = 29th Jan 2019 to 5th April 2019 (10 weeks)
Term 2 = 23rd April to 21st June 2019 (9 weeks) and so on and so forth
I could create a slicer to replicate the groupings using days/months but it's not polished enough for what I'm trying to achieve.
I have managed to create what I need for a single term using WEEKNUM +/- but trying to get that to repeat including terms which make the weeks start again from zero has me stumped.
Appreciate your help!
@PowerBIonical can you put example in excel sheet and share it? You can share it via one drive/google drive or by email which is in my signature.
The table needs to look exactly like the below table (I can extract any other info that I need). I'd appreciate your help to be able to build this within PowerBI!
And would continue on for the whole year.
Would you like to create a fixed school semesters/terms/weeks or dynamic ones?
dynamic ones mean:
select any date from a slicer, then look into serveral weeks before the spefic date?
Hi @v-juanli-msft I was hoping for fixed if possible?Thank you!
Hi Maggie @v-juanli-msft , were you able to have a think about this at all?
I'd love to be able to solve it.
@parry2k , did you have any idea?
If i understand the rule i may be able to slove it.
i don't understand,
on my side, the first week of the year is 2019/1/1/~2019/1/6,
but in your example, it is 2019/1/29.
why term 1 has 10 weeks, term 2 has 9 weeks, how many weeks are there in term3?
the start of term2 isn't the end of term1, there are some dates excluded in both terms.
Hi Maggie @v-juanli-msft , thanks for getting back to me!
Term 1 starts on the 29th Jan because that's the start of the school year.
The break in between Term 1 and Term 2 is a school holiday. The same will occur between every term.
Schools tend to run their business based on a particular week in a term rather than a week in a year.
Term 1 - Tuesday 29 January to Friday 5 April 2019 - 10 weeks
Term 2 - Tuesday 23 April to Friday 21 June 2019 - 9 weeks
Term 3 - Monday 15 July to Friday 20 September 2019 - 10 weeks
Term 4 - Tuesday 8 October to Friday 29 November 2019 - 8 weeks
If I extract the Week No. using WEEKNUM it shows the correct information because school still runs from Mon to Fri but the week numbering is incorrect.
Does any of that make sense?
Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.
Register by September 5 to save $200
Check out what's new in the Power BI Community!
Continue your learning in our online communities.