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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

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