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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
ekroll
Frequent Visitor

Cumulative total by store and date

I've been searching and can't seem to get this to work.. Fairly new to Power BI and DAX.

I have a table:

ekroll_0-1655236579382.png

 

I need to create cumulative totals for the pallets by store and date.

I have tried: 

Running_Total_Pallets_Built =
CALCULATE(
SUM('Pallets Built'[PALLETS]),
FILTER(
ALLEXCEPT('Pallets Built','Pallets Built'[STORENUMBER])
,'Pallets Built'[STAGEDDATE] <= MAX('Pallets Built'[STAGEDDATE])
)
)
but the result returns the total number all pallets built for that day for all stores:
ekroll_1-1655237331100.png

My running total for store 12 should show:

Jan 4 - 2

Jan 5 - 4

Jan 6 - 5

Jan 7 - 6

Jan 8 - 7

 

There should be the same for the next store as well:

ekroll_3-1655237947658.png

 

Store 13 should be:

Jan 4 - 2

Jan 5 - 4

Jan 6 - 5

Jan 7 - 6

 

And so on....

I've applied the following filters, which should be available when I publish as well:

ekroll_2-1655237498060.png

Appreciate any help to get the last piece of the puzzle solved for this one.

 

1 ACCEPTED SOLUTION
ekroll
Frequent Visitor

Well, I feel a fool... I started to look at the table visual again and realized that I was pulling in store number from a different table... they are connected via the store-date relationship, but it appears that once I removed the store number from the other (it's the capacity table) and dropped in the store number from the pallets built table, it now seems to be working as expected.

 

View solution in original post

2 REPLIES 2
ekroll
Frequent Visitor

Well, I feel a fool... I started to look at the table visual again and realized that I was pulling in store number from a different table... they are connected via the store-date relationship, but it appears that once I removed the store number from the other (it's the capacity table) and dropped in the store number from the pallets built table, it now seems to be working as expected.

 

Hi, @ekroll 

If your problem has been solved, please accept your reply as solution to close this thread, so that other community members will easily find the solution when they get the same issue.

Best Regards,
Community Support Team _ Eason

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.