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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register 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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.