Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
Hello, good evening.
I would like to ask for help, I need to pass the next column week by date.
However, when using the following DAX, I have problems with weeks 1 to 9, since they only have 1 digit, try to add the 0 before, replacing for example the 1 by the 01, however, I change all the values where a 1 appears, example the 11 becomes a 101 or 110.
WeekStart = 
MINX(
    FILTER (
        CALENDAR (
            DATE ( LEFT ( [YEARWEAK], 4 ), 1, 1 ),
            DATE ( LEFT ( [YEARWEAK], 4 ), 12, 31 )
        ),
        WEEKNUM ( [Date], 1 ) = VALUE ( RIGHT ( [YEARWEAK], 2 ) )
    ),
    [Date]
)
The above is as follows, where weeks 1 to 9, are incorrect.
Thanks for reading!
Solved! Go to Solution.
aha, RETURN is missing
WeekStart =
It throws me the following error, you know why it could be?
aha, RETURN is missing
WeekStart =
Thanks a lot!! Greetings and good evening
 
					
				
				
			
		
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
 
            | User | Count | 
|---|---|
| 84 | |
| 49 | |
| 35 | |
| 31 | |
| 30 |