Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anon29
Helper II
Helper II

Display Week start in Line Chart

Hi all, 

I need to display the start of the week being a Monday date in the x-axis. I need to add in a trend line as well so I need the type to be continuous. 

My DAX is 'DateTable'[Date] - WEEKDAY('DateTable'[Date],2) +1. The +1 just shifts the label 1 spot to the left, rather than it displaying the correct week start date. 

Anon29_0-1691391880263.png

If I use +3 it just shifts it further to the left. 

Anon29_1-1691391939867.png

What I want is for the x-axis to display 03 Jul, 10 Jul, 17 Jul, 24 Jul.

1 ACCEPTED SOLUTION

Thanks Rico, the trend line option disappears when changed to categorical. I ended up not using the trend line. 

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @Anon29 ,

 

As far as I know, the best for you should change the type of X axis to Categorical. I think Power BI support us to use trend line when your X axis type is Categorical.

vrzhoumsft_0-1691567433039.png

For reference:

Use the Analytics pane in Power BI Desktop - Power BI | Microsoft Learn

 

Best Regards,
Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thanks Rico, the trend line option disappears when changed to categorical. I ended up not using the trend line. 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.