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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Spireite4
Regular Visitor

Displaying data as week commencing in a chart

I want to show the week comencing on the x-axis (e.g. 2nd Mar, 9th Mar etc) but i only get day, month, quarter or year.

I know i can display it by week number but i want to see the actual weekly dates.

I have the w/c dates in a column in the table but still cannot get them to display.

Can anyone help please?

1 ACCEPTED SOLUTION
v-gizhi-msft
Community Support
Community Support

Hi,

 

Please try to create a calculated table first:

Date = CALENDAR(MIN('Table'[WC Date]),MAX('Table'[WC Date]))

Then create one-to-one relationship between them.

Create a column to show all date's week NO. in this new date table:

WeekNo = ROUNDDOWN(DATEDIFF(MIN('Date'[Date]),'Date'[Date],DAY)/7,0)+MIN('Table'[Week])

Then create a new column to format the date and weekNo:

Month-WeekNo = FORMAT('Date'[Date],"MMM")&"-"&'Date'[WeekNo]

Choose a line chart to show the result:

5.PNG

Hope this can help.

 

Best Regards,

Giotto Zhi

View solution in original post

6 REPLIES 6
v-gizhi-msft
Community Support
Community Support

Hi,

 

Please try to create a calculated table first:

Date = CALENDAR(MIN('Table'[WC Date]),MAX('Table'[WC Date]))

Then create one-to-one relationship between them.

Create a column to show all date's week NO. in this new date table:

WeekNo = ROUNDDOWN(DATEDIFF(MIN('Date'[Date]),'Date'[Date],DAY)/7,0)+MIN('Table'[Week])

Then create a new column to format the date and weekNo:

Month-WeekNo = FORMAT('Date'[Date],"MMM")&"-"&'Date'[WeekNo]

Choose a line chart to show the result:

5.PNG

Hope this can help.

 

Best Regards,

Giotto Zhi

amitchandak
Super User
Super User

@Spireite4 does My above reply helps. if you need more help make me @

 

Appreciate your Kudos.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Greg_Deckler
Community Champion
Community Champion

Not entirely sure what you want. I have Week Starting: https://community.powerbi.com/t5/Quick-Measures-Gallery/Week-Starting/m-p/391487#M123

 

Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Sorry but i dont understand your response.

I have the W/C data in a table with the rest of my data. I can display the data by week number but not by w/c.

 

WC Date     Week Calls In Calls Ans Calls Ans (%) ❤️ mins

04-Nov-19233129211435.9%
11-Nov-19242785220636.3%
18-Nov-19252522212444.1%
25-Nov-19262727239046.8%
02-Dec-19273620275433.0%
09-Dec-19284237279622.1%
16-Dec-19293682251330.1%
23-Dec-1930129491722.2%



@Spireite4 ,

 

Either data is available daily and we are grouping weekly or data is available weekly with a date or Week no/year. What is true for you.

There can few other tables having data at day , month or all other levels.

 

We create a common Date dimension. In that we add Month, year, Week start, Week-End, Week No, Week year, etc.  We join with all out other tables on date. I had given a file where both week start and week end date. So you can use that.

 

To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s. Refer :
https://radacad.com/creating-calendar-table-in-power-bi-using-dax-functions
https://www.archerpoint.com/blog/Posts/creating-date-table-power-bi
https://www.sqlbi.com/articles/creating-a-simple-date-table-in-dax/

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
amitchandak
Super User
Super User

Please find the file, I have created a week start date and week end date that can be used to display the chart. Also, Rank is used to display this week vs last week.

https://www.dropbox.com/s/d9898a48e76wmvl/sales_analytics_weekWise.pbix?dl=0

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

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.

Top Solution Authors
Top Kudoed Authors