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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
smpa01
Super User
Super User

RE: How to show the aggregate of column values in a separate row

Hi,

 

I have the following Table.

 

Source.JPG

 

I want tio achieve this in Power Query/Power BI.

Result.JPG

 

If someone can please help, would be great.

 

Thank you in advance.

 

 

 

Did I answer your question? Mark my post as a solution!
Proud to be a Super User!
My custom visualization projects
Plotting Live Sound: Viz1
Beautiful News:Viz1, Viz2, Viz3
Visual Capitalist: Working Hrs
1 ACCEPTED SOLUTION

Hi @smpa01

In Power Query, you can use one of the following methods to display the total row.

a. Select data range in Power Query, right click data range, choose Table->Totals Row.
1.PNG2.PNG

b. Select data range in Power Query, right click data range, choose “Quick Analysis”, then “Totals” and select your desired aggregation  function.
3.PNG4.PNG

Thanks,
Lydia Zhang

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

5 REPLIES 5
Greg_Deckler
Community Champion
Community Champion

Just import the table into Power BI Desktop and use a table visualization to display it. Table visuals automatically include a total row.



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!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Thanks for your suggestion. I should havve mentioned this prior to posting this problem. I have already tried this and I can see a row called TOTAL for the columns with numerical values being generated by Power BI desktop Visualizations when the data is organised in a Table Visualization. However, when I export the same table, it gets exported in CSV and same TOTAL row is omitted altogether.So I tried exporting the same CSV into a Power Query to find a solution. But I couldn't.

 

I aim to generate a report which will contain the aggregate of some of the columns that I want with numerical values.

 

Is there a way to solve this.

Did I answer your question? Mark my post as a solution!
Proud to be a Super User!
My custom visualization projects
Plotting Live Sound: Viz1
Beautiful News:Viz1, Viz2, Viz3
Visual Capitalist: Working Hrs

To be clear, when you say "generate a report" you are referring to generating a CSV file, correct?



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!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

When I say generate a report I do mean generating a CSV file which will containg the desired aggregate I want. Since it did not, I tried to the same task with Power Query where my source file was that CSV file exported from Power BI desktop.

Did I answer your question? Mark my post as a solution!
Proud to be a Super User!
My custom visualization projects
Plotting Live Sound: Viz1
Beautiful News:Viz1, Viz2, Viz3
Visual Capitalist: Working Hrs

Hi @smpa01

In Power Query, you can use one of the following methods to display the total row.

a. Select data range in Power Query, right click data range, choose Table->Totals Row.
1.PNG2.PNG

b. Select data range in Power Query, right click data range, choose “Quick Analysis”, then “Totals” and select your desired aggregation  function.
3.PNG4.PNG

Thanks,
Lydia Zhang

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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