The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Want to create a date field which goes back 10 weeks + current/ ongoing week in Power Query M
Want to create this dynamic field but facing issue creating the field.
@Anonymous , you can create a column like
Date.AddWeeks( DateTime.Date(DateTime.LocalNow()), -10)
You can now get weekstartdate using Date.StartOfWeek
refer if needed
https://medium.com/@amitchandak/cheat-sheet-power-query-financial-year-calendar-5ceaacb520f1