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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
sathishsam
Helper I
Helper I

Wanted to get Cumulative Total by Financial Year

I followed the topic https://community.powerbi.com/t5/Desktop/Cumulative-sum-that-resets-every-year/td-p/994086 and created a measure, however, i am seeing a different result. Can someone please help. I just want a cumulative total by Date or Year and rest every Year

sathishsam_0-1665668529463.png

 

1 ACCEPTED SOLUTION
Jihwan_Kim
Super User
Super User

Hi,

I assume you want to create a calculated column.

Please try the below for creating a new column in the same table.

 

Calculated Column CC =
SUMX (
    FILTER (
        'Sheet1',
        'Sheet1'[Year] = EARLIER ( 'Sheet1'[Year] )
            && 'Sheet1'[Date] <= EARLIER ( 'Sheet1'[Date] )
    ),
    'Sheet1'[Headcount]
)

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Go to My LinkedIn Page


View solution in original post

2 REPLIES 2
sathishsam
Helper I
Helper I

Thank you so much!

Jihwan_Kim
Super User
Super User

Hi,

I assume you want to create a calculated column.

Please try the below for creating a new column in the same table.

 

Calculated Column CC =
SUMX (
    FILTER (
        'Sheet1',
        'Sheet1'[Year] = EARLIER ( 'Sheet1'[Year] )
            && 'Sheet1'[Date] <= EARLIER ( 'Sheet1'[Date] )
    ),
    'Sheet1'[Headcount]
)

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Go to My LinkedIn Page


Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.

Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.