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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

change x axis label for a graph with calendar week over several years

Hello,
I want to create a lineStackedColumnComboChart with calendar weeks over severale years. So I have created a new column in which the year and the calendar week are shown as numbers.
Then I have the problem that the x-axis adds the missing values of the calendar weeks.

Kapa1.png

Then i found a function that determines the calendar week. Now i need the possibility to change my x axis with the values of the other column:

 

2020-05-20 21_46_35-Kapa - Power BI Desktop.png

2020-05-20 21_47_03-Kapa - Power BI Desktop.png

 

2020-05-20 21_25_42-Kapa - Power BI Desktop.png

 

 

 

 

 

I hope you understand my problem and that someone can help me.

Thanks!

7 REPLIES 7
Anonymous
Not applicable

Good morning

Are you using a date table?

If you don't want to change too much, check the data type for the date. You can change the type.

Also, you can use a data table for the date of everything, but you need to use relationships.

Search Date Dimension Tables, there are many.

Thank you, I'm a Spanish student, forgive my mistakes,

Anonymous
Not applicable

Hi @Anonymous,
thanks for your answer. I have created such a date table. Unfortunately, the result is the same. When I display the calendar week with the year (two values in the common x-axis), I have no auto scale.

2020-05-23 21_05_40-Kapa_high-res - Power BI Desktop.png

With only the calendar week in the common a-axis I have an auto scaling but it combines the values of the different years in one calendar week.

2020-05-23 21_06_38-Kapa_high-res - Power BI Desktop.png

Is there no possibility in the X-axis to display the calendar week for several years in a row with auto scaling?

v-yingjl
Community Support
Community Support

Hi @Anonymous ,

Maybe use the filter of this visual to filter the value is not 0.

visual filter.png

Best Regards,
Yingjie Li

If this post helps then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Hello @v-yingjl ,

thank you for your tip. Unfortunately, this also does not work in relation to the calendar year and calendar week.

2020-05-21 12_50_46-Window.png

2020-05-21 12_47_29-Window.png

Anonymous
Not applicable

Hi @v-yingjl ,

 

thank you for your tip. Unfortunately, this also does not work in connection with the calendar year and calendar week.

2020-05-21 12_50_46-Window.png

 

2020-05-21 12_47_29-Window.png

Greg_Deckler
Super User
Super User

Maybe, try switching your axis to categorical instead of continuous?

@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

then i don't have auto scaling for filtering with different number of data sets.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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