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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
AlexJ01
Helper I
Helper I

How to make line chart end?

Hi there,

 

I have created some running total measures (count vs date) for a cummulative line chart which looks like this:

AlexJ01_0-1686081873606.png

I've got a separte date table which has been used to create the measures:

AlexJ01_2-1686082284377.png

 

The issue I have is that the blue and purple lines have no data past about July, so I'd like those lines to end there, but I can't seem to do it without breaking them. Basically I want it to look like the below:

AlexJ01_1-1686082067964.png

Any help would be appreciated!

4 REPLIES 4
Greg_Deckler
Community Champion
Community Champion

@AlexJ01 So, going to be a bit dependent on exactly how things are configured in your model but perhaps something like this:

Blue Line RT =
  VAR __Measure = [Blue Line Running Total Measure]
  VAR __Count = COUNTROWS( 'Block 5 )
  VAR __Result = IF( __Count = BLANK(), BLANK(), __Measure )
RETURN
  __Result


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

@Greg_Deckler  I'm still learning all the language - could you help me out if I provide my report and data files? 

@AlexJ01 That's usually the fastest way to victory.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Thanks @Greg_Deckler  I've uploaded a simplified version of my report & data source file to this WeTransfer link: https://we.tl/t-DSWRWvEpLG 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.