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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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)])

😉 


Follow on LinkedIn
@ 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)])

😉 


Follow on LinkedIn
@ 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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

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

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.