Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi Guys
I have set a weekending measure to show the week starting date vs. the week ending date
For X-axis, is there a way I can change the display from showing "November 20" to " Week of 11/20"?
Thanks in advance!
Solved! Go to Solution.
Hi @njxfoster ,
I created some data:
Here are the steps you can follow:
1. Create calculated column.
Week = WEEKNUM('Table'[Date],2)
mindate =
var _weeknum=WEEKNUM('Table'[Date],2)
var _weekday=WEEKDAY('Table'[Date],2)
return
MINX(FILTER(ALL('Table'),'Table'[Week]=EARLIER('Table'[Week])),[Date])
Flag = "Week of" &" "& MONTH('Table'[mindate])&"/"&DAY('Table'[mindate])
2. Add Column – Index Column – From 1.
3. Create calculated table.
Table2 =
SUMMARIZE('Table','Table'[Flag],"Index",MINX(FILTER(ALL('Table'),'Table'[Flag]=EARLIER('Table'[Flag])),[Index]))
4. Join the relationship between two tables.
5. Column[Flag] – Column tools – Sort by column -- [Index] .
6. Result:
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Hi Guys
I have set a weekending measure to show the week starting date vs. the week ending date
For X-axis, is there a way I can change the display from showing "November 20" to " Week of 11/20"?
Thanks in advance!
Yes but I don't believe it would ever be recommended.
The formula you have utilises data type Date or Date/Time. This maintains chronological settings.
You could create a custom column using the following code:
Hi @njxfoster ,
I created some data:
Here are the steps you can follow:
1. Create calculated column.
Week = WEEKNUM('Table'[Date],2)
mindate =
var _weeknum=WEEKNUM('Table'[Date],2)
var _weekday=WEEKDAY('Table'[Date],2)
return
MINX(FILTER(ALL('Table'),'Table'[Week]=EARLIER('Table'[Week])),[Date])
Flag = "Week of" &" "& MONTH('Table'[mindate])&"/"&DAY('Table'[mindate])
2. Add Column – Index Column – From 1.
3. Create calculated table.
Table2 =
SUMMARIZE('Table','Table'[Flag],"Index",MINX(FILTER(ALL('Table'),'Table'[Flag]=EARLIER('Table'[Flag])),[Index]))
4. Join the relationship between two tables.
5. Column[Flag] – Column tools – Sort by column -- [Index] .
6. Result:
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
14 | |
11 | |
10 | |
10 | |
10 |
User | Count |
---|---|
18 | |
13 | |
12 | |
11 | |
8 |