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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
brockry1
Helper II
Helper II

Running Total by Period

brockry1_0-1739911144358.png

How do I create a measure using DAX to calculate the running total from the second column? 

1 ACCEPTED SOLUTION
uzuntasgokberk
Super User
Super User

Hello @brockry1 ,

Could you try below dax code. But before creating dax code there is a need that a new column includes period such as 01,02 etc. I called PeriodIndex in dax code.

 

 

Running Total =
CALCULATE(
    SUM('Visits'[Visit Target Per Period]),
    FILTER(
        ALL('Visits'),
        'Visits'[PeriodIndex] <= MAX('Visits'[PeriodIndex])
    )
)

 

 

Kind Regards,
Gökberk Uzuntaş

📌 If this post helps, then please consider Accepting it as a solution and giving Kudos — it helps other members find answers faster!

🔗 Stay Connected:
📘 Medium |
📺 YouTube |
💼 LinkedIn |
📷 Instagram |
🐦 X |
👽 Reddit |
🌐 Website |
🎵 TikTok |

View solution in original post

1 REPLY 1
uzuntasgokberk
Super User
Super User

Hello @brockry1 ,

Could you try below dax code. But before creating dax code there is a need that a new column includes period such as 01,02 etc. I called PeriodIndex in dax code.

 

 

Running Total =
CALCULATE(
    SUM('Visits'[Visit Target Per Period]),
    FILTER(
        ALL('Visits'),
        'Visits'[PeriodIndex] <= MAX('Visits'[PeriodIndex])
    )
)

 

 

Kind Regards,
Gökberk Uzuntaş

📌 If this post helps, then please consider Accepting it as a solution and giving Kudos — it helps other members find answers faster!

🔗 Stay Connected:
📘 Medium |
📺 YouTube |
💼 LinkedIn |
📷 Instagram |
🐦 X |
👽 Reddit |
🌐 Website |
🎵 TikTok |

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.