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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
M-M-P
Helper III
Helper III

Picking values and adding them together

Hi

I have a dataset with over 5000 data points. It is structured like this:

Dataset1.png


I would like to add values together that share a unique Timestamp but where UnitName is different. Like this:

Dataset2.png

 

Example:

Timestamp is 1/1/2019 1:00:00 AM

84,6 + 17,4 + 66,8 = 168,8

 

I hope someone can help. Thanks

1 ACCEPTED SOLUTION
v-frfei-msft
Community Support
Community Support

Hi @M-M-P ,

 

To create a calculated column as below.

Column = CALCULATE(SUM('Table'[Value]),FILTER('Table','Table'[Timestamp]= EARLIER('Table'[Timestamp]) ))

Capture.PNG

 

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

View solution in original post

5 REPLIES 5
v-frfei-msft
Community Support
Community Support

Hi @M-M-P ,

 

To create a calculated column as below.

Column = CALCULATE(SUM('Table'[Value]),FILTER('Table','Table'[Timestamp]= EARLIER('Table'[Timestamp]) ))

Capture.PNG

 

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

Hi @v-frfei-msft 

Thank you for your suggestion. I appreciate it 🙂

M-M-P
Helper III
Helper III

@HotChilli  & @Greg_Deckler 

Thank you very much for your suggestions. I will try them out 🙂

Greg_Deckler
Super User
Super User

See my article on Mean Time Between Failure (MTBF) which uses EARLIER: http://community.powerbi.com/t5/Community-Blog/Mean-Time-Between-Failure-MTBF-and-Power-BI/ba-p/3395.... This would be for a column.

 

 



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...
HotChilli
Super User
Super User

Keep it simple and pull Timestamp and Value on to a table.

IF Value is set to SUM in the field well, you will get the answer you want

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!

December 2024

A Year in Review - December 2024

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