Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
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")
User | Count |
---|---|
84 | |
78 | |
70 | |
47 | |
41 |
User | Count |
---|---|
108 | |
53 | |
50 | |
40 | |
40 |