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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
RahulKumarBIT
Regular Visitor

Calculating cummulative total by date and by id

Hi

I am looking to calculate cummulative total by date and by id. My existing table and its three column's are per below

 

DateIDAmount
01/31/20235015
02/28/202350110
01/31/20235023
02/28/20235026

Expected Table with 4rth calculated column-CummulativeAmount

DateIDAmountCummulativeAmount
01/31/202350155
02/28/20235011015
01/31/202350233
02/28/202350269
2 REPLIES 2
some_bih
Super User
Super User

Hi @RahulKumarBIT , create two measures:

Sales Amount = SUM(Sheet2[Amount]) and
Cummulative Amount =
    CALCULATE(
        [Sales Amount],
        DATESYTD(Sheet2[Date])
    )
 
 Columns and ID are from table Sheet2, so you need to adjust to your table name. Please note that visual is created as you shown. I hope this help.
some_bih_0-1686173008143.png

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!






Hi @some_bih

Will DATESYTD work with whole date series before and after 2023 as well as i would need cummulative total as of any dates?

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.