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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

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
Community Champion
Community Champion

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
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 Power BI update to learn about new features.