cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

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
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

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

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors