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

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

Reply
oakfootballclub
Helper IV
Helper IV

how to get the cumulative column with partition by

hi experts, I want to create a column to get the culumative value of each fiscal year, here is the sample data

oakfootballclub_0-1717480194453.png

the  last column is the expected result, do you have any solutions? Thank you.

 

2 ACCEPTED SOLUTIONS
Kishore_KVN
Super User
Super User

Hello @oakfootballclub ,

Use ALLSELECTED DAX function which will fulfill your requirement of partition by. 

 

If this post helps, then please consider accepting it as the solution to help other members find it more quickly. Thank You!!

View solution in original post

Anonymous
Not applicable

Thanks @Kishore_KVN  for his prompt reply. I believe his reply is helpful to you.

Hi @oakfootballclub ,

I have an other method and create a sample data to help you with your problem.

Sample data:

vyifanwmsft_0-1717571900048.png

1. Add an index column.

vyifanwmsft_1-1717571964845.png

2.Add a new column.

RESULT = 
VAR _INDEX = 'Table'[Index]
VAR _FY = 'Table'[fy]
VAR _AMOUNT1 =
    CALCULATE (
        SUM ( 'Table'[amount] ),
        FILTER ( 'Table', 'Table'[fy] = _FY && 'Table'[Index] <= _INDEX )
    )
RETURN
    _AMOUNT1

Final output:

vyifanwmsft_2-1717572017126.png

How to Get Your Question Answered Quickly - Microsoft Fabric Community

If it does not help, please provide more details with your desired out put and pbix file without privacy information.

 

Best Regards,

Ada Wang

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

2 REPLIES 2
Anonymous
Not applicable

Thanks @Kishore_KVN  for his prompt reply. I believe his reply is helpful to you.

Hi @oakfootballclub ,

I have an other method and create a sample data to help you with your problem.

Sample data:

vyifanwmsft_0-1717571900048.png

1. Add an index column.

vyifanwmsft_1-1717571964845.png

2.Add a new column.

RESULT = 
VAR _INDEX = 'Table'[Index]
VAR _FY = 'Table'[fy]
VAR _AMOUNT1 =
    CALCULATE (
        SUM ( 'Table'[amount] ),
        FILTER ( 'Table', 'Table'[fy] = _FY && 'Table'[Index] <= _INDEX )
    )
RETURN
    _AMOUNT1

Final output:

vyifanwmsft_2-1717572017126.png

How to Get Your Question Answered Quickly - Microsoft Fabric Community

If it does not help, please provide more details with your desired out put and pbix file without privacy information.

 

Best Regards,

Ada Wang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

Kishore_KVN
Super User
Super User

Hello @oakfootballclub ,

Use ALLSELECTED DAX function which will fulfill your requirement of partition by. 

 

If this post helps, then please consider accepting it as the solution to help other members find it more quickly. Thank You!!

Helpful resources

Announcements
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.

Top Solution Authors
Top Kudoed Authors