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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
Anonymous
Not applicable

Bug with X axis? - years

I'm having an issue where some of my Stacked column charts on a page display month and year, instead of just showing year which is the correct way. 

I have no clue why this is happening, I have 6 seemingly identical stacked column charts where the only difference is they each are filtered in a different category, and I only get this isssue with one of them. 

 

I have the date formated as year only (yyyy). And there are no date hierarchy options to click/disable etc. So why does it appear correct for some of the charts, and not other? What am I missing

I can change X-axis type to categorical, but that ruins the visual appearance/format for us. 

 

Se pic below for example:

 

 

2022-04-28 11_19_26-Window.png

1 ACCEPTED SOLUTION
v-kkf-msft
Community Support
Community Support

Hi @Anonymous ,

 

Even if you format the date column as "YYYY", power bi does not consider the 3 rows of dates circled in red to be the same. The column format only affects the displayed values and doesn't impact how they are stored. 

 

Screenshot 2022-05-03 171210.png

 

So in the first stacked chart the month will be displayed to show that they are not equal.

 

vkkfmsft_0-1651569717530.png


So I think you will have to create a new year column and use the column as the horizontal coordinate.

 

Year = YEAR ( [Date] )

vkkfmsft_2-1651569813296.png

vkkfmsft_1-1651569788196.png

 

If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

3 REPLIES 3
v-kkf-msft
Community Support
Community Support

Hi @Anonymous ,

 

Even if you format the date column as "YYYY", power bi does not consider the 3 rows of dates circled in red to be the same. The column format only affects the displayed values and doesn't impact how they are stored. 

 

Screenshot 2022-05-03 171210.png

 

So in the first stacked chart the month will be displayed to show that they are not equal.

 

vkkfmsft_0-1651569717530.png


So I think you will have to create a new year column and use the column as the horizontal coordinate.

 

Year = YEAR ( [Date] )

vkkfmsft_2-1651569813296.png

vkkfmsft_1-1651569788196.png

 

If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

amitchandak
Super User
Super User

@Anonymous , which one is correct and which one is wrong? One is on month and one is on year.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

@amitchandak The one with only year is correct. But they're both using the exact same column from the table. So I don't understand why this is happening. The only difference between the two charts is a filter which shows correctly for 5/6 charts....

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors