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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
antoniosantos
Frequent Visitor

How to get the the latest values summed based on a timestamp by the Opportunity ID?

Hi!

I've looked at some solutions, but none of the ones I saw covered it if there are multiple rows with the same timestamp, which are then to be summed and return the values that can be used either in a card, or in a table.

 

Based on the data table below, the highlighted rows are the ones whose totals are to be summed:

antoniosantos_0-1688832908444.png

 

Here is the data in html format, if it helps in any way:

Company IDCompanyOpportunity IDStatusProductQtdPreço R$Total R$PriceTimestamp
2Company 11EmbarcadoItem 1160094,86151.776,0094,8605/05/2023 14:26:02
2Company 11EmbarcadoItem 5126016,5420.840,4016,5405/05/2023 14:26:02
4Company 22ContatadoItem 22604084,012.187.620,4017,1448979604/05/2023 22:39:12
3Company 39ContatadoItem 155000904.950.000,0017,7311950808/05/2023 18:56:35
3Company 39ApresentaçãoItem 155000904.950.000,0017,5653061208/05/2023 20:10:30
4Company 22PropostaItem 22604084,012.187.620,4017,3216494816/05/2023 14:35:26
4Company 22PropostaItem 32604079,82.077.992,0016,4536082516/05/2023 14:35:26
3Company 39PropostaItem 45500086,07473385017,5653061226/06/2023 17:01:54
3Company 39AmostraItem 45500086,07473385017,5653061205/07/2023 13:58:31

 

Expected Result

CompanyOpportunity IDStatusTotal
Company 11EmbarcadoR$ 172.616,40
Company 22PropostaR$ 4.265.612,40
Company 39AmostraR$ 4.733.850,00

 

Thank you very much!

1 ACCEPTED SOLUTION
Ashish_Mathur
Super User
Super User

Hi,

Please find attached the PBI file.

Hope this helps.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

3 REPLIES 3
Ashish_Mathur
Super User
Super User

Hi,

Please find attached the PBI file.

Hope this helps.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Ashish_Mathur
Super User
Super User

Hi,

Clearly show the result which you are expecting.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

You're right, @Ashish_Mathur .

I've added the expected result to my question.

Thanks for your comment.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors