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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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