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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Yazid
Helper I
Helper I

Cumlative sum with only distinct values

Dear,

 

I have the following table: 

Yazid_1-1716917990597.png

 

Where I'd like to create a column with the cumulative sum of the "YTD_Actuals_per_project" in fuction of distinct values for "Project_Act"

 

Hope I was clear enough.

 

Thnaks in advance for your support.

2 REPLIES 2
rajendraongole1
Super User
Super User

Hi @Yazid - We will use measure for Metrics, can you please try to create a new measure using below calculation

Cumulative YTD Actuals =
CALCULATE(
SUM('YourTableName'[YTD_Actuals_per_project]),
FILTER(
ALLSELECTED('YourTableName'),
'YourTableName'[Project_Act] <= MAX('YourTableName'[Project_Act])
)
)

 

you can create a measure that calculates the cumulative sum of YTD_Actuals_per_project based on distinct Project_Act values and drag and drop on report view and check the results. it works

 

Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Dear,

 

Thanks for you reply ! However, it should be an increasing function like the green curve..

Yazid_0-1716919404466.png

Should I try something else ?

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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