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

View all the Fabric Data Days sessions on demand. View schedule

Reply
Anonymous
Not applicable

How do I stop Running Total Quick Measure from continuing to display beyond values entered

I was able to create a quick measure for running total (great new feature!), but my line chart for this running total measure continues beyond the values entered. 

 

Quck Measure is a running total of Pre-Confernece registration by weeks out from our conference. 

DAX:

2017 Pre-Con Total (by Weeks Out) =
CALCULATE(
[Pre-Con Active Total],
FILTER(
ALLSELECTED('Reference'[Weeks Out]),
ISONORAFTER('Reference'[Weeks Out], MAX('Reference'[Weeks Out]), DESC)
)
)

 

[Pre-Con Active Total] = Count of Pre-Con registrations with blanks filtered out

'Reference'[Weeks Out] = Reference column to use as X-Axis in charts. Relationship between registration date and this column allows me to compare YoY numbers by Weeks out from the conference. 

 

My problem is that my line chart continues beyond our current weeks out (12) to 0 weeks out with a continuous line. Is there any way to edit my running total so that only values on or before today are shown in the line chart? 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous,

 

As MattAllington said, you can add a condition to check if the week number is less than current week number.

 

Sample:

2017 Pre-Con Total (by Weeks Out) =
CALCULATE(
[Pre-Con Active Total],
FILTER(
ALLSELECTED('Reference'[Weeks Out]),
ISONORAFTER('Reference'[Weeks Out], MAX('Reference'[Weeks Out]), DESC)&&'Reference'[Weeks Out]<= MAX('Reference'[Weeks Out])
)
)

 

Regards,

Xiaoxin Sheng

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @Anonymous,

 

As MattAllington said, you can add a condition to check if the week number is less than current week number.

 

Sample:

2017 Pre-Con Total (by Weeks Out) =
CALCULATE(
[Pre-Con Active Total],
FILTER(
ALLSELECTED('Reference'[Weeks Out]),
ISONORAFTER('Reference'[Weeks Out], MAX('Reference'[Weeks Out]), DESC)&&'Reference'[Weeks Out]<= MAX('Reference'[Weeks Out])
)
)

 

Regards,

Xiaoxin Sheng

MattAllington
Community Champion
Community Champion

Einer load your calendar table up to he current week, or use an if statement to check if the current week has a value, and return blank if it doesn't. 



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.
I will not give you bad advice, even if you unknowingly ask for it.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors
Top Kudoed Authors