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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Sept PBI Carousel

Power BI Monthly Update - September 2024

Check out the September 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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