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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Combine multiple Rows

Hey,

 

I have a question I am struggling with for a little while now. 

 

I current have some data that looks like this: 

MollyMcFly_0-1666876263964.png

Each row has the same timestamp and ID since it is generated at the same time. This is basically a price calculation. The aim is to have only one row per ID and timestamp. 
I grouped by max date to get only the latest results. I also followed https://community.powerbi.com/t5/Desktop/Sum-of-Certain-Rows/m-p/871024 this solution to get the numbers as sum in one row. The problem here is that it keeps every row and removing duplicates results in having one row, yes, but the calculated colomn is not working properly after the removal. 

 

MollyMcFly_1-1666876610382.png

I need this results but with only one row per ID and max. timestamp. 

Can´t figure it out and help is much appreciated. 

 

Kind regards 

Molly

1 ACCEPTED SOLUTION
v-zhangti
Community Support
Community Support

Hi, @Anonymous 

 

You can try the following methods.
Sample data:

vzhangti_0-1667266004190.png

Column:

Column = CALCULATE(MAX('Table'[Mod]),FILTER('Table',[ID]=EARLIER('Table'[ID])))

vzhangti_1-1667266076095.png

Is this the result you expect?

Best Regards,

Community Support Team _Charlotte

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
v-zhangti
Community Support
Community Support

Hi, @Anonymous 

 

You can try the following methods.
Sample data:

vzhangti_0-1667266004190.png

Column:

Column = CALCULATE(MAX('Table'[Mod]),FILTER('Table',[ID]=EARLIER('Table'[ID])))

vzhangti_1-1667266076095.png

Is this the result you expect?

Best Regards,

Community Support Team _Charlotte

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

ryan_mayu
Super User
Super User

could you pls provide the sample data (not the screenshot) and the expected output?





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

Proud to be a Super User!




Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.