Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hello,
I hope you can help me out. I've been searching and trying to find a way.
I have a column with "year" and one with "week number" - I need a column with the first day of week.
It seems so simple, but it bugs my mind.
Hope you can help,
Sandi
Solved! Go to Solution.
It only accepts the caculated measures. I did check for data type to be Date/Time
@SJHA , Try Monday Week start
Week to Date = var _st = date([year],1,1)
var _week = [Weeknumber]
Return _st+((_week-1)*7) -WEEKDAY(_st,2)+1
//Sunday Week Start
Week to Date = var _st = date([year],1,1)
var _week = [Weeknumber]
Return _st+((_week-1)*7) -WEEKDAY(_st,1)+1
refer : https://medium.com/@amitchandak.1978/power-bi-wtd-questions-time-intelligence-4-5-98c30fab69d3
@amitchandak Hello again
I ran into this problem:
The week 53 is causing a challenge. Do you know a quick fix to this logic?
@amitchandak I changed the data type to whole numbers and somehow that works with the code you provided.
Thank you so much! You've made my day, if not a whole week!
User | Count |
---|---|
25 | |
12 | |
8 | |
7 | |
7 |
User | Count |
---|---|
25 | |
12 | |
11 | |
10 | |
6 |