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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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