Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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
Solved! Go to Solution.
Change your x axis from continuous to categorical. (you will have to reapply the sort by x axis after that)
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
User | Count |
---|---|
76 | |
75 | |
46 | |
31 | |
27 |
User | Count |
---|---|
99 | |
91 | |
51 | |
49 | |
45 |