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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
Yazid
Helper I
Helper I

Reformating a table by removing duplicate rows

Dear,

 

Here is my issue, within my table, I have to calculate a cumulative sum over specific rows.

 

Actually, for each value project_Nbr, i have to take into account the corresponding amount.

 

However, this table has duplicate rows which complicate the calculation of the running sum over the rows.

 

See below a snap from Excel expliciting the matter:

 

 

Yazid_0-1717012206103.png

 

Thanks in advance for your support.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Yazid ,

Below is my table:

vxiandatmsft_0-1717031422059.png

You can remove the duplicate in the PowerQuery:

vxiandatmsft_1-1717031488448.png

The final output is shown in the following figure:

vxiandatmsft_2-1717031674176.png

Best Regards,

Xianda Tang

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
Ashish_Mathur
Super User
Super User

Hi,

Do you have a Date column?  If yes, then it is easy enough to solve.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Anonymous
Not applicable

Hi @Yazid ,

Below is my table:

vxiandatmsft_0-1717031422059.png

You can remove the duplicate in the PowerQuery:

vxiandatmsft_1-1717031488448.png

The final output is shown in the following figure:

vxiandatmsft_2-1717031674176.png

Best Regards,

Xianda Tang

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

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.