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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register 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
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

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! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

Check out the November 2024 Power BI update to learn about new features.