Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers!
Enter the sweepstakes now!Preparing for a certification exam? Ask exam experts all your questions on May 15th. Register now.
Hi all, I am having trouble trying to create a biweekly/fortnightly column for a date slicer that resets itself back to "Fortnight 1".
I want it to work similar to how the weeknum works, and it resets the fortnight back to first fortnight number after "Fortnight 26".
Any help would be appreciated
@Anon29 , Create week start date
Week Start date = 'Date'[Date]+-1*WEEKDAY('Date'[Date],2)+1
Week End date = 'Date'[Date]+ 7-1*WEEKDAY('Date'[Date],2)
Year Week Start date =
var _date = date([year]),1,1)
return
_date +-1*WEEKDAY(_date ,2)+1
Bi Week number =
quotient(datediff([Year Week Start date], [Week Start date], day),14) + 1
Bi Week Start Date=
[Year Week Start date] * 14 ([Bi Week number]-1)
For this vs last follow rank as week
Power BI — Week on Week and WTD
https://medium.com/@amitchandak.1978/power-bi-wtd-questions-time-intelligence-4-5-98c30fab69d3
https://community.powerbi.com/t5/Community-Blog/Week-Is-Not-So-Weak-WTD-Last-WTD-and-This-Week-vs-La...
https://www.youtube.com/watch?v=pnAesWxYgJ8
Thanks for your help @amitchandak but this variable keeps giving me an error saying incorrect syntax.
var _date = date([year]),1,1)
Check out the April 2025 Power BI update to learn about new features.
Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.
User | Count |
---|---|
78 | |
76 | |
70 | |
49 | |
42 |
User | Count |
---|---|
62 | |
41 | |
33 | |
30 | |
29 |