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
rashel2002
Helper II
Helper II

Creating a summary table out of existing table - assistance

Hi everyone!

 

I have a table as the one on the left and i want to sum up the effort per week (creat a new table as the one on the right)-

 

Sum per week.PNG

 

Any ideas how to do it?

Thx.

1 ACCEPTED SOLUTION
Greg_Deckler
Super User
Super User

Use the oddly named function "SUMMARIZE":

 

Table = SUMMARIZE('Table',[Week No.],"Effort (by hours)",SUM([Effort (by hours)])

😉 


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

7 REPLIES 7
Greg_Deckler
Super User
Super User

Use the oddly named function "SUMMARIZE":

 

Table = SUMMARIZE('Table',[Week No.],"Effort (by hours)",SUM([Effort (by hours)])

😉 


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

I have a similar issue but I'd like to bring all the rest of the columns from my original table into the summarized table.  I see that I can list them individually.  Is there a command that will bring them all?

Hi again!

there is an oprion to summerize by two categories?

For example, by WW and by Type (imagine there is another column named Type and describing for each line if it's type a or type b).

 

Nevermind, i figured it out! thanks again!! 🙂

How did you do that? As i would like to sumarise based on two colomns. 

Original Data
OrderSufAmount
5000200
5001150
5001200
5002300
5010400
5020300
5020200
5021400
5021300
5022100
5033100

 

Option 1
OrderAmountSufAmount
5008500200
500 1350
500 2300
5014000400
50214000500
502 1700
502 2100
502 3100

 

Option 2 - Prefered  
OrderTotalSufAmountSufAmountSufAmountSufAmount
500850020013502300  
5014000400      
50214000500170021003100

Hi Greg!

 

Thank you for responding 🙂

i'm new at PBI and don't have much experience so it might be a weird question but -

where should i insert the line you wrote? 

I had this same question.

 

It's under the 'Modeling' tab, 'New Table'

 

I followed the instructions here:

 

https://radacad.com/creating-a-table-in-power-bi-using-dax-table-constructor

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.

Top Solution Authors