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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
Renaud
Advocate IV
Advocate IV

stacked area chart distorted: can we treat blank as 0?

Hello,

 

I am displaying data on a chart on 4 categories (1 color each below). On some days I have no data for some categories

Instead of being treated as 0, the area for the particular categories with no data jumps in a straight line to the following day that has some data - cutting through the rest of the chart in a very weird and unintuitive way.

See below:

2018-01-23_18h15_51.png

 

 

Basically the issue is the blank data which i think is not interpreted as a zero. Is it an expected behavior and is there a way to fix the visual?
(i would like to avoid forcing blank to 0 in my measure because it will then calculate a value for days that i'm not interested in)

1 ACCEPTED SOLUTION
v-yuezhe-msft
Microsoft Employee
Microsoft Employee

@Renaud,

In the stacked ared chart, change the type of your X-Axis from Continuous to Categorical,  this way, you will not get any area for the blank data in the chart. There is an example for your reference.

1.JPG

Regards,
Lydia

Community Support Team _ Lydia Zhang
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

3 REPLIES 3
v-yuezhe-msft
Microsoft Employee
Microsoft Employee

@Renaud,

In the stacked ared chart, change the type of your X-Axis from Continuous to Categorical,  this way, you will not get any area for the blank data in the chart. There is an example for your reference.

1.JPG

Regards,
Lydia

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

The blank (white background) areas look odd in the middle of the graph.  They appear to correspond to when the count of items is zero but instead of the total being 0 the total is blank and the chart displays a discontinuity.  How can this be avoided?

Thanks @v-yuezhe-msft it worked.

 

The axis is now displaying the dates in a long format (just like in your example). Any possibility to keep the format to the previous one?

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

July 2024 Power BI Update

Power BI Monthly Update - July 2024

Check out the July 2024 Power BI update to learn about new features.

July Newsletter

Fabric Community Update - July 2024

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