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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Extend the cumulative line charts to present even when there is no data available

Hi guys, I have trouble when making cumulative charts, please see below figure:

dkao_1-1641474415062.png

 

As you can see, since there is no blue data after 2020 Q2, so the blue line stopped at Q2 and did not extend to the present. 
Here is the formula I used to generate the line:

 

 

**bleep** COUNTS = 
CALCULATE(
	COUNT('ABC'[Attribute]),
	FILTER(
		ALLEXCEPT('ABC','ABC'[Attribute]),
		ISONORAFTER('ABC'[Date/Time (Quarter)], MAX('ABC'[Date/Time (Quarter)]), DESC)
	)
)

 

 

Can someone help me out on this? I have been struggling on this one for days, thanks!

3 REPLIES 3
Anonymous
Not applicable

Hi @Anonymous ,

 

Can you provide me with some dummy data?

I think you want to fill down measure, right?

Here's a similar posts:

Solved: Dax Measure Fill Down Value - Microsoft Power BI Community

 

 

Best Regards,

Stephen Tao

 

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

amitchandak
Super User
Super User

@Anonymous , Join date of your table with a date of date table and then try measure like this with columns from date table on axis(like qtr year etc )

 

**bleep** COUNTS =
CALCULATE(
COUNT('ABC'[Attribute]),
FILTER( allselected('Date')
ISONORAFTER('Date'[Date], MAX('Date'[Date]), DESC)
), ALLEXCEPT('ABC','ABC'[Attribute])
)

 

or

 

**bleep** COUNTS =
CALCULATE(
COUNT('ABC'[Attribute]),
FILTER( allselected('Date')
ISONORAFTER('Date'[Date], MAX('Date'[Date]), DESC)
)
)

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Hi @amitchandak , I just tried your first part of the code and it became like this:

dkao_1-1641476638210.png

 

The second doesn't work either😅

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.