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

View all the Fabric Data Days sessions on demand. View schedule

Reply
Anonymous
Not applicable

Week numbers autofilled in chart

Hi all, 

 

I have a weird issue. I basically have values per YearWeek numbers. the YearWeek column is calculated from the date column as follows: 

YearWeek = YEAR('Date'[Date])*100+WEEKNUM('Date'[Date])
This works fine and it returns nicely the YearWeek like 202252, 202253, 202301, 202302 etc. However, when I put the values and YearWeek in a chart for some reason I get numbers like 202254, 202255 etc .. all the way up to 202299, 202300. Of course, the chart is all messed up because now I have gaps beween the years (as attached).
Did anyone encounter this? How can I solve it? 

Best,
Screenshot 2023-08-29 135410.jpg
1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , better to use a categorical Axis, not a continuous

 

Axis_type.png

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

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

It works, thank you 🙂

amitchandak
Super User
Super User

@Anonymous , better to use a categorical Axis, not a continuous

 

Axis_type.png

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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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