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
android1
Post Patron
Post Patron

Using Week Number in X axis of Line Chart

Hi,

 

In below line chart I'd like to show Week Number along the bottom axis instead of month. I am using column Service Date which when I change to Date Hierarchy, I only get the option of Year.

 

Line Chart.jpg

1 ACCEPTED SOLUTION
jbocachica
Resolver II
Resolver II

Hi, you must create your own hierarchy, just add a column with WEEKNUM(YourTable[YourDateField],1) and use that column in your chart.

 

If you want to see, just download the PBIX

https://mliworkers.blob.core.windows.net/jboca/Chart%20with%20Week.pbix

 

Regards

 

John Bocachica
Senior BI Consultant
Information Workers
http://www.iwco.co

View solution in original post

3 REPLIES 3
jbocachica
Resolver II
Resolver II

Hi, you must create your own hierarchy, just add a column with WEEKNUM(YourTable[YourDateField],1) and use that column in your chart.

 

If you want to see, just download the PBIX

https://mliworkers.blob.core.windows.net/jboca/Chart%20with%20Week.pbix

 

Regards

 

John Bocachica
Senior BI Consultant
Information Workers
http://www.iwco.co

Yes, that works. Thanks very much.

Just remember to click to accept as a solution 😉

 

Regards

John Bocachica
Senior BI Consultant
Information Workers
http://www.iwco.co

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.