Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
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!
User | Count |
---|---|
84 | |
73 | |
67 | |
42 | |
35 |
User | Count |
---|---|
109 | |
56 | |
52 | |
45 | |
43 |