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
Anonymous
Not applicable

Calculate cumulative return

Hi, I already have a measure which is calculating a profit. Now I can to create a new measure which will be cumulative profit from the last months.

 

 ABC
1 MeasureNew Measure
2January500500
3February10510
4March6001110
5April9002010
    

 

For example, the cell C3 is a sum of C2+B3. This would be very simple formula in excel but how can i achieve this new measure in PowerBI?

1 ACCEPTED SOLUTION
v-lid-msft
Community Support
Community Support

Hi @Anonymous ,

 

We can try to use the following measure to meet your requirement:

 

New Measure =
SUMX (
    SUMMARIZE (
        FILTER (
            ALLSELECTED ( 'Calendar' ),
            'Date'
                <= CALCULATE (
                    MAX ( 'Calendar'[Date] )
                )
        ),
        'Calendar'[Date].[Year],
        'Calendar'[Date].[Month],
        "Measure Value", CALCULATE (
            [Measure]
        )
    ),
    [Measure Value]
)

 

If it doesn't meet your requirement, could share your sample data based on the expected you have shared to me if you don't have any Confidential Information? Please upload your files to One Drive and share the link here.

 


Best regards,

 

Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-lid-msft
Community Support
Community Support

Hi @Anonymous ,

 

How about the result after you follow the suggestions mentioned in my original post?Could you please provide more details about it If it doesn't meet your requirement?


Best regards,

 

Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
v-lid-msft
Community Support
Community Support

Hi @Anonymous ,

 

We can try to use the following measure to meet your requirement:

 

New Measure =
SUMX (
    SUMMARIZE (
        FILTER (
            ALLSELECTED ( 'Calendar' ),
            'Date'
                <= CALCULATE (
                    MAX ( 'Calendar'[Date] )
                )
        ),
        'Calendar'[Date].[Year],
        'Calendar'[Date].[Month],
        "Measure Value", CALCULATE (
            [Measure]
        )
    ),
    [Measure Value]
)

 

If it doesn't meet your requirement, could share your sample data based on the expected you have shared to me if you don't have any Confidential Information? Please upload your files to One Drive and share the link here.

 


Best regards,

 

Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
amitchandak
Super User
Super User

Make sure you have a date table and joined with date of your table and try like

Cumm Sales = CALCULATE(SUM(Sales[Sales Amount]),filter(date,date[date] <=maxx(date,date[date])))

Cumm Sales = CALCULATE(SUM(Sales[Sales Amount]),filter(date,date[date] <=maxx(date,endofmonth(dateadd(date[date]),-1,month))))

 

To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s. Refer :
https://radacad.com/creating-calendar-table-in-power-bi-using-dax-functions
https://www.archerpoint.com/blog/Posts/creating-date-table-power-bi
https://www.sqlbi.com/articles/creating-a-simple-date-table-in-dax/

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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.

Top Solution Authors