Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.
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
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 76 | |
| 37 | |
| 31 | |
| 27 | |
| 27 |