cancel
Showing results 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

Frequent Visitor

## Gap in stacked 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!

1 ACCEPTED SOLUTION
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 )``````

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.

2 REPLIES 2
Frequent Visitor

Awesome!! Thank you!

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 )``````

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.