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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
djayatillake
New Member

Cumulative count has blanks, is there a way to display running total instead of blanks?

Hi,

 

I've created a dataset which I'm using in a dashboard, it has for every loan we have deposited to a member:

 

MemberId

LoanId

CustomerLoanNumber (This is 1 for the Member's first loan, and 2 for the second...)

Category (Last loan, reborrowed after this loan)

MemberCohort (what YYYYMM did we board the customer)

 

The dashboard shows customers by loan number, split by category which works fine.

 

I was then asked to create a cumulative view of this, which seemed to work great with the formula below:

 

CumulativeUniqueMembers = CALCULATE(COUNT(Dataset[MemberId]), FILTER(ALL(Dataset[CustomerLoanNumber]), Dataset[CustomerLoanNumber] <= MAX(Dataset[CustomerLoanNumber])))

 

However, I found an issue when I filtered the chart to newer MemberCohorts: what I've found is that where a given category doesn't have any rows (members) for a specific customer loan number, the formula produces blanks for that category and customer loan number combination.

 

Is there any way that I could adjust the formula to show the running count when there are no rows for a particular category/customer loan number combination?

 

For example if for CustomerLoanNumber = 8 and category = 'LastLoan', the CumulativeUniqueMembers = 15, but there were no members who were on CustomerLoanNumber = 9 with category = 'LastLoan, would it be possible to display the previous CumulativeUniqueMembers from CustomerLoanNumber = 8 which was 15? 

 

I've spent hours trying to get this to work, none of the solutions I've seen out there seem to fit this case or haven't worked when I've attempted them. Would really appreciate any help or guidance.

 

Thanks

David

2 REPLIES 2
waltheed
Impactful Individual
Impactful Individual

I guess the issue is in your data model. You probably only have one flat table, Am I right?

Can you share your file in some way? 

 

Cheers, Edgar Walther
ITsmart BI and Analytics consultant
djayatillake
New Member

Hi,

 

I've created a dataset which I'm using in a dashboard. It shows customer loans by no of loan they have taken, split by category. I was then asked to create a cumulative view of this, which seemed to work great with the formula below, but what I've found is that where a given category doesn't have any rows for a specific customer loan number, the formula produces blanks for that category and customer loan number.

 

Is there any way that I could adjust the formula to show the running count when there are no rows for a particular category/customer loan number combination?

 

CumulativeUniqueMembers = CALCULATE(DISTINCTCOUNT(DormancyCore[MemberId]), FILTER(ALL(DormancyCore[CustomerLoanNumber]), DormancyCore[CustomerLoanNumber] <= MAX(DormancyCore[CustomerLoanNumber])))

 

 

 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.