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