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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
JVP
Helper II
Helper II

Date not showing on X Axis for PowerBI chart, only Count

I'm a beginner user to PowerBI and I must be missing something very simple here. Below is example of what I am trying to create with a chart as below (Excel) which shows dates along X Axis. 

 

Capture.JPG

When I import data to PowerBI, I am only getting the option to count. Are there extra steps I need to do to achieve the above?

Capture2.JPG

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

Hi @JVP ,

 

I did a test similar to yours: I created a bar chart and found that the date column also automatically became counted, which I think may be bar chart can only use number as x-axis

 

Are you considering using another visual? For example Gantt Chart, it presents the same type of chart as you want to achieve.

vmengzhumsft_1-1658136727413.png

 

Best regards,

Community Support Team Selina zhu

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

5 REPLIES 5
Banan
Frequent Visitor

Were you able to reach a solution?

Hi, no the gantt chart visual didn't fit my needs either so I ended up not using dates and just used a count of the days left instead.

v-mengzhu-msft
Community Support
Community Support

Hi @JVP ,

 

I did a test similar to yours: I created a bar chart and found that the date column also automatically became counted, which I think may be bar chart can only use number as x-axis

 

Are you considering using another visual? For example Gantt Chart, it presents the same type of chart as you want to achieve.

vmengzhumsft_1-1658136727413.png

 

Best regards,

Community Support Team Selina zhu

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

Thanks, I didn't think of a Gantt chart. I'll give it a go.

JVP
Helper II
Helper II

I tried changing the date column to "Whole number" format and it does show the other options other than count but it still can't treat it as a date.

 

I ended up just using a databar in conditional formatting instead for what I needed. I guess PowerBI does not support plotting Text against Dates, only dates against number values.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.