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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
rprible
Frequent Visitor

Problem: Odd views in a stacked area chart with null values | Categorical X-axis for this graph crea

Problem: Odd views in a stacked area chart with null values | Categorical X-axis for this graph creates an X-axis that is too long.

 

Situation:

I have created a stacked area chart as shown below which works perfectly as shown:

This is currently shown with a Continuous X-axis:

rprible_2-1664767304904.png

 

However, when I filter my data, I may see results where some of the categories are periodically missing, where the results then look like the image below where lines are connected across the last time that "Team" was displayed, passing through times where "Team" was null and therefore creating an odd looking visual:

rprible_1-1664767079985.png

I have tried to correct this by:

A. Changing to "categorical" rather than "continuous" and while this works, my axis has too many elements and therefore not all 13 months can be viewed at the same time. This is not ideal as it no longer matches with the rest of my tables.

rprible_3-1664767421354.png

B. I have reordered my Ledgend but it did not remedy the results

C. I do not want to create 0s where I have no data for a particular activity type as this will nearly double my 500MB file.

 

Are there any solutions that shortens the X axis for Categorical labels in this view? Or any other options here?

1 ACCEPTED SOLUTION
rprible
Frequent Visitor

I found an acceptable solution for me - a stacked bar chart with a continuous X-axis! Sharing in case anyone else is looking!

 

rprible_0-1665453210478.png

 

View solution in original post

3 REPLIES 3
rprible
Frequent Visitor

I found an acceptable solution for me - a stacked bar chart with a continuous X-axis! Sharing in case anyone else is looking!

 

rprible_0-1665453210478.png

 

rprible
Frequent Visitor

@amitchandak I appreciate your response - unfourtunately, Categorical Axis is the solution to the odd view of my data. Seems I am stuck in a catch 22!

amitchandak
Super User
Super User

@rprible , As far as I know, Continuous Axis is the solution to reduce axis

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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