Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi Everyone,
Its my first post in the forum so apologies if the post is posted incorrectly.
I want to convert weekly dates to fortnightly dates. While this sounds simple - I cant seem to get it working. I know there was a similar post: https://community.powerbi.com/t5/DAX-Commands-and-Tips/Grouping-dates-into-fortnights/m-p/949837 but this didnt quite work for me as the numbers didn't while line up.
This is the data I have which goes up to 2023 (see below). I essentially want the 'Fortnight' column to show 06/01/21 for the first period. Then from 7/01/21 - 20/01/21 to show as 20/01/21 and 03/02/21 for the next 2 week period and so on.
I intially tried
Any help would be greatly appreciated!
Kind regards,
Mike
Solved! Go to Solution.
@Michaelc1993 , Try a new column like
New column
VAR __BaseDate = DATE(2021,1,6)
return
quotient(datediff(__BaseDate,[Date],day),14) +1
if we need a yearly reset, we have start using week year start date, in place of DATE(2021,1,6)
Week Start date = 'Date'[Date]+-1*WEEKDAY('Date'[Date],2)+1
Week Start Year = minx(filter('Date',[Year] =earlier([Year])),[Week Start date])
@Michaelc1993 , Try a new column like
New column
VAR __BaseDate = DATE(2021,1,6)
return
quotient(datediff(__BaseDate,[Date],day),14) +1
if we need a yearly reset, we have start using week year start date, in place of DATE(2021,1,6)
Week Start date = 'Date'[Date]+-1*WEEKDAY('Date'[Date],2)+1
Week Start Year = minx(filter('Date',[Year] =earlier([Year])),[Week Start date])
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
11 | |
9 | |
8 | |
6 | |
5 |
User | Count |
---|---|
19 | |
17 | |
11 | |
9 | |
9 |