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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
Jay2022
Helper IV
Helper IV

calculating running total of stores opened by specific date

So I want to calculate a running total to use in a visual (perhaps creating a new measure etc) i want to count how many stores have opened by any specific date. My data is like so.

 

01/12/2019 - Store A

16/12/2019 Store B

01/06/22 Store C

06/04/23 Store D

 

and so on. 

 

I saw a tutorial explaining it regards to sales but i can't seem to amend the calculation to show what I want. 

 

Any help greatly appreciated. 

 

2 ACCEPTED SOLUTIONS
DOLEARY85
Resident Rockstar
Resident Rockstar

Hi,

 

you could try creating a calculated column with something like this:

 

Running Total =
    CALCULATE (
        Count ('Table'[Store]),
        ALL ('Table'),
       'Table'[Date] <= EARLIER ('Table'[Date]))
 
If I answered your question, please mark my post as solution, Appreciate your Kudos 👍

View solution in original post

DOLEARY85
Resident Rockstar
Resident Rockstar

Additionally if you'd prefer a measure the below could work:

 

Running Total (m) =
    CALCULATE (
        Count  ('Table'[Store]),
        FILTER (
        ALL ('Table'),
        'Table'[Date] <= MAX ('Table'[Date])))
 
If I answered your question, please mark my post as solution, Appreciate your Kudos 👍

View solution in original post

4 REPLIES 4
Jay2022
Helper IV
Helper IV

your measure ignores blanks anyway though i'd still be interested what to add to the calculate column, very helpfull overall thank you 

 

Jay2022
Helper IV
Helper IV

The Calculated column works great thank you so much only one thing how do i get it to exclude the blanks in the calculation please ?

 

DOLEARY85
Resident Rockstar
Resident Rockstar

Additionally if you'd prefer a measure the below could work:

 

Running Total (m) =
    CALCULATE (
        Count  ('Table'[Store]),
        FILTER (
        ALL ('Table'),
        'Table'[Date] <= MAX ('Table'[Date])))
 
If I answered your question, please mark my post as solution, Appreciate your Kudos 👍
DOLEARY85
Resident Rockstar
Resident Rockstar

Hi,

 

you could try creating a calculated column with something like this:

 

Running Total =
    CALCULATE (
        Count ('Table'[Store]),
        ALL ('Table'),
       'Table'[Date] <= EARLIER ('Table'[Date]))
 
If I answered your question, please mark my post as solution, Appreciate your Kudos 👍

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.

Top Solution Authors
Top Kudoed Authors