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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
samdep
Advocate II
Advocate II

Running Total

Hi Everyone - 

 

I've created a calculated column that looks at the count of days from a client request to intake of that client - off of two date fields.

 

I then created a measure for a running total/cume by day -- but on days where there are zero intakes, the first value is populating in my table.

 

My measure:

Cume Intakes = 

CALCULATE(COUNT('Assessment'[Connection to Intake Diff in Days]),
FILTER(ALLSELECTED('Assessment'[Connection to Intake Diff in Days]),
'Assessment'[Connection to Intake Diff in Days] <= MAX('Assessment'[Connection to Intake Diff in Days])))
 
Basically, the output looks like the below -- In Row/Day 4, I'd prefer it either be blank or repeat the previous value - since no additional intakes occurred on Day 4, but it is instead returning Day 0's value... The cume is not impacted, so it's just a bit odd.
 
Day  Intake Count  Cume
0      16        16
1      64        80
2      37        117
3      33        150
4                  16
5      23        173
 
Appreciate any feedback on my probably not-great DAX code! Thank you!
1 ACCEPTED SOLUTION
HashamNiaz
Solution Sage
Solution Sage

Hi !

You cna try using ISBLANK() function to get desired output;

 

Cume Intakes = 
IF ( ISBLANK('Assessment'[Intake Count])
    , BLANK()
    , CALCULATE(COUNT('Assessment'[Connection to Intake Diff in Days]),
        FILTER(ALLSELECTED('Assessment'[Connection to Intake Diff in Days]),
        'Assessment'[Connection to Intake Diff in Days] <= MAX('Assessment'[Connection to Intake Diff in Days])))
)

 

Regards,

Hasham

View solution in original post

2 REPLIES 2
HashamNiaz
Solution Sage
Solution Sage

Hi !

You cna try using ISBLANK() function to get desired output;

 

Cume Intakes = 
IF ( ISBLANK('Assessment'[Intake Count])
    , BLANK()
    , CALCULATE(COUNT('Assessment'[Connection to Intake Diff in Days]),
        FILTER(ALLSELECTED('Assessment'[Connection to Intake Diff in Days]),
        'Assessment'[Connection to Intake Diff in Days] <= MAX('Assessment'[Connection to Intake Diff in Days])))
)

 

Regards,

Hasham

@HashamNiaz that worked perfectly, thank you!

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.