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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Andreasaaroe
New Member

Running total same as previous if blank

Hi All.

 

Im currently trying to make a DAX Command which wont leave running total value blank if there is no value in the given year/week.

 

Currently I have the following graph where the problem is well illustrated:

Graph.pngAndreasaaroe_0-1701347407586.png

 

Im useing the following columns on my axis' and as legend:

 

X-axis: Merged year and week column. Given in text format.

Y-Axis: Quick-Measure for running total:

 

AcumulatedStatus = 
CALCULATE(
            COUNTA('UseData'[Status]),
            FILTER(
                        ALLSELECTED('UseData'[Change-Year-Week]),
                        ISONORAFTER('UseData'[Change-Year-Week], MAX('UseData'[Change-Year-Week]), DESC)
            )
)

 

 

Legend: Status column (The column consists of 3 text values, shown on each line in above graph)

 

I need help to write a measure/make changes so I wont have gaps between data points on the graph.

 

Thanks in advance. 


Best regards,

 

Andreas.

 

 

 

2 REPLIES 2
Ashish_Mathur
Super User
Super User

Hi,

Does this measure work?

AcumulatedStatus = CALCULATE(COUNTA('UseData'[Status]),datesbetween(calendar[date],minx(all(calendar),calendar[date]),max(calendar[date])))

Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
lbendlin
Super User
Super User

use a date column for the x axis and make the axis continuous instead of categorical.

Helpful resources

Announcements
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!

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.

Top Solution Authors