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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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