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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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