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!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
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
User | Count |
---|---|
98 | |
76 | |
75 | |
48 | |
26 |