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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
nycdoe-jmathews
Regular Visitor

Disconnecting distinct annual cycles in Stacked Area Chart?

I am tracking the number of applications on any given date over multiple annual cycles using a simple measure:

# Applications State-in-Time = COUNTROWS(Applications)

This measure calculates correctly but causes the separate cycles to be connected by lines when plotted on a Stacked Area Chart, which is messy when legend fields are added: 

nycdoe-jmathews_0-1616182570964.png

 

Any ideas for a DAX measure that would force each cycle to plot separately?

 

Current (legend removed):

current.png

 

Desired:

desired.png

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

inject zero values into your data at the appropriate marks. (this can be done by appending your data table with a manually created table of these zero values).

View solution in original post

2 REPLIES 2
lbendlin
Super User
Super User

inject zero values into your data at the appropriate marks. (this can be done by appending your data table with a manually created table of these zero values).

Thanks! You reminded me of adding 0 at the end of the measure. That simple change works well for what I need. Here's my updated measure: 

 

# Applications State-in-Time = COUNTROWS(Applications)+0

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors