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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
SOURENA
Regular Visitor

Visualisation problem

Hello,
I faced a problem that is related to the visualisation of bar chart. I imported my excel file and I wanted to associate my first column, which is the name of Merchandise, to my second column, which is the Arrival Date of them. I want to have my Merchandise in Y axis and their associated date in X axis, but the problem is that while I put the Arrival Date in the X axis, it defines it as a Continuous type instead of Categorical and I can only use Count and Count(Distinct) for the values, moreover, there is not any button to change the type of the data, and the X axis instead of being the real dates, it is 1 and 2. 

SOURENA_0-1740651594976.pngSOURENA_1-1740651619330.png

Can anyone help me please?
Thank you ever so much.

 

4 REPLIES 4
Anonymous
Not applicable

Hi, @SOURENA 

You're using a horizontal bar chart, and you need to put the date in the Y-axis:

vjianpengmsft_0-1740720502472.png

Change it to a category:

vjianpengmsft_1-1740720518614.png

The x-axis puts your measure or aggregation field, such as the amount:

vjianpengmsft_2-1740720607441.png

 

 

Best Regards

Jianpeng Li

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

 

 

Thank you ever so much for your informative help, the case is that I have changed the axises and it works for the date but the new problem has risen and for the X axis of the Merchandise, the name of them have not been mentioned like the attached picture, would you kindly help me to solve it as well please?
Thank you ever so much.

SOURENA_0-1740726950543.png

 

freginier
Super User
Super User

hey there! 

I think I can help you.nFirst, click on the "Arrival Date" column in your Fields pane. In the Data view (or column tools), make sure the data type of the "Arrival Date" is set as a date or text type. This will make it easier for Power BI to treat it as categorical.

Then..

 

  • In the visual pane (where you are configuring the bar chart), click on the X-axis settings.
  • If "Continuous" is selected for the axis type, switch it to "Categorical."
  • This will allow Power BI to treat your dates as individual categories rather than a continuous range of values.

And also check if the dates are still appearing as numbers (like 1 and 2), check the formatting of the "Arrival Date" field in the X-axis. You may need to set the format to something like "Day-Month-Year" or whatever is appropriate for your dataset.

 

Hope this helps! 

😁😁

 

 

Thank you ever so much for your consideration, in essence, I cannot find X-axis settings to change the type from continuous to categorical. can you help me in that please?

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.