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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

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
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!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

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