Showing results for 
Search instead for 
Did you mean: 
Frequent Visitor

Date Hierarchy - Splitting my week into two separate years




I created a Date Hierarchy to look at Calendar Year, followed by Pay Period (2 weeks or 26 in a year) everything works great! EXCEPT for the split of the pay period that falls under 2 different calendar years.    Any thoughts?

This is what I used for the Pay Period =

Pay Period Number = MOD (

     FLOOR (





) +1



Super User
Super User

@jessyssej , to deal with such case you need to use the period year. not a calendar year. This same problem with week also. Either period start date or period enda= date should decide the period, no the date

New Power BI Features
Field Parameters :
Did I answer your question? Mark my post as a solution! Appreciate your Kudos!! !!
Dashboard of My Blogs !! Connect on Linkedin !! Proud to be a Super User!
Want To Learn Power BI
Learn Power BI Beginners !! Advance Power BI Concepts !! Power BI For Tableau User !! Learn Power BI in Hindi !!
!! Subscribe to my youtube Channel !!

This sounds interesting, would this be added to my calendar table?  Measure?



Assuming that pay period truly does wrap around between 2019 and 2020, the simplest would be to remove the Year from your hierarchy.  Or you could make a new column in your Calendar table that captures all needed info in a single value (Year and Pay Period).


If this works for you, please mark it as the solution.  Kudos are appreciated too.  Please let me know if not.



Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.

@mahoneypa HoosierBI on YouTube

Thanks for your reply.  I don't really want to remove the year, in fact I've been asked to add Fiscal year which will make it that much more complicated.  I thought about creating a column with all the values but I'm not in love with that option yet.  Thanks again!


Helpful resources

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Power BI Dev Camp Session 23 768x460.jpg

Check it Out!

Mark your calendars and join us on Thursday, June 30 at 11a PDT for a great session with Ted Pattison!

June 20 episode 7 with aka link 768x460.jpg

The Power BI Community Show

Join us on June 20 at 11 am PDT when Kim Manis shares the latest on Azure Synapse analytics, the Microsoft Intelligent Data Platform, and notable Power BI Updates from Microsoft Build 2022.

Top Solution Authors
Top Kudoed Authors