Forum Discussion
jnrezk
5 years agoHelper III
Calculating Week Start Date from Week Number
Hi there, I have data by week number like this: but I need to add a column that will show me the week end date like this format: The other complication is that the week numbers are ...
Anonymous
5 years agoNot applicable
Hi jnrezk,
Can you please share a pbix file with some dummy data and expected results to test coding fromula?
How to Get Your Question Answered Quickly
Regards,
Xiaoxin Sheng
- jnrezk5 years agoHelper III
here's a sample PBI file - as you can see week 26 should show as june 28th but its showing the week earlier. Also, I'd love the forumular for week ending so week 26 week end date is Sunday, July 4th
Thanks!https://drive.google.com/file/d/1yVGwX_iMSKKPQPbaePE_ytaqOtQ7qmEi/view?usp=sharing
- Anonymous5 years agoNot applicable
HI jnrezk,
I modify the optional format to '2' and add the offset '-1' to the expression, then it will get the Sunday as result from the 'Monday to Sunday' week regular:
WeekStart = MINX( FILTER ( CALENDAR ( DATE ( LEFT ( [ISO Week of ISO Year], 4 ), 1, 1 ), DATE ( LEFT ( [ISO Week of ISO Year], 4 ), 12, 31 ) ), WEEKNUM ( [Date], 2 ) = VALUE ( RIGHT ( [ISO Week of ISO Year], 2 ) ) ), [Date]-1 )Regards,
Xiaoxin Sheng
- jnrezk5 years agoHelper III
hmmm week 202127 should say July 11th its still off but its ok I can look for another solution