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
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

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

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.