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

View all the Fabric Data Days sessions on demand. View schedule

Reply
paulo1978
Regular Visitor

Compare two rows and sum the content of those two equal rows

Hi all,

I'm a begginer with PowerBi/DAX and need help with one issue that I'm facing.

I have a table like this:

paulo1978_0-1695552232888.png

If the Name are not equal between two or more consequente rows, create a new table with only that entry

If the Name are equal, then create a new table with that Name and the sum of the Cumulative Min of those two (or more consequente rows) equal rows:

 

Thanks

 

4 REPLIES 4
paulo1978
Regular Visitor

Hi,

Yes, I can and already have done that.

Thanks

paulo1978
Regular Visitor

HI,

I want to compare Name from row 1 with row 2 and if they are the same, the same number, create a new table with only that Name but would like to sum the CumulativeMin in the final table:

Name                 CummulativeMin

03326789            1694.73

03326759            2781.97

03326757            2265.05

.......

.......

if the Name has 3 or more entries, then I would like to sum the CumulativeMin of the 3 or more rows and so on.

 

This is what I want to do. I want a final table without duplicated Names but the CumulativeMin has to be the sum of all minutes from that Name.

 

Thanks

Hi @paulo1978 do you have option to insert index column in that table where column Name is?





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

Proud to be a Super User!






some_bih
Super User
Super User

Hi @paulo1978 you need to check if row (Name) is the same as previous row? If yes, do you have option to insert index column in that table where column Name is? Also, provide more inputs and expected outputs.





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

Proud to be a Super User!






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
Top Kudoed Authors