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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
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
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 41 | |
| 38 | |
| 36 | |
| 30 | |
| 28 |
| User | Count |
|---|---|
| 128 | |
| 88 | |
| 79 | |
| 67 | |
| 62 |