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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.