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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Meera556
Helper I
Helper I

adding date column to x axis in a stacked bar chart getting count of date column

I'm trying to add date column in bar chart and stacked bar chart in x axix getting the count of date column instead of displaying values.

Can anyoune help how to reslove the issue

1 ACCEPTED SOLUTION

Hi @Meera556 


Since a graph is a visual representation, it's highly recommended to attach an example of the data and the desired outcome to better understand your objectives.

This will help us grasp your requirements more effectively, provide a truly relevant solution, and avoid unnecessary back-and-forth communication based on assumptions.

Nevertheless, I'll attempt to explain the logic behind graphs in the hope that it will be helpful.

Unlike tables where the "don't summarize" option can be used, graphs are designed for aggregations. Therefore, it's not possible to display every single data point on the axis representing values (which determines the size of the shapes in the graph).

Consequently, if you want to create a graph with dates on the X-axis, you can use a column chart since it has categories on the X-axis.
like in the attached picture :

Ritaf1983_0-1718096903602.png

In contrast, a bar chart is a graph where the X-axis represents aggregated values, so it cannot be used with dates (since the size of the bar cannot be determined based on the date).

Dates can only be displayed on the Y-axis, which represents X-axis categories.

Ritaf1983_1-1718097111539.png

PBIX with examples is attached

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

 

 

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

View solution in original post

3 REPLIES 3
Ritaf1983
Super User
Super User

Hi @Meera556 
Can you show the desired result?

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

Hi,

Thanks for your reply

I need the result as individual date values on x axis but I'm getting the count of date values

Hi @Meera556 


Since a graph is a visual representation, it's highly recommended to attach an example of the data and the desired outcome to better understand your objectives.

This will help us grasp your requirements more effectively, provide a truly relevant solution, and avoid unnecessary back-and-forth communication based on assumptions.

Nevertheless, I'll attempt to explain the logic behind graphs in the hope that it will be helpful.

Unlike tables where the "don't summarize" option can be used, graphs are designed for aggregations. Therefore, it's not possible to display every single data point on the axis representing values (which determines the size of the shapes in the graph).

Consequently, if you want to create a graph with dates on the X-axis, you can use a column chart since it has categories on the X-axis.
like in the attached picture :

Ritaf1983_0-1718096903602.png

In contrast, a bar chart is a graph where the X-axis represents aggregated values, so it cannot be used with dates (since the size of the bar cannot be determined based on the date).

Dates can only be displayed on the Y-axis, which represents X-axis categories.

Ritaf1983_1-1718097111539.png

PBIX with examples is attached

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

 

 

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 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.