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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.