Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hi,
I am currently working with a table, which provides year and week, but I would like to have a date (DD/MM/YYYY). As I need it to make some relationship.
Any suggestion in how to calculate the date from year and week num?
Thanks for your time
Solved! Go to Solution.
@alexcatala , You can get week start date like
Week to Date = var _st = date([year],1,1)
var _week = [Week]
Return _st+((_week-1)*7) -WEEKDAY(_st,2)+1
Format of date can be set under format or you set at the system level
Date as text = format([Week to Date],"dd/mm/yyyy")
@alexcatala , You can get week start date like
Week to Date = var _st = date([year],1,1)
var _week = [Week]
Return _st+((_week-1)*7) -WEEKDAY(_st,2)+1
Format of date can be set under format or you set at the system level
Date as text = format([Week to Date],"dd/mm/yyyy")
Check out the September 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
114 | |
88 | |
87 | |
35 | |
35 |
User | Count |
---|---|
153 | |
99 | |
85 | |
63 | |
54 |