cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Anonymous
Not applicable

Combining Rows Based on Attributes from Multiple Other Rows

Hi,

 

I'm new to this, sorry if this one is easy.

 

I'd like to go from this:                  

 

Comm.png

 

To this:

Comm1.png

Basically consolidate the Counts by Year, Crime and Community.

 

Thanks so much for your help!

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User I
Super User I

Re: Combining Rows Based on Attributes from Multiple Other Rows

@Anonymous Please use "Group By" option in "Power Query Editor"




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

Proud to be a Super User!




View solution in original post

2 REPLIES 2
Highlighted
Super User I
Super User I

Re: Combining Rows Based on Attributes from Multiple Other Rows

@Anonymous Please use "Group By" option in "Power Query Editor"




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

Proud to be a Super User!




View solution in original post

Highlighted
Memorable Member
Memorable Member

Re: Combining Rows Based on Attributes from Multiple Other Rows

If you need it as a table

 

NewTab = SUMMARIZE(Table, Table[Community],
 Table[Year],
 Table[Crime],
 "Count", SUM(Count) )

If you just want it as a measure

 

Measure = CALCULATE( SUM ( Table[Count] ) )

The measure will recalculate at any level (say, community and crime only)

 

Hope this helps

David

Helpful resources

Announcements
August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

Community Blog

Community Blog

Visit our Community Blog for articles, guides, and information created by fellow community members.

Upcoming Events

Upcoming Events

Wondering what events you could join or have an event to promote yourself? Check out our Upcoming Events.

Top Solution Authors
Top Kudoed Authors