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.
Hello All,
I am having a strange issue I haven't encountered before in Power BI Desktop. I have a bar graph with the X-Axis using Dates and the Type set to categorical.
I am getting this result:
September 2018 is appearing twice. The underlying data doesn't show any reason why September 2018 might be a problem:
Any ideas on how to correct this?
Thank you in advance!
Solved! Go to Solution.
Hi @Rich_P_G
As tested, if the original data is as below
date | value |
8/1/2019 | 1 |
9/1/2019 | 2 |
9/2/2019 | 3 |
10/1/2019 | 4 |
11/1/2019 | 5 |
Then in Power BI, change the "type" of "date" column to MMMM YYYY,
select categorical type for X-axis,
To solve this problem, I add a calculated column as below
Column = FORMAT([date],"mmmm yyyy")
Hi @Rich_P_G
As tested, if the original data is as below
date | value |
8/1/2019 | 1 |
9/1/2019 | 2 |
9/2/2019 | 3 |
10/1/2019 | 4 |
11/1/2019 | 5 |
Then in Power BI, change the "type" of "date" column to MMMM YYYY,
select categorical type for X-axis,
To solve this problem, I add a calculated column as below
Column = FORMAT([date],"mmmm yyyy")
This worked. Thank you!
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
110 | |
108 | |
88 | |
76 | |
66 |
User | Count |
---|---|
126 | |
112 | |
99 | |
82 | |
73 |