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
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
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.