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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request 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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors