Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

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 se...
  • v-kkf-msft's avatar
    4 years ago

    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. 

     

     

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

     


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

     

    Year = YEAR ( [Date] )

     

    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.