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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
AggregatesJ
Frequent Visitor

filtering the x axis

Hi,
The company I work for uses 4-digit week identifier where the first two digits represent the year, the second two represent the week. so, for example 2201 is week one of 2022 and 2301 is week one of 2023.

I have built some visuals the use this numbering system on the x axis, it was working well until the beginning of the new year, now the visual has lots of white space between weeks 2252 and 2301, I have been trying to filter this out, so it continues to run on without this gap.

I have tried multiple things on the standard visual filters without success, my attempts at using DAX have also not worked am I missing something or is this a case of just accepting this is how it’s going to look going forward.

I am new to DAX with only a basic knowledge currently.

Thanks in advance for any insights offered

 

White Space Issue.png 

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

Change your x axis from continuous to categorical.  (you will have to reapply the sort by x axis after that)

View solution in original post

2 REPLIES 2
lbendlin
Super User
Super User

Change your x axis from continuous to categorical.  (you will have to reapply the sort by x axis after that)

So I tried on the original visual as you described. I could not get it to sort back into the week category order, I think it is because I have multiple data points for each category grouping. I switched my data sources to one where I have one data point per week category, and it worked.

Thank you for the help

Helpful resources

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

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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