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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
lynnsop
Helper I
Helper I

Group by specific coulumn differentiating specific columns

Hello people,

 

I have a list such as:

lynnsop_1-1627560472492.png

 


Now I want a seperate table giving me the following result:
"name" grouped but still differenciated at "region" and "period". -> only summarized "subname" and summed the counts.

 

lynnsop_0-1627560365323.png
Thanks for you help! 🙂

Is this possible in PowerQuery? I would need to have both tables, the orignial and new one seperated.

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@lynnsop , Group by  in power query

https://radacad.com/power-bi-aggregation-step-1-create-the-aggregated-table

 

Summarize in DAX should help you

summarize(Table, [Name], [Region], [period], "Count 1" ,Sum([Count1]) , "Count 2" , Sum([Count2]))

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@lynnsop , Group by  in power query

https://radacad.com/power-bi-aggregation-step-1-create-the-aggregated-table

 

Summarize in DAX should help you

summarize(Table, [Name], [Region], [period], "Count 1" ,Sum([Count1]) , "Count 2" , Sum([Count2]))

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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