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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.