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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
aggelina095
New Member

How to keep the x-axis static in a line & clustered column chart

Hello, 

 

I'm struggling with a visual in Power BI. I've created a line and clustered column chart displaying the distribution of ratings on a 5-level scale for two fiscal years (see screenshot 1). Additionally, I've added a slicer to filter the visual by department. However, in some departments with fewer employees, the data doesn't include ratings for all levels (1 to 5), resulting in the visual showing only the ratings where data is available (see screenshot 2). This creates a visually misleading representation where the distribution isn't accurately depicted. The lines are calculated as a percentage of the grand total, and the 'show no data' option doesn't seem to work.

 

Screenshot 1:

 

aggelina095_0-1709142122937.png

Screenshot 2:

aggelina095_1-1709142200546.png

 

Here is the dataset where the visual actual the count of employees on each grade:

 

Department Performance PeriodOverall RatingOverall Rating Description
Department AFY20233Meets expectations
Department AFY20233Meets expectations
Department AFY20234Exceeds expectations 
Department AFY20234Exceeds expectations 
Department AFY20231Does not meet expectations
Department AFY20232Partially meets expectations
Department AFY20233Meets expectations
Department AFY20232Partially meets expectations
Department AFY20233Meets expectations
Department AFY20235Outstanding
Department AFY20233Meets expectations
Department BFY20234Exceeds expectations 
Department BFY20234Exceeds expectations 
Department BFY20233Meets expectations
Department BFY20233Meets expectations
Department BFY20233Meets expectations
Department BFY20233Meets expectations
Department BFY20233Meets expectations
Department BFY20233Meets expectations

 

Can someone please help?

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @aggelina095 ,

 

Please try:

 

Creating a new table with a list of all of your 'Overall Rating'.

vhuijieymsft_0-1709191967557.png

 

Link this to the original table, use that as the axis on the chart and make sure 'show items with no data' is ticked.

vhuijieymsft_1-1709191967558.png

 

You can refer to this post.

Solved: Column Chart - Keeping X Axis Static - Microsoft Fabric Community

 

If you want to know more about 'show items with no data', please refer to:

Show items with no data in Power BI - Power BI | Microsoft Learn

 

I would be grateful if you could provide me with the data used to draw your graph, such as Count and %.

 

If you have any further questions please feel free to contact me.

 

Best Regards,
Yang
Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @aggelina095 ,

 

Please try:

 

Creating a new table with a list of all of your 'Overall Rating'.

vhuijieymsft_0-1709191967557.png

 

Link this to the original table, use that as the axis on the chart and make sure 'show items with no data' is ticked.

vhuijieymsft_1-1709191967558.png

 

You can refer to this post.

Solved: Column Chart - Keeping X Axis Static - Microsoft Fabric Community

 

If you want to know more about 'show items with no data', please refer to:

Show items with no data in Power BI - Power BI | Microsoft Learn

 

I would be grateful if you could provide me with the data used to draw your graph, such as Count and %.

 

If you have any further questions please feel free to contact me.

 

Best Regards,
Yang
Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.