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
sreddy47652
Helper III
Helper III

Cumulative total and Running total with many to many

Hi Team, i have 2 tables and it's having many to many relationship between those tables so now i am trying to create measures between Running total and cumulative count but it was giving same values as measure and other way it's throwing visual exceed memory issue even i have 15K records, i tries to create measures like Quick measure and Dax but still it's not working so can you please guide me how to get Running total and cumulative count with many to many relationship. I don't have any date table in between my model as well.

1 ACCEPTED SOLUTION
Jihwan_Kim
Super User
Super User

Hi,

I am not sure how your semantic model looks like, but if your visualization is working correctly on the power bi report page, try using Visual Calculation to get the result of running sum or cumulate count.

 

Using visual calculations in Power BI Desktop - Power BI | Microsoft Learn

 


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

View solution in original post

2 REPLIES 2
Jihwan_Kim
Super User
Super User

Hi,

I am not sure how your semantic model looks like, but if your visualization is working correctly on the power bi report page, try using Visual Calculation to get the result of running sum or cumulate count.

 

Using visual calculations in Power BI Desktop - Power BI | Microsoft Learn

 


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.
rajendraongole1
Super User
Super User

Hi @sreddy47652 - You can create a bridge table that contains unique values from both tables for the key columns. This will let you manage the relationship effectively 

I hope you have seperate date table in your model that can be calculating cumulative counts or running totals over time, adding a date table can simplify the DAX logic.

 

Below is the measure and replace with your tables.

RunningTotal =
CALCULATE(
SUM('YourTable'[ValueColumn]),
FILTER(
ALL('YourTable'[OrderColumn]), -- Replace OrderColumn with Date or Sequential Column
'YourTable'[OrderColumn] <= MAX('YourTable'[OrderColumn])
)
)

 

cumulative count measure:

CumulativeCount =
CALCULATE(
COUNT('YourTable'[ID]),
FILTER(
ALL('YourTable'[OrderColumn]),
'YourTable'[OrderColumn] <= MAX('YourTable'[OrderColumn])
)
)

 

hope this works





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





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!

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