Join 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!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
Hi Community,
I´m trying to create a new column with week days like the image below, I could do that using a DAX from the forum but I can´t sort it in chronological order.
I tried to sort the new column with week number but I got a error saying "There can´t be more than one value in....."
No worries if the solution use another DAX solution, thanks.
Solved! Go to Solution.
@Aucesar ,
Week start date can help to sort
Week Start date = 'Date'[Date]+-1*WEEKDAY('Date'[Date],2)+1
Week Start Adjusted = if([Week Start date] < (eomonth([Date],-1)+1), (eomonth([Date],-1)+1), [Week Start date])
You can mark Week Start Adjusted as a sort column or
YYMM Week Start Adjusted = format([Week Start Adjusted], "YYYYMM")
YYMM Week Start Adjusted as sort column for week range
@amitchandak this has helped a lot.. was stuck at it and found your solution working perferct. Thank you
@Aucesar , Week start date can help to sort
Week Start date = 'Date'[Date]+-1*WEEKDAY('Date'[Date],2)+1
Week Start Adjusted = if([Week Start date] < (eomonth([Date],-1)+1), (eomonth([Date],-1)+1), [Week Start date])
You can mark Week Start Adjusted as a sort column or
YYMM Week Start Adjusted = format([Week Start Adjusted], "YYYYMM")
YYMM Week Start Adjusted as sort column for week range
@Aucesar ,
Week start date can help to sort
Week Start date = 'Date'[Date]+-1*WEEKDAY('Date'[Date],2)+1
Week Start Adjusted = if([Week Start date] < (eomonth([Date],-1)+1), (eomonth([Date],-1)+1), [Week Start date])
You can mark Week Start Adjusted as a sort column or
YYMM Week Start Adjusted = format([Week Start Adjusted], "YYYYMM")
YYMM Week Start Adjusted as sort column for week range
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the September 2025 Power BI update to learn about new features.