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

Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more

Reply
VViskaz
Regular Visitor

Adding all values under a key value

Hi, I really need help with this one.

I have a table that has multiple User ID lines and Duration values related to them. 

I need to put in new table distinct User_ID values and add up all the duration values.

Source table looks like this:

VViskaz_0-1595246251446.png

I need to make it look like this:

VViskaz_1-1595246414453.png

 

1 ACCEPTED SOLUTION
FarhanAhmed
Community Champion
Community Champion

You can do it by 2 method

 

1- In Power Query ---> Use Group by 

 

https://support.microsoft.com/en-us/office/group-rows-in-a-table-power-query-e1b9e916-6fcc-40bf-a6e8...

 

2- In DAX ---> Summarize

 

https://docs.microsoft.com/en-us/dax/summarize-function-dax

 

 







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

Proud to be a Super User!




View solution in original post

2 REPLIES 2
FarhanAhmed
Community Champion
Community Champion

You can do it by 2 method

 

1- In Power Query ---> Use Group by 

 

https://support.microsoft.com/en-us/office/group-rows-in-a-table-power-query-e1b9e916-6fcc-40bf-a6e8...

 

2- In DAX ---> Summarize

 

https://docs.microsoft.com/en-us/dax/summarize-function-dax

 

 







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

Proud to be a Super User!




Wow, first method was the easiest solution to a problem that tortured me for 2 hours. Thank you. 

Helpful resources

Announcements
PBIApril_Carousel

Power BI Monthly Update - April 2025

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

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

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

Top Solution Authors