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
dkao
Frequent Visitor

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
v-stephen-msft
Community Support
Community Support

Hi @dkao ,

 

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

@dkao , 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)
)
)

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
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.