Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
Hi,
How can I convert this to a Date "18-WK01" , which is 2018-Week01
Thanks for your help
Suresh Guddanti
Solved! Go to Solution.
if you need to show Mondays of each week try this column
Column =
var _startYear= DATE(2000 + VALUE(LEFT([Date],2)),1,1)
var _startDay = IF(WEEKDAY(_startYear,1) = 2, _startYear + 7*(VALUE(RIGHT([Date],2)) - 1), _startYear + 7*VALUE(RIGHT([Date],2)))
RETURN
_startDay - WEEKDAY(_startDay,2) +1
if you need to show Mondays of each week try this column
Column =
var _startYear= DATE(2000 + VALUE(LEFT([Date],2)),1,1)
var _startDay = IF(WEEKDAY(_startYear,1) = 2, _startYear + 7*(VALUE(RIGHT([Date],2)) - 1), _startYear + 7*VALUE(RIGHT([Date],2)))
RETURN
_startDay - WEEKDAY(_startDay,2) +1
Thank you so much