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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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

Top Solution Authors
Top Kudoed Authors