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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Gou303
Regular Visitor

Displaying Grand Total & AVG to a table in Power BI

Hi community!

 

I'm working with a report in Power BI, and I'm looking to display the average & sum at the end of the table as new row.

Sum - Enabled " Total " 

AVG - ? 

DateSalesOrdersValueOrdersManual Orders
05/07/202110091.141 €3745
08/07/202220011.05 €7351
03/03/202320211.171 €8149
03/09/20233028.535 €3745
01/05/20234009.709 €4055
TotalSumSumSumSum
AVG ????

 

Info: values are coming from Calculated Measures other than the Date column ,

Is  there any solutions to display AVG with Total values Or just AVG row at the bottom of the table ? 

I've gone through some posts in the community, but I haven't come across a solution that fits my specific requirement.

1 ACCEPTED SOLUTION
v-yajiewan-msft
Community Support
Community Support

Hi  @Gou303,hello amitchandak, thank you for your prompt reply!

As far as I known, we can only choose one of these ways to aggregate data as shown below:

vyajiewanmsft_0-1723802239418.png

As a workaround, we recommend that you create another summary table that displays both the totals and the averages, and then place it below the first table visual to achieve a similar effect to displaying the averages at the bottom of the table:

SummaryTable =
UNION(
SUMMARIZE(
'Table',
"Category", "Total",
"Sales", SUM('Table'[Sales]),
"OrdersValue", SUM('Table'[OrdersValue]),
"Orders", SUM('Table'[Orders]),
"Manual Orders", SUM('Table'[ManualOrders])
),
SUMMARIZE(
'Table',
"Category", "AVG",
"Sales", AVERAGE('Table'[Sales]),
"OrdersValue", AVERAGE('Table'[OrdersValue]),
"Orders", AVERAGE('Table'[Orders]),
"Manual Orders", AVERAGE('Table'[ManualOrders])
)
)
We can also change the color of the column headings to the same color as the background color to hide the column headings:

vyajiewanmsft_1-1723802655314.png

Best regards,

Joyce

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

2 REPLIES 2
v-yajiewan-msft
Community Support
Community Support

Hi  @Gou303,hello amitchandak, thank you for your prompt reply!

As far as I known, we can only choose one of these ways to aggregate data as shown below:

vyajiewanmsft_0-1723802239418.png

As a workaround, we recommend that you create another summary table that displays both the totals and the averages, and then place it below the first table visual to achieve a similar effect to displaying the averages at the bottom of the table:

SummaryTable =
UNION(
SUMMARIZE(
'Table',
"Category", "Total",
"Sales", SUM('Table'[Sales]),
"OrdersValue", SUM('Table'[OrdersValue]),
"Orders", SUM('Table'[Orders]),
"Manual Orders", SUM('Table'[ManualOrders])
),
SUMMARIZE(
'Table',
"Category", "AVG",
"Sales", AVERAGE('Table'[Sales]),
"OrdersValue", AVERAGE('Table'[OrdersValue]),
"Orders", AVERAGE('Table'[Orders]),
"Manual Orders", AVERAGE('Table'[ManualOrders])
)
)
We can also change the color of the column headings to the same color as the background color to hide the column headings:

vyajiewanmsft_1-1723802655314.png

Best regards,

Joyce

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

amitchandak
Super User
Super User

@Gou303 , Check if this approach can help

https://medium.com/@amitchandak/power-bi-add-grand-total-row-in-the-bar-visual-44c3d1d463be

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.