cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
NRS_Tych
Frequent Visitor

Gap in stacked area chart

Please help - how do I remove the gaps in the area chart?

This is something like product count based on different products and I get a gap. Is there any way to remove this please? 

Thank you!

 

NRS_Tych_0-1686060324286.png

 

1 ACCEPTED SOLUTION
v-tangjie-msft
Community Support
Community Support

Hi @NRS_Tych ,

 

1 create a new table via values(table[x-axis])

2 set the newtable[x-axis] as the X-axis of the stacked area chart

3 create a measure like the following:

Measure =
VAR _s =
    CALCULATE ( SUM ( 'Table'[Value] ), 'Table'[Date] = MAX ( 'New Table'[Date] ) )
RETURN
    IF ( ISBLANK ( _s ), 0, _s )

vtangjiemsft_0-1686187528785.png

 

Best Regards,

Neeko Tang

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

2 REPLIES 2
NRS_Tych
Frequent Visitor

Awesome!! Thank you! 

v-tangjie-msft
Community Support
Community Support

Hi @NRS_Tych ,

 

1 create a new table via values(table[x-axis])

2 set the newtable[x-axis] as the X-axis of the stacked area chart

3 create a measure like the following:

Measure =
VAR _s =
    CALCULATE ( SUM ( 'Table'[Value] ), 'Table'[Date] = MAX ( 'New Table'[Date] ) )
RETURN
    IF ( ISBLANK ( _s ), 0, _s )

vtangjiemsft_0-1686187528785.png

 

Best Regards,

Neeko Tang

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

Helpful resources

Announcements
PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

MPPC 2023 PBI Carousel

Power Platform Conference-Power BI and Fabric Sessions

Join us Oct 1 - 6 in Las Vegas for the Microsoft Power Platform Conference.

Top Solution Authors
Top Kudoed Authors